Skip to content

Commit

Permalink
Added Str002 MC generator: strangeness injection with reduced range (#21
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ddobrigk authored and preghenella committed Apr 21, 2017
1 parent a932b9f commit 5ae442f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions MC/CustomGenerators/PWGLF/Hijing_Str002.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
AliGenerator *
GeneratorCustom(TString opt)
{
TString optList[3] = {"a", "b", "c"};
Int_t ninjk0[3] = {10, 5, 1};
Int_t ninjla[3] = {10, 5, 1};
Int_t ninjxi[3] = {20, 8, 1};
Int_t ninjom[3] = {17, 4, 1};
Int_t iinj = 0;
for (Int_t iopt = 0; iopt < 3; iopt++)
if (opt.EqualTo(optList[iopt]))
iinj = iopt;
Int_t sign = uidConfig % 2 == 0 ? 1 : -1;
AliGenCocktail *ctl = GeneratorCocktail("Hijing_Str002");
AliGenerator *hij = GeneratorHijing();
AliGenerator *ik0 = GeneratorInjector(ninjk0[iinj], 310, 0., 5., -0.7, 0.7);
AliGenerator *ila = GeneratorInjector(ninjla[iinj], sign * 3122, 0., 5., -0.7, 0.7);
AliGenerator *ixi = GeneratorInjector(ninjxi[iinj], sign * 3312, 0., 5., -0.7, 0.7);
AliGenerator *iom = GeneratorInjector(ninjom[iinj], sign * 3334, 0., 5., -0.7, 0.7);
ctl->AddGenerator(hij, "Hijing", 1.);
ctl->AddGenerator(ik0, "Injector (K0s)", 1.);
ctl->AddGenerator(ila, "Injector (Lambda)", 1.);
ctl->AddGenerator(ixi, "Injector (Xi)", 1.);
ctl->AddGenerator(iom, "Injector (Omega)", 1.);
return ctl;
}

0 comments on commit 5ae442f

Please sign in to comment.