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
TFile * file = static_cast<TFile*>(gROOT->GetFile(fHeaderFile.Data() ) ) ;
-
if(file == 0){ //if file was not opened yet, read gAlice
if(fHeaderFile.Contains("rfio")) // if we read file using HPSS
file = TFile::Open(fHeaderFile.Data(),"update") ;
if (!file->IsOpen()) {
cerr << "ERROR : AliPHOSGetter::AliPHOSGetter -> Cannot open " << fHeaderFile.Data() << endl ;
- abort() ;
+ fFailed = kTRUE ;
+ return ;
}
gAlice = static_cast<AliRun *>(file->Get("gAlice")) ;
if (!gAlice) {
cerr << "ERROR : AliPHOSGetter::AliPHOSGetter -> Cannot find gAlice in " << fHeaderFile.Data() << endl ;
- abort() ;
+ fFailed = kTRUE ;
+ return ;
}
if (!PHOS()) {
if (fDebug)
virtual ~AliPHOSGetter() ;
+ const Bool_t HasFailed() const { return fFailed ; }
Bool_t PostPrimaries(void ) const ;
Bool_t PostHits(void ) const ;
Bool_t PostSDigits( const char * name, const char * file = 0) const ;
TString fDigitsTitle ; //!
TString fSDigitsTitle ; //!
+ Bool_t fFailed ; //! set if file not opend or galice not found
Int_t fDebug ; // Debug level
Int_t fNPrimaries ; //! # of primaries