Fixing shadowing
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Mar 2011 08:05:25 +0000 (08:05 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Mar 2011 08:05:25 +0000 (08:05 +0000)
PWG2/EBYE/AliBalance.cxx

index 6e63b6f..2778991 100644 (file)
@@ -562,8 +562,8 @@ void AliBalance::CalculateBalance(TObjArray *gTrackArray) {
       Double_t pX1 = 0., pY1 = 0.;
       if(track1) {
        charge1 = track1->Charge();
-       Double_t pX1 = track1->Px();
-       Double_t pY1 = track1->Py();
+       pX1 = track1->Px();
+       pY1 = track1->Py();
        //Double_t energy1 = TMath::Sqrt(TMath::Power(track1->P(),2) +
        //TMath::Power(track1->M(),2));
       }