14#include "FairRootManager.h"
15#include "TClonesArray.h"
25 : FairTask(
"Global Tracker")
48 : FairTask(
"Global Tracker")
49 , fTrackMerger(trackMerger)
50 , fRichMerger(richMerger)
51 , fTofMerger(tofMerger)
72 , fTrackMerger(trackMerger)
73 , fRichMerger(richMerger)
74 , fTofMerger(tofMerger)
108 cout <<
"-W- CbmFindGlobalTracks::Init: No track merger selected!" << endl;
114 cout <<
"-W- CbmFindGlobalTracks::Init: No RICH merger selected!" << endl;
119 cout <<
"-W- CbmFindGlobalTracks::Init: No TOF merger selected!" << endl;
123 FairRootManager* ioman = FairRootManager::Instance();
125 cout <<
"-E- CbmFindGlobalTracks::Init: "
126 <<
"RootManager not instantised!" << endl;
131 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
133 cout <<
"-W- CbmStsFindTracks::Init: No StsTrack array!" << endl;
137 fTrdTracks = (TClonesArray*) ioman->GetObject(
"TrdTrack");
139 cout <<
"-W- CbmStsFindTracks::Init: No TrdTrack array!" << endl;
143 fRichRings = (TClonesArray*) ioman->GetObject(
"RICHRing");
145 cout <<
"-W- CbmStsFindTracks::Init: No RichRing array!" << endl;
149 fTofHits = (TClonesArray*) ioman->GetObject(
"TofHit");
151 cout <<
"-W- CbmFindGlobalTracks::Init: No TofHit array!" << endl;
156 ioman->Register(
"GlobalTrack",
"Global",
fGlobalTracks, IsOutputBranchPersistent(
"GlobalTrack"));
187 Int_t nMergedTracks = 0;
189 Int_t nMergedRings = 0;
191 Int_t nMergedTofHits = 0;
196 cout <<
"-------------------------------------------------------" << endl;
197 cout <<
"-I- Global Track Finding -I-" << endl;
198 cout <<
"Reconstructed STSTracks : " << nSts << endl;
199 cout <<
"Reconstructed TrdTracks : " << nTrd << endl;
200 cout <<
"STS and TRD merged : " << nMergedTracks << endl;
201 cout <<
"Reconstructed RICHrings : " << nRich << endl;
202 cout <<
"RICH rings attached : " << nMergedRings << endl
203 <<
"TOF hits attached : " << nMergedTofHits << endl;
204 cout <<
"--------------------------------------------------------" << endl;
207 cout <<
"-I- CbmFindGlobalTracks: " << nAll <<
" global tracks, " << nMergedTracks <<
" merged, " << nMergedRings
208 <<
" with RICH ring, " << nMergedTofHits <<
" with TOF hit" << endl;
ClassImp(CbmConverterManager)
TClonesArray * fGlobalTracks
TClonesArray * fTrdTracks
TClonesArray * fStsTracks
virtual ~CbmFindGlobalTracks()
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
CbmTofMerger * fTofMerger
CbmRichMerger * fRichMerger
CbmTrackMerger * fTrackMerger
TClonesArray * fRichRings
void SetVerbose(Int_t verbose)
virtual Int_t DoMerge(TClonesArray *glbTracks, TClonesArray *richRings)=0
void SetVerbose(Int_t verbose)
virtual Int_t DoMerge(TClonesArray *glbTracks, TClonesArray *tofHits)=0
virtual Int_t DoMerge(TClonesArray *stsTracks, TClonesArray *trdTracks, TClonesArray *glbTracks)=0
void SetVerbose(Int_t verbose)