Question:
Hello,
is there any reason why neither
rtdb->initContainers(...)
nor
(HSpectrometer*)setup->init()
are checked for their return values and return a kFALSE?
http://www-hades.gsi.de/docs/hydra/classDocumentation/dev/src/Hades.cxx.html#Hades:init
Bool_t Hades::init(void)
{
// This function initializes Hades. This includes initialization of the
// reconstructors, the data source and the detectors.
rtdb->initContainers(fDataSource->getCurrentRunId(), <--------
fDataSource->getCurrentRefId()); <--------
setup->init(); <--------
fDataSource->setEventAddress(&fCurrentEvent);
if (!fDataSource->init()){
printf("nError in fDataSource->init()n");
return kFALSE;
}
if (fSecondDataSource) {
fSecondDataSource->setEventAddress(&fCurrentEvent);
if (!fSecondDataSource->init()){
printf("nError in fSecondDataSource->init()n");
return kFALSE;
}
}
Int_t vers=((fCurrentEvent->getHeader()->getVersion()));
initTaskSetsIDs(vers);
if (!initTasks()) return kFALSE;
return kTRUE;
}
Answer