fix the mixed event bin setting
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Nov 2013 11:35:35 +0000 (11:35 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Nov 2013 11:35:35 +0000 (11:35 +0000)
PWGGA/CaloTrackCorrelations/AliAnaPi0.cxx

index ac8a650..d7edca9 100755 (executable)
@@ -2385,9 +2385,9 @@ void AliAnaPi0::MakeAnalysisFillHistograms()
                 {
                   if(a < fAsymCuts[iasym])
                   {
-                    Int_t index = ((GetEventCentralityBin()*fNPIDBits)+ipid)*fNAsymCuts + iasym;
+                    Int_t index = ((curCentrBin*fNPIDBits)+ipid)*fNAsymCuts + iasym;
                     
-                    if(index < 0 || index >= curCentrBin*fNPIDBits*fNAsymCuts) continue ;
+                    if(index < 0 || index >= ncentr*fNPIDBits*fNAsymCuts) continue ;
 
                     fhMi1     [index]->Fill(pt,m) ;
                     if(fMakeInvPtPlots)fhMiInvPt1[index]->Fill(pt,m,1./pt) ;