]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 85e7fc8418cd0391277fa8b9600c3aa18a5c3485..fe69b0839e7981c1d796dbfda92f6198bf820577 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!