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

Topic revision: r1 - 2004-02-25, PeterZumbruch
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)