From 9fa3a2d3f08eaf0dbb780cdf78960c8bd8a8891a Mon Sep 17 00:00:00 2001 From: miweber Date: Wed, 10 Jul 2019 16:23:38 +0200 Subject: [PATCH 1/2] Using AliGenEvtGen as decayer --- MC/CustomGenerators/PWGDQ/Hijing_LMee001.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C b/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C index 12f43826..719ec724 100644 --- a/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C +++ b/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C @@ -115,11 +115,15 @@ GeneratorCustom(TString opt = "") jpsi->SetYRange(minRap, maxRap); jpsi->SetPhiRange(phiMin, phiMax); jpsi->SetWeighting(weightMode); // flat pt - jpsi->SetForceDecay(kDiElectron); + jpsi->SetForceDecay(kNoDecay); // if(decayerInt) // not working in current implementation ((TDatabasePDG::Instance()->GetParticle(443))->Width() = 0) // jpsi->SetDecayer(decayerInt); jpsi->Init(); + AliGenEvtGen *gene = new AliGenEvtGen(); + gene->SetForceDecay(kBJpsiDiElectron); + gene->SetParticleSwitchedOff(AliGenEvtGen::kCharmPart); + //////////////////////////////////////////// // Pythia cc->ee @@ -205,6 +209,9 @@ GeneratorCustom(TString opt = "") ctl->AddGenerator(omega,"omega", 1.); ctl->AddGenerator(phi,"phi", 1.); ctl->AddGenerator(jpsi,"jpsi", 1.); + ctl->AddGenerator(gene,"EvtGen", 1.); + + // HF part (only if requested) if(!opt.Contains("LF")){ From 662e448f1561578d26cfa119e047dd938b7a5d9c Mon Sep 17 00:00:00 2001 From: miweber Date: Thu, 11 Jul 2019 14:48:54 +0200 Subject: [PATCH 2/2] Adding EvtGen library loading --- MC/CustomGenerators/PWGDQ/Hijing_LMee001.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C b/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C index 719ec724..e9c49b9f 100644 --- a/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C +++ b/MC/CustomGenerators/PWGDQ/Hijing_LMee001.C @@ -1,7 +1,12 @@ AliGenerator * GeneratorCustom(TString opt = "") { - + // load libraries to use Evtgen + gSystem->Load("libPhotos"); + gSystem->Load("libEvtGen"); + gSystem->Load("libEvtGenExternal"); + gSystem->Load("libTEvtGen"); + AliGenCocktail *ctl = GeneratorCocktail("Hijing_LMee001"); // Background events: HIJING (only if non-embedded)