From f593ee4a0757f7a9e6003e61ce769a5e07adcf81 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 1 Feb 2024 15:47:31 +0100 Subject: [PATCH 1/4] Update AliDecayerPythia8.cxx --- PYTHIA8/AliPythia8/AliDecayerPythia8.cxx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx b/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx index 58e23680845..ca501aa0523 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"); // set long-lived particle stable ... + + // .. Force decay channels ForceDecay(); } From efa2ce4f1f31a2ad46d82be56bb5421588ef86cf Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 1 Feb 2024 15:48:17 +0100 Subject: [PATCH 2/4] Update AliDecayerPythia8.h --- PYTHIA8/AliPythia8/AliDecayerPythia8.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.h b/PYTHIA8/AliPythia8/AliDecayerPythia8.h index f18f178ce2b..6d37a3a6d1a 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,7 +45,6 @@ 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 From 6ed31fe0454838f052c74725d04117cd48f04701 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 1 Feb 2024 15:48:41 +0100 Subject: [PATCH 3/4] Update AliDecayerPythia8.cxx --- PYTHIA8/AliPythia8/AliDecayerPythia8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx b/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx index ca501aa0523..e3dc57762fd 100644 --- a/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx +++ b/PYTHIA8/AliPythia8/AliDecayerPythia8.cxx @@ -98,7 +98,7 @@ void AliDecayerPythia8::Init() // implement ALICE primary particle definition fPythia8->ReadString("ParticleDecays:limitTau0 = on"); // set long-lived particle stable ... - fPythia8->ReadString("ParticleDecays:tau0Max = 10"); // set long-lived particle stable ... + fPythia8->ReadString("ParticleDecays:tau0Max = 10"); // ... if c*tau0 > 10 mm/c // .. Force decay channels ForceDecay(); From 4981017c3f7006d1c01fc10c7ec2bdde475e0b32 Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 1 Feb 2024 15:51:37 +0100 Subject: [PATCH 4/4] Update classdef --- PYTHIA8/AliPythia8/AliDecayerPythia8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PYTHIA8/AliPythia8/AliDecayerPythia8.h b/PYTHIA8/AliPythia8/AliDecayerPythia8.h index 6d37a3a6d1a..8f38b201291 100644 --- a/PYTHIA8/AliPythia8/AliDecayerPythia8.h +++ b/PYTHIA8/AliPythia8/AliDecayerPythia8.h @@ -47,7 +47,7 @@ class AliDecayerPythia8 : public TVirtualMCDecayer { Decay_t fDecay; // Forced decay mode 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