15 #include "FairModule.h"
16 #include "FairRootManager.h"
19 #include "TClonesArray.h"
30 using std::setprecision;
35 : FairTask(
"MVDHitfinder")
40 , fHitfinderPluginNr(0)
41 , useClusterfinder(kFALSE)
42 , fShowDebugHistos(kFALSE)
49 : FairTask(name, iVerbose)
54 , fHitfinderPluginNr(0)
55 , useClusterfinder(kFALSE)
56 , fShowDebugHistos(kFALSE)
65 : FairTask(name, iVerbose)
70 , fHitfinderPluginNr(0)
71 , useClusterfinder(kFALSE)
72 , fShowDebugHistos(kFALSE)
97 LOG(debug) << endl <<
"//----------------------------------------//";
101 LOG(debug) <<
"End Chain";
102 LOG(debug) <<
"Start writing Hits";
106 LOG(debug) <<
"Total of " <<
fHits->GetEntriesFast() <<
" hits found";
107 LOG(debug) <<
"Finished writing Hits";
108 LOG(debug) <<
"//----------------------------------------//";
109 LOG(info) <<
"+ " << setw(20) << GetName()
110 <<
": Created: " <<
fHits->GetEntriesFast() <<
" hits in " << fixed
111 << setprecision(6) <<
fTimer.RealTime() <<
" s";
121 cout <<
"-I- " << GetName() <<
": Initialisation..." << endl;
123 cout <<
"---------------------------------------------" << endl;
124 cout <<
"-I- Initialising " << GetName() <<
" ...." << endl;
127 FairRootManager* ioman = FairRootManager::Instance();
129 cout <<
"-E- " << GetName() <<
"::Init: No FairRootManager!" << endl;
135 fInputCluster = (TClonesArray*) ioman->GetObject(
"MvdCluster");
137 LOG(error) <<
"No MvdCluster branch found. There was no MVD in the "
138 "simulation. Switch this task off";
143 fHits =
new TClonesArray(
"CbmMvdHit", 10000);
145 "MvdHit",
"Mvd Hits",
fHits, IsOutputBranchPersistent(
"MvdHit"));
157 cout << GetName() <<
" initialised with parameters: " << endl;
159 cout <<
"---------------------------------------------" << endl;
189 cout.setf(ios_base::fixed, ios_base::floatfield);
190 cout <<
"============================================================"
192 cout <<
"============== Parameters MvdHitfinder ====================="
194 cout <<
"============================================================"
196 cout <<
"=============== End Task ==================================="