8 #include "StEmcMicroCollection.h"
14 mEmcPoints=
new TObjArray();
15 for(Int_t i=0;i<4;i++)
17 mEmcHits[i]=
new TObjArray();
18 mEmcClusters[i]=
new TObjArray();
21 StEmcMicroCollection::~StEmcMicroCollection()
24 for(Int_t i=0;i<4;i++)
26 delete mEmcHits[i]; mEmcHits[i]=NULL;
27 delete mEmcClusters[i]; mEmcClusters[i]=NULL;
31 void StEmcMicroCollection::clear(Option_t *option)
37 if(point)
delete point;
40 for(Int_t d=0;d<4;d++)
46 if(cluster)
delete cluster;
48 for(Int_t i=0; i<
getNHits(EmcDet);i++)
55 for(Int_t i=0;i<4;i++) { mEmcHits[i]->Clear(); mEmcClusters[i]->Clear();}
StEmcMicroHit * getHit(Int_t EmcDet, Int_t HitId)
Return Hit for a given EMC sub detector.
Int_t getNPoints()
Return Number of Points for a given EMC sub detector.
Int_t getNClusters(Int_t EmcDet)
Return Number of Cluster for a given EMC sub detector.
Int_t getNHits(Int_t EmcDet)
Return Number of Hits for a given EMC sub detector.
StEmcMicroPoint * getPoint(Int_t PtId)
Return Point for a given EMC sub detector.
StEmcMicroCluster * getCluster(Int_t EmcDet, Int_t ClId)
Return Cluster for a given EMC sub detector.