//fQAFolder = dynamic_cast<TFolder*>(gROOT->FindObjectAny("Folders/Run/Conditions/QA"));
fTasksFolder = dynamic_cast<TFolder*>(gROOT->FindObjectAny("Folders/Tasks")) ;
+ fFailed = kFALSE ;
if ( fHeaderFile != "aliroot" ) { // to call the getter without a file
//open headers file
if (!file->IsOpen()) {
cerr << "ERROR : AliEMCALGetter::AliEMCALGetter -> Cannot open " << fHeaderFile.Data() << endl ;
- abort() ;
+ fFailed = kTRUE ;
+ return ;
}
gAlice = static_cast<AliRun *>(file->Get("gAlice")) ;
if (!gAlice) {
cerr << "ERROR : AliEMCALGetter::AliEMCALGetter -> Cannot find gAlice in " << fHeaderFile.Data() << endl ;
- abort() ;
+ fFailed = kTRUE ;
+ return ;
}
if (!EMCAL()) {
if (fDebug)
virtual ~AliEMCALGetter() ;
+ const Bool_t HasFailed(void) const {return fFailed ;}
Bool_t PostHits(void ) const ;
Bool_t PostSDigits( const char * name, const char * file = 0) const ;
Bool_t PostDigits( const char * name ) const ;
TString fDigitsTitle ; //!
TString fSDigitsTitle ; //!
+ Bool_t fFailed ; //! true if file is not opened and/or galice not found
Int_t fDebug ; // Debug level
Int_t fNPrimaries ; //! # of primaries