-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from mvolkl/master
Add pythia8 enhanced MC for HFe
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
AliGenerator *GeneratorCustom(TString opt = "") | ||
{ | ||
|
||
//Switches for prompt/nonprompt | ||
Process_t process[2] = {kPyCharmppMNRwmi, kPyBeautyppMNRwmi}; //charm or beauty | ||
Int_t iprocess = uidConfig % 2; | ||
|
||
AliGenPythiaPlus* pyth = (AliGenPythiaPlus*)GeneratorPythia8(kPythia8Tune_Monash2013); | ||
pyth->SetProcess(process[iprocess]); | ||
|
||
TVirtualMCDecayer* decayer = new AliDecayerPythia(); | ||
decayer->SetForceDecay(kAll); | ||
decayer->Init(); | ||
gMC->SetExternalDecayer(decayer); | ||
|
||
// Pt transfer of the hard scattering (set for all cases) | ||
//pyth->SetPtHard(pthardminConfig, pthardmaxConfig); | ||
|
||
// From overview | ||
pyth->SetCutOnChild(1); | ||
pyth->SetPdgCodeParticleforAcceptanceCut(11); | ||
pyth->SetChildYRange(-1.2, 1.2); | ||
pyth->SetChildPtRange(0, 10000.); | ||
|
||
// lambda_b from PDG 2019: tau0 = 1.471 ps = 441 m/c = 0.441 mm/c | ||
(AliPythia8::Instance())->ReadString("5122:tau0 = 4.41000e-01"); | ||
|
||
return pyth; | ||
} |