From: schutz Date: Wed, 24 Apr 2002 16:12:17 +0000 (+0000) Subject: Added the fFailed data member that gives the status of the file and of galice X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=28b243ad3acb202b085ae08d0976c2619fd2e644;ds=sidebyside Added the fFailed data member that gives the status of the file and of galice --- diff --git a/EMCAL/AliEMCALGetter.cxx b/EMCAL/AliEMCALGetter.cxx index 3209329f6c4..75fc6365e34 100644 --- a/EMCAL/AliEMCALGetter.cxx +++ b/EMCAL/AliEMCALGetter.cxx @@ -103,6 +103,7 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle, //fQAFolder = dynamic_cast(gROOT->FindObjectAny("Folders/Run/Conditions/QA")); fTasksFolder = dynamic_cast(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(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) diff --git a/EMCAL/AliEMCALGetter.h b/EMCAL/AliEMCALGetter.h index 27a82fac999..06acc925d0e 100644 --- a/EMCAL/AliEMCALGetter.h +++ b/EMCAL/AliEMCALGetter.h @@ -61,6 +61,7 @@ class AliEMCALGetter : public TObject { 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 ; @@ -207,6 +208,7 @@ class AliEMCALGetter : public TObject { 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