28 #include "StMcSvtBarrelHitCollection.hh"
30 static const char rcsid[] =
"$Id: StMcSvtBarrelHitCollection.cc,v 2.3 2005/01/27 23:40:48 calderon Exp $";
32 StMcSvtBarrelHitCollection::StMcSvtBarrelHitCollection()
37 StMcSvtBarrelHitCollection::~StMcSvtBarrelHitCollection() { }
40 StMcSvtBarrelHitCollection::setBarrelNumber(
int i)
42 if (mBarrelNumber == -1) mBarrelNumber = i;
46 StMcSvtBarrelHitCollection::numberOfLadders()
const
48 switch (mBarrelNumber) {
67 StMcSvtBarrelHitCollection::numberOfHits()
const
69 unsigned long sum = 0;
70 for (
unsigned int j=0; j<numberOfLadders(); j++) {
71 for (
unsigned int k=0; k<mLadders[j].numberOfWafers(); k++) {
72 sum += mLadders[j].wafer(k)->hits().size();
79 StMcSvtBarrelHitCollection::ladder(
unsigned int i)
81 if (i < numberOfLadders())
82 return &(mLadders[i]);
88 StMcSvtBarrelHitCollection::ladder(
unsigned int i)
const
90 if (i < numberOfLadders())
91 return &(mLadders[i]);