Correction in KeepPhysics
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jan 2011 14:11:24 +0000 (14:11 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 Jan 2011 14:11:24 +0000 (14:11 +0000)
STEER/AliStack.cxx

index 897f1d7..0550ea8 100644 (file)
@@ -314,7 +314,6 @@ Bool_t AliStack::PurifyKine()
          if((part=GetParticleMapEntry(i))) {
 //
 //        Check of this track should be kept for physics reasons 
-           printf("KeepPhysics %5d %5d \n", i, part->GetPdgCode());
              if (KeepPhysics(part)) KeepTrack(i);
 //
              part->ResetBit(kDaughtersBit);
@@ -524,10 +523,10 @@ Bool_t AliStack::KeepPhysics(const TParticle* part)
       TParticle* father = GetParticleMapEntry(parent);
       Int_t imo = parent;
       while((imo > fHgwmk) && (father->GetUniqueID() == kPDecay)) {
-       father = GetParticleMapEntry(imo);
        imo =  father->GetFirstMother();
+       father = GetParticleMapEntry(imo);
       }
-      if (imo <= fHgwmk) keep = kTRUE;
+      if ((imo <= fHgwmk)) keep = kTRUE;
     }
     return keep;
 }