3 #include "StIstConsts.h"
4 #include "StIstCollection.h"
8 StIstCollection::StIstCollection() :
StObject()
12 mRawHitCollection[i].setLadder( i );
13 mClusterCollection[i].setLadder( i );
16 mNumTimeBins = kIstNumTimeBins;
20 StIstCollection::~StIstCollection()
23 mRawHitCollection[i].Clear(
"");
24 mClusterCollection[i].Clear(
"");
28 unsigned char StIstCollection::getNumTimeBins()
const
33 void StIstCollection::setNumTimeBins(
unsigned char nTimeBins)
35 mNumTimeBins = nTimeBins;
40 return ((ladder >= 0 && ladder < kIstNumLadders) ? &mRawHitCollection[ladder] : 0 );
45 return ((ladder >= 0 && ladder < kIstNumLadders) ? &mRawHitCollection[ladder] : 0 );
50 return ((ladder >= 0 && ladder < kIstNumLadders) ? &mClusterCollection[ladder] : 0 );
55 return ((ladder >= 0 && ladder < kIstNumLadders) ? &mClusterCollection[ladder] : 0 );
59 size_t StIstCollection::getNumRawHits()
const
64 n += ptr->getNumRawHits();
70 size_t StIstCollection::getNumRawHits(
int ladder )
const
72 return ((ladder >= 0 && ladder < kIstNumLadders) ? mRawHitCollection[ladder].getNumRawHits() : 0 );
76 size_t StIstCollection::getNumClusters()
const
81 n += ptr->getNumClusters();
87 size_t StIstCollection::getNumClusters(
int ladder )
const
89 return ((ladder >= 0 && ladder < kIstNumLadders) ? mClusterCollection[ladder].getNumClusters() : 0 );
const int kIstNumLadders
24 IST Ladders