Bug fix
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 15:11:11 +0000 (15:11 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 15:11:11 +0000 (15:11 +0000)
PWG2/EBYE/AliBalance.cxx

index 2a52742..3f643b1 100644 (file)
@@ -274,7 +274,7 @@ void AliBalance::CalculateBalance(TObjArray *gTrackArray, vector<Int_t> chargeVe
            }//charge < 0
          }//p1 interval check
        }//analysis type: eta
-       if(iAnalysisType == kPhi) {
+       else if(iAnalysisType == kPhi) {
          if((phi >= fP1Start[iAnalysisType]) && (phi <= fP1Stop[iAnalysisType])) {
            if(charge > 0) {
              fNp[iAnalysisType] += 1.;