added an additional case for string replacement when reading AODs
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Sep 2009 15:51:45 +0000 (15:51 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Sep 2009 15:51:45 +0000 (15:51 +0000)
PWG4/JetTasks/AliAnalysisTaskJFSystematics.cxx
PWG4/JetTasks/AliAnalysisTaskJetSpectrum.cxx

index 8202732..f07a903 100644 (file)
@@ -190,6 +190,9 @@ Bool_t AliAnalysisTaskJFSystematics::Notify()
     if(fileName.Contains("AliESDs.root")){
         fileName.ReplaceAll("AliESDs.root", "");
     }
+    else if(fileName.Contains("AliAOD.root")){
+        fileName.ReplaceAll("AliAOD.root", "");
+    }
     else if(fileName.Contains("AliAODs.root")){
         fileName.ReplaceAll("AliAODs.root", "");
     }
index e97dabf..a875d99 100644 (file)
@@ -174,6 +174,9 @@ Bool_t AliAnalysisTaskJetSpectrum::Notify()
     if(fileName.Contains("AliESDs.root")){
         fileName.ReplaceAll("AliESDs.root", "");
     }
+    else if(fileName.Contains("AliAOD.root")){
+        fileName.ReplaceAll("AliAOD.root", "");
+    }
     else if(fileName.Contains("AliAODs.root")){
         fileName.ReplaceAll("AliAODs.root", "");
     }