110 if (fVerbose) LOG(debug) <<
"//----------------------------------------//";
112 LOG(fatal) << GetName() <<
"- Mode without cluster finder is currently not supported ";
117 LOG(debug) <<
"CbmMvdClusterfinder::Exec : Starting Exec ";
125 LOG(debug) << setw(20) << left << GetName() <<
": Processing time slice " <<
fNofTs <<
" with " << nEvents
126 << (nEvents == 1 ?
" event" :
" events");
127 for (
Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
130 Int_t hitsBeforeEvent =
fHits->GetEntriesFast();
131 LOG(debug) <<
"Number of hits before executing the event: " << hitsBeforeEvent;
135 for (
Int_t iHit = hitsBeforeEvent; iHit <
fHits->GetEntriesFast(); ++iHit) {
138 LOG(debug) <<
"The current event contains " <<
event->GetNofData(
ECbmDataType::kMvdHit) <<
" MVD hits";
145 logOut << setw(20) << left << GetName() <<
" [";
146 logOut << fixed << setw(8) << setprecision(1) << right <<
fTimer.RealTime() * 1000. <<
" ms] ";
147 logOut <<
"TS " <<
fNofTs;
150 logOut <<
", hits " <<
fHits->GetEntriesFast();
151 LOG(info) << logOut.str();
202 LOG(info) << GetName() <<
": Initialisation...";
205 FairRootManager* ioman = FairRootManager::Instance();
207 LOG(error) << GetName() <<
"::Init: No FairRootManager!";
213 LOG(fatal) << GetName() <<
" - Mode without cluster finder is currently not supported ";
217 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
218 "simulation. Switch this task off";
223 fInputCluster = (TClonesArray*) ioman->GetObject(
"MvdCluster");
225 LOG(error) <<
"No MvdCluster branch found. There was no MVD in the "
226 "simulation. Switch this task off";
233 LOG(info) << GetName() <<
": Using event-by-event mode";
234 fEvents =
dynamic_cast<TClonesArray*
>(ioman->GetObject(
"CbmEvent"));
236 LOG(warn) << GetName() <<
": Event mode selected but no event array found!";
241 LOG(info) << GetName() <<
": Using time-based mode";
245 fHits =
new TClonesArray(
"CbmMvdHit", 1000);
246 ioman->Register(
"MvdHit",
"Mvd Hits",
fHits, IsOutputBranchPersistent(
"MvdHit"));
252 const std::map<uint32_t, CbmMvdSensor*>& sensorMap =
fDetector->GetSensorMap();
253 UInt_t plugincount =
fDetector->GetPluginCount();
268 for (
auto itr = sensorMap.begin(); itr != sensorMap.end(); itr++) {
271 itr->second->AddPlugin(hitfinderTask);
272 itr->second->SetHitPlugin(plugincount);
278 fDetector->SetPluginCount(plugincount + 1);
286 LOG(info) << GetName() <<
" initialised with parameters: ";