Save particle generation status code
authoreserradi <eulogio.serradilla@cern.ch>
Thu, 6 Nov 2014 13:58:10 +0000 (14:58 +0100)
committermorsch <andreas.morsch@cern.ch>
Thu, 13 Nov 2014 12:38:04 +0000 (13:38 +0100)
EVGEN/AliGenCocktailAfterBurner.cxx

index 642ad5c..cb60ad1 100644 (file)
@@ -386,6 +386,7 @@ void AliGenCocktailAfterBurner::SetTracks(Int_t stackno)
     Int_t ntr;
     Float_t weight;
     TVector3 pol;
+    Int_t is;
     
     TParticle * p;
     Int_t n = instack->GetNtrack();
@@ -415,8 +416,9 @@ void AliGenCocktailAfterBurner::SetTracks(Int_t stackno)
       polz = pol.Z();
       mech = AliGenCocktailAfterBurner::IntToMCProcess(p->GetUniqueID());
       weight = p->GetWeight();
+      is = p->GetStatusCode();
 
-      gAlice->GetMCApp()->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,polx, poly, polz, mech, ntr, weight);
+      gAlice->GetMCApp()->PushTrack(done, parent, pdg, px, py, pz, e, vx, vy, vz, tof,polx, poly, polz, mech, ntr, weight, is);
 
       SetHighWaterMark(ntr) ;