Go to the documentation of this file.
16 #include "FairModule.h"
17 #include "FairRootManager.h"
21 #include "TClonesArray.h"
22 #include "TGeoManager.h"
35 using std::setprecision;
40 : FairTask(
"MVDClusterfinder")
42 , fShowDebugHistos(kFALSE)
55 : FairTask(name, iVerbose)
57 , fShowDebugHistos(kFALSE)
62 , fBranchName(
"MvdDigi")
83 if (fVerbose) cout <<
"//----------------------------------------//";
84 if (fVerbose) cout << endl <<
"Send Input" << endl;
89 if (fVerbose) cout <<
"End Chain" << endl;
90 if (fVerbose) cout <<
"Start writing Cluster" << endl;
96 cout <<
"Total of " <<
fCluster->GetEntriesFast()
97 <<
" Cluster in this Event" << endl;
99 cout <<
"//----------------------------------------//" << endl;
100 LOG(info) <<
"+ " << setw(20) << GetName()
101 <<
": Created: " <<
fCluster->GetEntriesFast() <<
" cluster in "
102 << fixed << setprecision(6) <<
fTimer.RealTime() <<
" s";
111 cout <<
"-I- " << GetName() <<
": Initialisation..." << endl;
113 cout <<
"---------------------------------------------" << endl;
114 cout <<
"-I- Initialising " << GetName() <<
" ...." << endl;
117 FairRootManager* ioman = FairRootManager::Instance();
119 cout <<
"-E- " << GetName() <<
"::Init: No FairRootManager!" << endl;
127 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
128 "simulation. Switch this task off";
133 fCluster =
new TClonesArray(
"CbmMvdCluster", 10000);
134 ioman->Register(
"MvdCluster",
137 IsOutputBranchPersistent(
"MvdCluster"));
143 cout << endl <<
"-I- succesfully loaded Geometry from file -I-" << endl;
146 <<
"Geometry couldn't be loaded from file. No MVD digitizer available.";
159 cout << GetName() <<
" initialised with parameters: " << endl;
161 cout <<
"---------------------------------------------" << endl;
192 cout <<
"============================================================"
194 cout <<
"============== Parameters Clusterfinder ===================="
196 cout <<
"============================================================"
198 cout <<
"=============== End Task ==================================="
static CbmMvdDetector * Instance()
UInt_t GetPluginArraySize()
TClonesArray * GetOutputCluster()
InitStatus Init()
Initialisation.
@ kMvd
Micro-Vertex Detector.
static Int_t GetNofDigis(ECbmModuleId systemId)
static Bool_t IsPresent(ECbmModuleId systemId)
Presence of a digi branch.
Helper class to extract information from the GeoManager. Addapted from TrdGeoHandler byFlorian Uhlig ...
static CbmDigiManager * Instance()
Static instance.
CbmMvdDetector * fDetector
void SendInputDigis(CbmDigiManager *digiMan)
CbmDigiManager * fDigiMan
CbmDigiManager * fDigiMan
ClassImp(CbmMvdClusterfinder)
virtual InitStatus Init()
TStopwatch fTimer
ROOT timer.
Int_t GetSensorArraySize()
virtual InitStatus ReInit()
void AddPlugin(CbmMvdSensorPlugin *plugin)