]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALGetter.cxx
Added the fFailed data member that gives the status of the file and of galice
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGetter.cxx
index 3209329f6c40cfb465371519d93d24b04791dfea..75fc6365e34957d175be1fa6104b4f69d0ab6261 100644 (file)
@@ -103,6 +103,7 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle,
   //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
@@ -116,7 +117,8 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle,
       
       if (!file->IsOpen()) {
        cerr << "ERROR : AliEMCALGetter::AliEMCALGetter -> Cannot open " << fHeaderFile.Data() << endl ; 
-       abort() ; 
+               fFailed = kTRUE ;
+        return ;  
       }
       
       gAlice = static_cast<AliRun *>(file->Get("gAlice")) ;
@@ -125,7 +127,8 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle,
 
   if (!gAlice) {
     cerr << "ERROR : AliEMCALGetter::AliEMCALGetter -> Cannot find gAlice in " << fHeaderFile.Data() << endl ; 
-    abort() ; 
+    fFailed = kTRUE ;
+    return ; 
   }
   if (!EMCAL()) {
     if (fDebug)