]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In case of keeping the new aod branches in the standard AOD, correct the filling...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Feb 2010 11:14:55 +0000 (11:14 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Feb 2010 11:14:55 +0000 (11:14 +0000)
PWG4/PartCorrBase/AliAnaPartCorrBaseClass.cxx

index 6a77c63414418d0db5c2c3df4132f16a4b95ec0b..fe951abe1df0264634f6f8f61c028a0e460b9327 100755 (executable)
@@ -295,8 +295,10 @@ void AliAnaPartCorrBaseClass::ConnectInputOutputAODBranches() {
                          fOutputAODBranch =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fOutputAODName);
                          fInputAODBranch  =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fInputAODName);        
                  }
-                 else fInputAODBranch  =  (TClonesArray *) fReader->GetInputEvent()->FindListObject(fInputAODName);    
-
+                 else {
+                         fInputAODBranch  =  (TClonesArray *) fReader->GetInputEvent()->FindListObject(fInputAODName); 
+                         if(!fInputAODBranch) fInputAODBranch  =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fInputAODName);//Try the output event.
+                 }
          }
   }
   else{ //If no Delta AODs, kept in standard branch
@@ -304,9 +306,10 @@ void AliAnaPartCorrBaseClass::ConnectInputOutputAODBranches() {
                  fOutputAODBranch =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fOutputAODName);
                  fInputAODBranch  =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fInputAODName);        
          }
-         else 
+         else{ 
                  fInputAODBranch  =  (TClonesArray *) fReader->GetInputEvent()->FindListObject(fInputAODName);
-
+                 if(!fInputAODBranch)  fInputAODBranch  =  (TClonesArray *) fReader->GetOutputEvent()->FindListObject(fInputAODName);//Try the output event.
+         }
   }
        
   if(GetDebug() > 1){