making the container name parameterized
[u/mrichter/AliRoot.git] / PWG / CaloTrackCorrBase / AliCalorimeterUtils.cxx
index 7893802..1322e8d 100755 (executable)
@@ -250,7 +250,8 @@ void AliCalorimeterUtils::AccessOADB(AliVEvent* event)
       if(trecal)
       {
         TString passTmp = pass;
-        if(pass!="pass1" && pass!="pass2") pass = "pass2"; // TEMPORARY FIX FOR LHC11a analysis
+        if(pass!="pass1" && pass!="pass2") passTmp = "pass2"; // TEMPORARY FIX FOR LHC11a analysis
+        
         TObjArray *trecalpass=(TObjArray*)trecal->FindObject(passTmp);
         
         if(trecalpass)