bug fix
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Mar 2012 19:09:32 +0000 (19:09 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Mar 2012 19:09:32 +0000 (19:09 +0000)
PWGJE/AliAnalysisTaskJetCore.cxx

index cdcbb49..da849dd 100644 (file)
@@ -838,8 +838,8 @@ Int_t  AliAnalysisTaskJetCore::GetListOfTracks(TList *list){
       dphi=RelativePhi(tr->Phi(),jetbig->Phi());  
       if(TMath::Abs(dphi)<TMath::Pi()-0.2) continue;
       if(tr->Pt()>ptmax){ ptmax=tr->Pt();
-       index=iCount;
-        dif=dphi;  }}
+      index=iCount-1;
+      dif=dphi;  }}
   
       return index;