From 4a17d7ccbc6abcc0deb630b970e29a63b4198895 Mon Sep 17 00:00:00 2001 From: ercolessi Date: Tue, 29 Sep 2020 19:47:11 +0200 Subject: [PATCH] Pythia8 + inj strangeness for pp 13 TeV 2017,2018 --- .../PWGLF/Pythia8_StrInj_pp13_2017_2018.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 MC/CustomGenerators/PWGLF/Pythia8_StrInj_pp13_2017_2018.C diff --git a/MC/CustomGenerators/PWGLF/Pythia8_StrInj_pp13_2017_2018.C b/MC/CustomGenerators/PWGLF/Pythia8_StrInj_pp13_2017_2018.C new file mode 100644 index 00000000..5ca046fa --- /dev/null +++ b/MC/CustomGenerators/PWGLF/Pythia8_StrInj_pp13_2017_2018.C @@ -0,0 +1,17 @@ +AliGenerator *GeneratorCustom(){ + + Int_t sign = uidConfig % 2 == 0 ? 1 : -1; + + AliGenCocktail *ctl = (AliGenCocktail*) GeneratorCocktail("Pythia8_StrInj_pp13_2017_2018"); + + AliGenerator *py8 = GeneratorPythia8(kPythia8Tune_Monash2013); + AliGenerator *ixi = GeneratorInjector(1, sign * 3312, 0.4, 8.0, -0.7, 0.7); + AliGenerator *iom = GeneratorInjector(1, sign * 3334, 0.5, 6.5, -0.7, 0.7); + + ctl->AddGenerator(py8 , "Pythia8 (Monash2013)", 1.); + ctl->AddGenerator(ixi , "Injector (Xi)", 1.); + ctl->AddGenerator(iom, "Injector (Omega)", 1.); + + return ctl; + +}