12 #include "StMuDSTMaker/COMMON/StMuFstCollection.h"
13 #include "StMuDSTMaker/COMMON/StMuFstRawHit.h"
14 #include "StMuDSTMaker/COMMON/StMuFstHit.h"
16 #include "St_base/StMessMgr.h"
22 StMuFstCollection::~StMuFstCollection() {
29 void StMuFstCollection::init() {
30 mRawHits =
new TClonesArray(
"StMuFstRawHit", 0);
31 mHits =
new TClonesArray(
"StMuFstHit", 0);
35 if (!mRawHits) init();
36 int counter = mRawHits->GetEntriesFast();
42 int counter = mHits->GetEntriesFast();
46 unsigned int StMuFstCollection::numberOfRawHits()
const {
47 if (!mRawHits)
return 0;
48 return mRawHits->GetEntriesFast();
51 unsigned int StMuFstCollection::numberOfHits()
const {
53 return mHits->GetEntriesFast();
57 if (!mRawHits)
return NULL;
61 StMuFstHit* StMuFstCollection::getHit(
int index) {
62 if (!mHits)
return NULL;
63 return static_cast<StMuFstHit*
>(mHits->At(index));