#include "AliGenDPMjetEventHeader.h"
#include "AliRun.h"
#include "AliDpmJetRndm.h"
+#include "AliIonPDGCodes.h"
#include "AliHeader.h"
#include "AliStack.h"
#include "AliMC.h"
- Bool_t tFlag = (fTrackIt && (ks == 1));
+ Bool_t tFlag = (fTrackIt && (ks==1 || ks==-1));
+ //printf(" AliGemDPMJet->PushTrack: kf %d ks %d flag %d\n",kf,ks,tFlag);
+ if(kf>10000 && (ks==-1 || ks==1000 || ks==1001)) kf += 1000000000;
PushTrack(tFlag, imo, kf,
p[0], p[1], p[2], p[3],
origin[0], origin[1], origin[2], tof,
{
// Return true for a stable particle
//
-
-// if (particle->GetFirstDaughter() < 0 ) return kTRUE;
- if (particle->GetStatusCode() == 1) return kTRUE;
+ int st = particle->GetStatusCode();
+ if(st == 1 || st == -1) return kTRUE;
else return kFALSE;
}
return kTRUE;
}
+// -------------------------------------------------------
+void AliGenDPMjet::SetIonPDGCodes()
+{
+ // Defining PDG codes for the ions
+ AliIonPDGCodes *pdgcodes = new AliIonPDGCodes();
+ pdgcodes->AddParticlesToPdgDataBase();
+}
-
+// -------------------------------------------------------
Bool_t AliGenDPMjet::GetWeightsDiffraction(Double_t M, Double_t &Mmin, Double_t &Mmax,
Double_t &wSD, Double_t &wDD, Double_t &wND)
{