20 #include "StSvtBarrelHitCollection.h"
22 static const char rcsid[] =
"$Id: StSvtBarrelHitCollection.cxx,v 2.2 2001/04/05 04:00:55 ullrich Exp $";
31 StSvtBarrelHitCollection::~StSvtBarrelHitCollection() { }
34 StSvtBarrelHitCollection::setBarrelNumber(
int i)
36 if (mBarrelNumber == -1) mBarrelNumber = i;
40 StSvtBarrelHitCollection::numberOfLadders()
const
42 switch (mBarrelNumber) {
58 StSvtBarrelHitCollection::numberOfHits()
const
61 for (
unsigned int j=0; j<numberOfLadders(); j++) {
62 for (
unsigned int k=0; k<mLadders[j].numberOfWafers(); k++) {
63 sum += mLadders[j].wafer(k)->hits().size();
70 StSvtBarrelHitCollection::ladder(
unsigned int i)
72 if (i < numberOfLadders())
73 return &(mLadders[i]);
79 StSvtBarrelHitCollection::ladder(
unsigned int i)
const
81 if (i < numberOfLadders())
82 return &(mLadders[i]);