Bug fix in checking file existence (Diego)
authorpcrochet <Philippe.Crochet@cern.ch>
Mon, 3 Mar 2014 15:12:43 +0000 (16:12 +0100)
committerpcrochet <Philippe.Crochet@cern.ch>
Mon, 3 Mar 2014 15:12:43 +0000 (16:12 +0100)
PWGPP/MUON/lite/trigEffQA.C

index ce1a325..309c51b 100644 (file)
@@ -125,7 +125,7 @@ Bool_t ChangeFilenames ( TObjArray &fileNameArray )
     TString fileName = gSystem->BaseName(currFile.Data());
     Int_t runNum = GetRunNumber(fileName);
     TString newFilename = Form("%s/terminateRuns/%i/trigChEff_ANY_Apt_allTrig.root",dirName.Data(),runNum);
-    if ( ! gSystem->AccessPathName(newFilename.Data()) ) {
+    if ( gSystem->AccessPathName(newFilename.Data()) ) {
       printf("New output not found. Use the standard efficiency instead\n");
       return kFALSE;
     }