12 #include "StMuDSTMaker/COMMON/StMuFwdTrackCollection.h"
13 #include "StMuDSTMaker/COMMON/StMuFwdTrack.h"
15 #include "St_base/StMessMgr.h"
18 StMuFwdTrackCollection::StMuFwdTrackCollection() { mFwdTracks = 0; }
20 StMuFwdTrackCollection::~StMuFwdTrackCollection() {
25 void StMuFwdTrackCollection::init() {
26 mFwdTracks =
new TClonesArray(
"StMuFwdTracks", 0);
30 if(!mFwdTracks) init();
31 int counter = mFwdTracks->GetEntriesFast();
36 unsigned int StMuFwdTrackCollection::numberOfFwdTracks()
const{
37 if(!mFwdTracks)
return 0;
38 return mFwdTracks->GetEntriesFast();
41 StMuFwdTrack* StMuFwdTrackCollection::getFwdTrack(
int index){
42 if (!mFwdTracks)
return nullptr;