85 LOG(debug) <<
"CbmMvdClusterfinder::Exec : Starting Exec ";
94 LOG(debug) << setw(20) << left << GetName() <<
": Processing time slice " <<
fNofTs <<
" with " << nEvents
95 << (nEvents == 1 ?
" event" :
" events");
96 for (
Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
100 LOG(debug) <<
"Number of clusters before executing the event: " << clustersBeforeEvent;
104 for (
Int_t iCluster = clustersBeforeEvent; iCluster <
fCluster->GetEntriesFast(); ++iCluster) {
115 logOut << setw(20) << left << GetName() <<
" [";
116 logOut << fixed << setw(8) << setprecision(1) << right <<
fTimer.RealTime() * 1000. <<
" ms] ";
117 logOut <<
"TS " <<
fNofTs;
120 logOut <<
", clusters " <<
fCluster->GetEntriesFast();
121 LOG(info) << logOut.str();
172 LOG(info) << GetName() <<
": Initialisation...";
175 FairRootManager* ioman = FairRootManager::Instance();
177 LOG(error) << GetName() <<
"::Init: No FairRootManager!";
185 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
186 "simulation. Switch this task off";
192 LOG(info) << GetName() <<
": Using event-by-event mode";
193 fEvents =
dynamic_cast<TClonesArray*
>(ioman->GetObject(
"CbmEvent"));
195 LOG(warn) << GetName() <<
": Event mode selected but no event array found!";
200 LOG(info) << GetName() <<
": Using time-based mode";
204 fCluster =
new TClonesArray(
"CbmMvdCluster", 10000);
205 ioman->Register(
"MvdCluster",
"Mvd Clusters",
fCluster, IsOutputBranchPersistent(
"MvdCluster"));
209 if (
fDetector->GetSensorArraySize() > 1) {
210 if (fVerbose) LOG(info) <<
"succesfully loaded Geometry from file";
213 LOG(fatal) <<
"Geometry couldn't be loaded from file. No MVD digitizer available.";
217 const std::map<uint32_t, CbmMvdSensor*>& sensorMap =
fDetector->GetSensorMap();
218 UInt_t plugincount =
fDetector->GetPluginCount();
220 for (
auto itr = sensorMap.begin(); itr != sensorMap.end(); itr++) {
223 itr->second->AddPlugin(clusterTask);
224 itr->second->SetClusterPlugin(plugincount);
227 fDetector->SetPluginCount(plugincount + 1);
235 LOG(info) << GetName() <<
" initialised with parameters: ";