12 #include "StMuDSTMaker/COMMON/StMuFttCollection.h"
13 #include "StMuDSTMaker/COMMON/StMuFttCluster.h"
14 #include "StMuDSTMaker/COMMON/StMuFttRawHit.h"
15 #include "StMuDSTMaker/COMMON/StMuFttPoint.h"
17 #include "St_base/StMessMgr.h"
23 StMuFttCollection::~StMuFttCollection() {
27 mHits = mClusters = mPoints =
nullptr;
30 void StMuFttCollection::init() {
31 mHits =
new TClonesArray(
"StMuFttRawHit", 0);
32 mClusters =
new TClonesArray(
"StMuFttCluster", 0);
33 mPoints =
new TClonesArray(
"StMuFttPoint", 0);
38 int counter = mHits->GetEntriesFast();
44 if (!mClusters) init();
45 int counter = mClusters->GetEntriesFast();
51 int counter = mPoints->GetEntriesFast();
55 unsigned int StMuFttCollection::numberOfRawHits()
const{
57 return mHits->GetEntriesFast();
60 unsigned int StMuFttCollection::numberOfClusters()
const {
61 if (!mClusters)
return 0;
62 return mClusters->GetEntriesFast();
65 unsigned int StMuFttCollection::numberOfPoints()
const {
66 if (!mPoints)
return 0;
67 return mPoints->GetEntriesFast();
71 if(!mHits)
return NULL;
76 if (!mClusters)
return NULL;
81 if (!mPoints)
return NULL;