]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Protected against having _ in the file name
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2002 13:05:16 +0000 (13:05 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 May 2002 13:05:16 +0000 (13:05 +0000)
EMCAL/AliEMCALGetter.cxx
PHOS/AliPHOSGetter.cxx

index 2f654586bf7112c8e3f431caf0aa321fcd920035..e30cc1f303646a6009f063181453bd3a3934f3f6 100644 (file)
@@ -111,6 +111,10 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle,
     //open headers file
     fFile = static_cast<TFile*>(gROOT->GetFile(fHeaderFile.Data() ) ) ;
     if(!fFile){    //if file was not opened yet, read gAlice
+      if ( fHeaderFile.Contains("_") ) {
+       cerr << "AliPHOSGetter::AliPHOSGetter -> Invalid file name (_ not allowed) " << fHeaderFile.Data() << endl ;
+       abort() ; 
+      }
       fFile =  TFile::Open(fHeaderFile.Data(),rw) ;   
       
       if (!fFile->IsOpen()) {
index d11a6d0777a86f1619d1d02a9cecfbb7d45ad9b0..4114215d9b0e4dab12ab1588793c3a245174f786 100644 (file)
@@ -109,6 +109,10 @@ AliPHOSGetter::AliPHOSGetter(const char* headerFile, const char* branchTitle )
     //open headers file
     fFile = static_cast<TFile*>(gROOT->GetFile(fHeaderFile.Data() ) ) ;
     if(!fFile) {    //if file was not opened yet, read gAlice
+      if ( fHeaderFile.Contains("_") ) {
+       cerr << "AliPHOSGetter::AliPHOSGetter -> Invalid file name (_ not allowed) " << fHeaderFile.Data() << endl ;
+       abort() ; 
+      }
       fFile = TFile::Open(fHeaderFile.Data(),"update") ;
       
       if (!fFile->IsOpen()) {