9 #include "FairLogger.h"
10 #include "FairModule.h"
11 #include "FairRootManager.h"
16 #include "TClonesArray.h"
17 #include "TStopwatch.h"
20 #include "../base/CbmDaqBuffer.h"
26 using namespace ::std;
37 : FairTask(name, iVerbose)
40 , fShowDebugHistos(kFALSE)
41 , fNoiseSensors(kFALSE)
51 , fBranchName(
"MvdPoint")
74 LOG(debug) <<
"Send Input";
76 LOG(debug) <<
"Execute DigitizerPlugin Nr. " <<
fDigiPluginNr;
78 LOG(debug) <<
"End Chain";
79 LOG(debug) <<
"Start writing Digis";
81 LOG(debug) <<
"Total of " <<
fDigis->GetEntriesFast()
82 <<
" digis in this Event";
83 for (Int_t
i = 0;
i <
fDigis->GetEntriesFast(); ++
i) {
85 CbmDaqBuffer::Instance()->InsertData(digi);
89 LOG(info) <<
"+ " << setw(20) << GetName() <<
": Event " << setw(6) << right
90 <<
eventNumber <<
", real time " << fixed << setprecision(6)
91 <<
fTimer.RealTime() <<
" s, digis: " <<
fDigis->GetEntriesFast();
100 cout <<
"-I- " << GetName() <<
": Initialisation..." << endl;
102 cout <<
"---------------------------------------------" << endl;
103 cout <<
"-I- Initialising " << GetName() <<
" ...." << endl;
108 FairRootManager* ioman = FairRootManager::Instance();
110 cout <<
"-E- " << GetName() <<
"::Init: No FairRootManager!" << endl;
116 fTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
119 LOG(error) <<
"No MvdPoint branch found. There was no MVD in the "
120 "simulation. Switch this task off";
126 fDigis =
new TClonesArray(
"CbmMvdDigi", 10000);
129 fDigiMatch =
new TClonesArray(
"CbmMatch", 100000);
141 cout << GetName() <<
" initialised with parameters: " << endl;
143 cout <<
"---------------------------------------------" << endl;
177 cout.setf(ios_base::fixed, ios_base::floatfield);
178 cout <<
"============================================================"
180 cout <<
"============== Parameters MvdDigitizer ====================="
182 cout <<
"============================================================"
184 cout <<
"=============== End Task ==================================="