1 #include "StMuRHICfCollection.h"
2 #include "StMuRHICfRawHit.h"
3 #include "StMuRHICfHit.h"
4 #include "StMuRHICfPoint.h"
15 StMuRHICfCollection::~StMuRHICfCollection()
17 if(mRawHit){
delete mRawHit;}
18 if(mHit){
delete mHit;}
19 if(mPoint){
delete mPoint;}
25 void StMuRHICfCollection::init()
27 mRawHit =
new TClonesArray(
"StMuRHICfRawHit", 1);
28 mHit =
new TClonesArray(
"StMuRHICfHit", 1);
29 mPoint =
new TClonesArray(
"StMuRHICfPoint", 0);
32 unsigned int StMuRHICfCollection::numberOfPoints()
const
34 if (!mPoint)
return 0;
35 return mPoint->GetEntriesFast();
55 int counter = mPoint->GetEntriesFast();
61 if(!mRawHit){
return NULL;}
67 if(!mHit){
return NULL;}
73 if(!mPoint){
return NULL;}
77 TClonesArray* StMuRHICfCollection::getPointArray(){
return mPoint;}
79 void StMuRHICfCollection::setRHICfRawHitArray(TClonesArray *array){mRawHit = array;}
80 void StMuRHICfCollection::setRHICfHitArray(TClonesArray *array){mHit = array;}
81 void StMuRHICfCollection::setRHICfPointArray(TClonesArray* array){mPoint = array;}