11 #include "FairRootManager.h"
13 #include "TClonesArray.h"
23 : FairTask(
"Global Tracker")
46 : FairTask(
"Global Tracker")
47 , fTrackMerger(trackMerger)
48 , fRichMerger(richMerger)
49 , fTofMerger(tofMerger)
72 , fTrackMerger(trackMerger)
73 , fRichMerger(richMerger)
74 , fTofMerger(tofMerger)
104 cout <<
"-W- CbmFindGlobalTracks::Init: No track merger selected!" << endl;
110 cout <<
"-W- CbmFindGlobalTracks::Init: No RICH merger selected!" << endl;
115 cout <<
"-W- CbmFindGlobalTracks::Init: No TOF merger selected!" << endl;
119 FairRootManager* ioman = FairRootManager::Instance();
121 cout <<
"-E- CbmFindGlobalTracks::Init: "
122 <<
"RootManager not instantised!" << endl;
127 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
129 cout <<
"-W- CbmStsFindTracks::Init: No StsTrack array!" << endl;
133 fTrdTracks = (TClonesArray*) ioman->GetObject(
"TrdTrack");
135 cout <<
"-W- CbmStsFindTracks::Init: No TrdTrack array!" << endl;
139 fRichRings = (TClonesArray*) ioman->GetObject(
"RICHRing");
141 cout <<
"-W- CbmStsFindTracks::Init: No RichRing array!" << endl;
145 fTofHits = (TClonesArray*) ioman->GetObject(
"TofHit");
147 cout <<
"-W- CbmFindGlobalTracks::Init: No TofHit array!" << endl;
152 ioman->Register(
"GlobalTrack",
155 IsOutputBranchPersistent(
"GlobalTrack"));
185 Int_t nMergedTracks = 0;
189 Int_t nMergedRings = 0;
192 Int_t nMergedTofHits = 0;
197 cout <<
"-------------------------------------------------------" << endl;
198 cout <<
"-I- Global Track Finding -I-" << endl;
199 cout <<
"Reconstructed STSTracks : " << nSts << endl;
200 cout <<
"Reconstructed TrdTracks : " << nTrd << endl;
201 cout <<
"STS and TRD merged : " << nMergedTracks << endl;
202 cout <<
"Reconstructed RICHrings : " << nRich << endl;
203 cout <<
"RICH rings attached : " << nMergedRings << endl
204 <<
"TOF hits attached : " << nMergedTofHits << endl;
205 cout <<
"--------------------------------------------------------" << endl;
207 cout <<
"-I- CbmFindGlobalTracks: " << nAll <<
" global tracks, "
208 << nMergedTracks <<
" merged, " << nMergedRings <<
" with RICH ring, "
209 << nMergedTofHits <<
" with TOF hit" << endl;