-
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 PWGLF/Hijing_Rsn001.C configuration
- Loading branch information
1 parent
b4f9b62
commit 837a0a4
Showing
1 changed file
with
25 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,25 @@ | ||
AliGenerator * | ||
GeneratorCustom(TString opt = "") | ||
{ | ||
TString optList[3] = {"a", "b", "c"}; | ||
Int_t ninjlist[3] = {25, 7, 3}; | ||
Int_t ninj = 1; | ||
for (Int_t iopt = 0; iopt < 3; iopt++) | ||
if (opt.EqualTo(optList[iopt])) | ||
ninj = ninjlist[iopt]; | ||
|
||
// randomly injected particles | ||
Int_t pdglist1[] = {3124, 225}; // Lambda(1520), f2(1270), | ||
Int_t pdglist2[] = {-3124, 9010221}; // Lambda_bar(1520), f0(980) | ||
Int_t pdg1 = pdglist1[uidConfig % 2]; // select according to unique ID | ||
Int_t pdg2 = pdglist2[uidConfig % 2]; // select according to unique ID | ||
|
||
AliGenCocktail *ctl = GeneratorCocktail("Hijing_Rsn002"); | ||
AliGenerator *hij = GeneratorHijing(); | ||
AliGenerator *inj1 = GeneratorInjector(ninj, pdg1, 0., 10., -0.6, 0.6); | ||
AliGenerator *inj2 = GeneratorInjector(ninj, pdg2, 0., 10., -0.6, 0.6); | ||
ctl->AddGenerator(hij, "Hijing", 1.); | ||
ctl->AddGenerator(inj1, "Injector (Rsn001)", 1.); | ||
ctl->AddGenerator(inj2, "Injector (Rsn001)", 1.); | ||
return ctl; | ||
} |