-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Str002 MC generator: strangeness injection with reduced range (#21
- Loading branch information
1 parent
a932b9f
commit 5ae442f
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |