17 #include "FairModule.h"
18 #include "FairRootManager.h"
21 #include "TClonesArray.h"
32 using std::setprecision;
37 : FairTask(
"MVDHitfinder")
42 , fHitfinderPluginNr(0)
43 , useClusterfinder(kFALSE)
44 , fShowDebugHistos(kFALSE)
51 : FairTask(name, iVerbose)
56 , fHitfinderPluginNr(0)
57 , useClusterfinder(kFALSE)
58 , fShowDebugHistos(kFALSE)
65 : FairTask(name, iVerbose)
70 , fHitfinderPluginNr(0)
71 , useClusterfinder(kFALSE)
72 , fShowDebugHistos(kFALSE)
98 cout << endl <<
"//----------------------------------------//" << endl;
106 if (fVerbose) cout <<
"End Chain" << endl;
107 if (fVerbose) cout <<
"Start writing Hits" << endl;
112 cout <<
"Total of " <<
fHits->GetEntriesFast() <<
" hits found" << endl;
113 if (fVerbose) cout <<
"Finished writing Hits" << endl;
115 cout <<
"//----------------------------------------//" << endl << endl;
116 LOG(info) <<
"+ " << setw(20) << GetName()
117 <<
": Created: " <<
fHits->GetEntriesFast() <<
" hits in "
118 << fixed << setprecision(6) <<
fTimer.RealTime() <<
" s";
129 cout <<
"-I- " << GetName() <<
": Initialisation..." << endl;
131 cout <<
"---------------------------------------------" << endl;
132 cout <<
"-I- Initialising " << GetName() <<
" ...." << endl;
135 FairRootManager* ioman = FairRootManager::Instance();
137 cout <<
"-E- " << GetName() <<
"::Init: No FairRootManager!" << endl;
146 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
147 "simulation. Switch this task off";
151 fInputCluster = (TClonesArray*) ioman->GetObject(
"MvdCluster");
153 LOG(error) <<
"No MvdCluster branch found. There was no MVD in the "
154 "simulation. Switch this task off";
161 fHits =
new TClonesArray(
"CbmMvdHit", 10000);
163 "MvdHit",
"Mvd Hits",
fHits, IsOutputBranchPersistent(
"MvdHit"));
176 cout << endl <<
"running with external clusterfinder" << endl;
185 cout << GetName() <<
" initialised with parameters: " << endl;
187 cout <<
"---------------------------------------------" << endl;
217 cout.setf(ios_base::fixed, ios_base::floatfield);
218 cout <<
"============================================================"
220 cout <<
"============== Parameters MvdHitfinder ====================="
222 cout <<
"============================================================"
224 cout <<
"=============== End Task ==================================="