Skip to content

Commit

Permalink
Merge pull request #400 from gconesab/master
Browse files Browse the repository at this point in the history
addapt PWGLF macros for embedding
  • Loading branch information
gconesab authored Jul 25, 2020
2 parents 8537b65 + ed49b5f commit bc6c515
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions MC/CustomGenerators/PWGLF/Epos_Nuclex001.C
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ AliGenerator *
GeneratorCustom()
{
AliGenCocktail *ctl = (AliGenCocktail*) GeneratorCocktail("Epos_Nuclex001");
AliGenerator *epos = GeneratorEPOSLHC();
ctl->AddGenerator(epos, "EPOSLHC", 1.);

if(!simulation.Contains("Embed"))
{
AliGenerator *epos = GeneratorEPOSLHC();
ctl->AddGenerator(epos, "EPOSLHC", 1.);
}

AliGenerator *nu1a = Generator_Nuclex(0xF, kFALSE, 10);
AliGenerator *nu1b = Generator_Nuclex(0xF, kTRUE, 10);
AliGenerator *nu2a = Generator_Nuclex(0x10, kFALSE, 20);
Expand Down
9 changes: 7 additions & 2 deletions MC/CustomGenerators/PWGLF/Hijing_Rsn005.C
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ AliGenerator *GeneratorCustom(TString opt = "")
AliDecayerPythia *dec = new AliDecayerPythia;

AliGenCocktail *ctl = (AliGenCocktail*) GeneratorCocktail("Hijing_Rsn005");
AliGenerator *hij = GeneratorHijing();

if(!simulation.Contains("Embed"))
{
AliGenerator *hij = GeneratorHijing();
ctl->AddGenerator(hij, "Hijing", 1.);
}

AliGenerator *inj1 = GeneratorParam(ninj, pdg1, 0., pTmax, -0.6, 0.6, dec);
AliGenerator *inj2 = GeneratorParam(ninj, pdg2, 0., pTmax, -0.6, 0.6, dec);

ctl->AddGenerator(hij, "Hijing", 1.);
ctl->AddGenerator(inj2, "Injector (Rsn005_1)", 1.);
ctl->AddGenerator(inj1, "Injector (Rsn005_2)", 1.);
return ctl;
Expand Down

0 comments on commit bc6c515

Please sign in to comment.