parent index -1
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Mar 2011 21:06:47 +0000 (21:06 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Mar 2011 21:06:47 +0000 (21:06 +0000)
Eulogio Serradilla Rodriguez

EVGEN/AliGenDeuteron.cxx

index 7d0d570..a3ff77c 100644 (file)
@@ -356,7 +356,7 @@ void AliGenDeuteron::PushDeuteron(TParticle* parent1, TParticle* parent2)
        Double_t energy = TMath::Sqrt(pN.Mag2() + kDeuteronMass*kDeuteronMass);
        
        // Add a new (anti)deuteron to current event stack
-       fCurStack->PushTrack(1, fCurStack->Particles()->IndexOf(parent1), fSign*kDeuteronPdg,
+       fCurStack->PushTrack(1, -1, fSign*kDeuteronPdg,
                         pN.X(), pN.Y(), pN.Z(), energy,
                         vN.X(), vN.Y(), vN.Z(), parent1->T(),
                         0., 0., 0., kPNCapture, fNtrk, 1., 0);