This fixes part of the crashe due to unknown kf's passed to pythia
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 19 Mar 2011 16:34:01 +0000 (16:34 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 19 Mar 2011 16:34:01 +0000 (16:34 +0000)
TAmpt/AliGenAmpt.cxx

index 85e7fc8..fe69b08 100644 (file)
@@ -287,7 +287,7 @@ void AliGenAmpt::Generate()
         TParticle *iparticle = (TParticle *)fParticles.At(i);
         if (!Stable(iparticle)) 
           continue;
-        kf        = iparticle->GetPdgCode();
+        kf        = TMath::Abs(iparticle->GetPdgCode());
         if (kf==92)
           continue;
         if (0) { // this turned out to be too cumbersome!