bug fix suggested by TPC
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Sep 2009 16:30:46 +0000 (16:30 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Sep 2009 16:30:46 +0000 (16:30 +0000)
STEER/AliQAv1.cxx

index d117b31..b57788f 100644 (file)
@@ -435,14 +435,15 @@ TFile * AliQAv1::GetQADataFile(const char * fileName)
 {
   // Open if necessary the Data file and return its pointer
 
-  if (!fgQADataFile) 
-       if (!fileName) 
-               fileName = AliQAv1::GetQADataFileName() ; 
-       if  (!gSystem->AccessPathName(fileName)) {
-               fgQADataFile =  TFile::Open(fileName) ;
-       } else {
-               AliFatalClass(Form("File %s not found", fileName)) ;
-       }
+  if (!fgQADataFile) {
+    if (!fileName) 
+      fileName = AliQAv1::GetQADataFileName() ; 
+    if  (!gSystem->AccessPathName(fileName)) {
+      fgQADataFile =  TFile::Open(fileName) ;
+    } else {
+      AliFatalClass(Form("File %s not found", fileName)) ;
+    }
+  }
   return fgQADataFile ; 
 }