116 LOG(info) << GetName() <<
": Initialisation..." << endl;
119 FairRootManager* ioman = FairRootManager::Instance();
121 LOG(error) << GetName() <<
"::Init: No FairRootManager!";
126 fInputDigis = (TClonesArray*) ioman->GetObject(
"MvdDigi");
129 LOG(error) <<
"No MvdDigi branch found. There was no MVD in the "
130 "simulation. Switch this task off";
135 fHit =
new TClonesArray(
"CbmMvdHit", 10000);
136 ioman->Register(
"MvdHit",
"Mvd Hit",
fHit, IsOutputBranchPersistent(
"MvdHit"));
140 if (
fDetector->GetSensorArraySize() > 1) {
141 if (fVerbose) LOG(info) <<
"succesfully loaded Geometry from file";
144 LOG(fatal) <<
"Geometry couldn't be loaded from file. No MVD digitizer available.";
148 const std::map<uint32_t, CbmMvdSensor*>& sensorMap =
fDetector->GetSensorMap();
149 UInt_t plugincount =
fDetector->GetPluginCount();
151 for (
auto itr = sensorMap.begin(); itr != sensorMap.end(); itr++) {
154 itr->second->AddPlugin(hitTask);
155 itr->second->SetHitPlugin(plugincount);
158 fDetector->SetPluginCount(plugincount + 1);
166 LOG(info) << GetName() <<
" initialised with parameters: ";