Shadowed variable corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 May 2008 07:29:10 +0000 (07:29 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 May 2008 07:29:10 +0000 (07:29 +0000)
EVGEN/AliGenCorrHF.cxx

index 707271d..e70337c 100644 (file)
@@ -483,7 +483,7 @@ void AliGenCorrHF::Generate()
            if (pSelected[i]) {
              TParticle* iparticle = (TParticle *) particles->At(i);
              Int_t kf  = iparticle->GetPdgCode();
-             Int_t ipa = iparticle->GetFirstMother()-1;
+             Int_t jpa = iparticle->GetFirstMother()-1;
              
              och[0] = origin0[0]+iparticle->Vx()/10;
              och[1] = origin0[1]+iparticle->Vy()/10;
@@ -492,8 +492,8 @@ void AliGenCorrHF::Generate()
              pc[1]  = iparticle->Py();
              pc[2]  = iparticle->Pz();
              
-             if (ipa > -1) {
-               iparent = pParent[ipa];
+             if (jpa > -1) {
+               iparent = pParent[jpa];
              } else {
                iparent = -1;
              }