Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AliDecayerPythia8.cxx #1511

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions PYTHIA8/AliPythia8/AliDecayerPythia8.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ AliDecayerPythia8::AliDecayerPythia8():
fPythia8(AliTPythia8::Instance()),
fDebug(0),
fDecay(kAll),
fEnableLongLivedDecay(kFALSE),
fHeavyFlavour(kTRUE)
{
// Constructor
Expand Down Expand Up @@ -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();
}

Expand Down
4 changes: 1 addition & 3 deletions PYTHIA8/AliPythia8/AliDecayerPythia8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
Expand All @@ -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

Expand Down