13 #include "StMcPxlSectorHitCollection.hh"
14 #include "StMcPxlHit.hh"
15 static const char rcsid[] =
"$Id: StMcPxlSectorHitCollection.cc,v 2.2 2015/07/22 19:30:02 jwebb Exp $";
25 StMcPxlSectorHitCollection::~StMcPxlSectorHitCollection()
31 StMcPxlSectorHitCollection::ladder(
unsigned int i)
33 return (i < kNumberOfLadders) ? &(mLadders[i]) : 0;
37 StMcPxlSectorHitCollection::ladder(
unsigned int i)
const
39 return (i < kNumberOfLadders) ? &(mLadders[i]) : 0;
42 unsigned int StMcPxlSectorHitCollection::numberOfHits()
const
45 for (
int iLadder = 0; iLadder < kNumberOfLadders; iLadder++)
47 for (
unsigned int iSensor = 0; iSensor < mLadders[iSensor].numberOfSensors(); iSensor++)
49 sum += mLadders[iLadder].sensor(iSensor)->hits().size();