Go to the documentation of this file.
15 #include "FairModule.h"
16 #include "FairRootManager.h"
20 #include "TClonesArray.h"
21 #include "TGeoManager.h"
34 using std::setprecision;
46 : FairTask(name, iVerbose)
48 , fShowDebugHistos(kFALSE)
55 , fBranchName(
"MvdDigi")
76 Int_t nEvents =
fEvents->GetEntriesFast();
77 for (Int_t iEv = 0; iEv < nEvents; ++iEv) {
78 LOG(debug) <<
"Getting data from CbmEvent";
82 for (Int_t nDigi = 0; nDigi < nrOfDigis; ++nDigi) {
87 LOG(debug) <<
"//----------------------------------------//";
88 LOG(debug) << endl <<
"Send Input";
92 LOG(debug) <<
"End Chain";
93 LOG(debug) <<
"Start writing Cluster";
98 LOG(debug) <<
"Total of " <<
fCluster->GetEntriesFast()
99 <<
" Cluster in this Event";
100 LOG(debug) <<
"//----------------------------------------//";
101 LOG(info) <<
"+ " << setw(20) << GetName()
102 <<
": Created: " <<
fCluster->GetEntriesFast() <<
" cluster in "
103 << 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;
124 fEvents = (TClonesArray*) ioman->GetObject(
"Event");
129 fEventDigis =
new TClonesArray(
"CbmMvdDigi", 10000);
131 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
132 "simulation. Switch this task off";
137 fCluster =
new TClonesArray(
"CbmMvdCluster", 10000);
138 ioman->Register(
"MvdCluster",
141 IsOutputBranchPersistent(
"MvdCluster"));
146 LOG(debug) <<
"-I- succesfully loaded Geometry from file -I-";
149 <<
"Geometry couldn't be loaded from file. No MVD digitizer available.";
162 LOG(info) << GetName() <<
" initialised";
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.
TClonesArray * fEventDigis
virtual InitStatus ReInit()
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.
const Digi * Get(Int_t index) const
Get a digi object.
void SendInputDigis(CbmDigiManager *digiMan)
CbmDigiManager * fDigiMan
virtual InitStatus Init()
Int_t GetSensorArraySize()
TStopwatch fTimer
ROOT timer.
Class characterising one event by a collection of links (indices) to data objects,...
CbmDigiManager * fDigiMan
void AddPlugin(CbmMvdSensorPlugin *plugin)
ClassImp(CbmMvdClusterfinderTB)
CbmMvdDetector * fDetector