Skip to content
Snippets Groups Projects
Commit b24b5a16 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau
Browse files

Change name of CbmEvent array in reco classes in mvd folder

parent d7b8325d
No related branches found
No related tags found
1 merge request!173mCBM 2020: Event based reco with STS, RICH and PSD
...@@ -84,12 +84,12 @@ InitStatus CbmCheckEvents::Init() { ...@@ -84,12 +84,12 @@ InitStatus CbmCheckEvents::Init() {
fEvents = dynamic_cast<TClonesArray*>(ioman->GetObject("CbmEvent")); fEvents = dynamic_cast<TClonesArray*>(ioman->GetObject("CbmEvent"));
if (nullptr == fEvents) { if (nullptr == fEvents) {
if (nullptr != (ioman->GetObject("Event"))) { if (nullptr != (ioman->GetObject("CbmEvent"))) {
LOG(error) << "Got pointer of type" LOG(error) << "Got pointer of type"
<< typeid(ioman->GetObject("Event")).name(); << typeid(ioman->GetObject("CbmEvent")).name();
LOG(error) << "Got Object of type" LOG(error) << "Got Object of type"
<< typeid(*(ioman->GetObject("Event"))).name(); << typeid(*(ioman->GetObject("CbmEvent"))).name();
} // if( nullptr != (ioman->GetObject("Event") ) } // if( nullptr != (ioman->GetObject("CbmEvent") )
LOG(fatal) << "No TClonesArray with events found."; LOG(fatal) << "No TClonesArray with events found.";
} // if (nullptr == fEvents) } // if (nullptr == fEvents)
......
...@@ -121,7 +121,7 @@ InitStatus CbmMvdClusterfinderTB::Init() { ...@@ -121,7 +121,7 @@ InitStatus CbmMvdClusterfinderTB::Init() {
} }
// ********** Get input arrays // ********** Get input arrays
fEvents = (TClonesArray*) ioman->GetObject("Event"); fEvents = dynamic_cast<TClonesArray*>(ioman->GetObject("CbmEvent"));
fDigiMan = CbmDigiManager::Instance(); fDigiMan = CbmDigiManager::Instance();
fDigiMan->Init(); fDigiMan->Init();
......
...@@ -118,7 +118,7 @@ InitStatus CbmMvdDigiToHitTB::Init() { ...@@ -118,7 +118,7 @@ InitStatus CbmMvdDigiToHitTB::Init() {
} }
// ********** Get input arrays // ********** Get input arrays
fEvents = (TClonesArray*) ioman->GetObject("Event"); fEvents = dynamic_cast<TClonesArray*>(ioman->GetObject("CbmEvent"));
fInputDigis = (TClonesArray*) ioman->GetObject("MvdDigi"); fInputDigis = (TClonesArray*) ioman->GetObject("MvdDigi");
fEventDigis = new TClonesArray("CbmMvdDigi", 10000); fEventDigis = new TClonesArray("CbmMvdDigi", 10000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment