For correlated tracks use the latest event only.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 15:13:41 +0000 (15:13 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 15:13:41 +0000 (15:13 +0000)
ANALYSIS/AliAnalysisTaskPhiCorr.cxx

index 3e23877..082b698 100644 (file)
@@ -77,7 +77,8 @@ void AliAnalysisTaskPhiCorr::UserExec(Option_t *)
     } // event loop
     
 //    Correlated 
-    AliAODEvent* aod = GetEvent(0);
+    AliAODEvent* aod = fInputHandler->GetLatestEvent();
+    
     Int_t ntracks = aod->GetNumberOfTracks();
     for (Int_t iTracks = 0; iTracks < ntracks; iTracks++) {
        for (Int_t jTracks = (iTracks+1); jTracks < ntracks; jTracks++) {