Skip to content

Commit

Permalink
Merge pull request #277 from miweberSMI/master
Browse files Browse the repository at this point in the history
 Using AliGenEvtGen as decayer
  • Loading branch information
miweberSMI authored Jul 16, 2019
2 parents a7828f4 + 662e448 commit 71b0a81
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions MC/CustomGenerators/PWGDQ/Hijing_LMee001.C
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -115,11 +120,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
Expand Down Expand Up @@ -205,6 +214,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")){
Expand Down

0 comments on commit 71b0a81

Please sign in to comment.