diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx b/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx index 58e23680845..e3dc57762fd 100644 --- a/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx +++ b/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx @@ -36,7 +36,6 @@ AliDecayerPythia8::AliDecayerPythia8(): fPythia8(AliTPythia8::Instance()), fDebug(0), fDecay(kAll), - fEnableLongLivedDecay(kFALSE), fHeavyFlavour(kTRUE) { // Constructor @@ -96,18 +95,12 @@ void AliDecayerPythia8::Init() } fPythia8->ReadString("111:onMode = on"); - -//...Switch off decay of K0S, Lambda, Sigma+-, Xi0-, Omega-. - if(!fEnableLongLivedDecay) { - fPythia8->ReadString("310:onMode = off"); - fPythia8->ReadString("3122:onMode = off"); - fPythia8->ReadString("3112:onMode = off"); - fPythia8->ReadString("3222:onMode = off"); - fPythia8->ReadString("3312:onMode = off"); - fPythia8->ReadString("3322:onMode = off"); - fPythia8->ReadString("3334:onMode = off"); - } -// .. Force decay channels + + // implement ALICE primary particle definition + fPythia8->ReadString("ParticleDecays:limitTau0 = on"); // set long-lived particle stable ... + fPythia8->ReadString("ParticleDecays:tau0Max = 10"); // ... if c*tau0 > 10 mm/c + + // .. Force decay channels ForceDecay(); } diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.h b/PYTHIA8/AliPythia8/AliDecayerPythia8.h index f18f178ce2b..8f38b201291 100644 --- a/PYTHIA8/AliPythia8/AliDecayerPythia8.h +++ b/PYTHIA8/AliPythia8/AliDecayerPythia8.h @@ -24,7 +24,6 @@ class AliDecayerPythia8 : public TVirtualMCDecayer { virtual Int_t ImportParticles(TClonesArray *particles); virtual void SetForceDecay(Decay_t decay) {fDecay=decay;} virtual void SetForceDecay(Int_t decay) {SetForceDecay((Decay_t) decay);} - virtual void SetLongLivedDecay(bool val = true) { fEnableLongLivedDecay = val; } virtual void ForceDecay(); virtual Float_t GetPartialBranchingRatio(Int_t ipart); virtual void HeavyFlavourOff() {fHeavyFlavour = kFALSE;} @@ -46,10 +45,9 @@ class AliDecayerPythia8 : public TVirtualMCDecayer { Int_t fDebug; // Debug level Decay_t fDecay; // Forced decay mode - bool fEnableLongLivedDecay; // To enable long lived particle decay Bool_t fHeavyFlavour; //! Flag for heavy flavors static Bool_t fgInit; //! initialization flag - ClassDef(AliDecayerPythia8, 3) // Particle Decayer using Pythia8 + ClassDef(AliDecayerPythia8, 4) // Particle Decayer using Pythia8 }; #endif