-
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.
EPOS LHC + injected (anti)nuclei (up to He3)
- Loading branch information
Showing
1 changed file
with
54 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,54 @@ | ||
AliGenerator *GeneratorCustom() { | ||
|
||
AliGenCocktail *ctl = (AliGenCocktail*) GeneratorCocktail("EposLHC_Nuclei_Injected"); | ||
|
||
AliGenerator *epos = GeneratorEPOSLHC(); | ||
ctl->AddGenerator(epos,"EPOSLHC", 1.); | ||
|
||
const Int_t pdgcodes[4] = { | ||
2212, | ||
1000010020, | ||
1000020030, | ||
1000010030 | ||
}; | ||
|
||
const Char_t *names[4] = { | ||
"Proton", | ||
"Deuteron", | ||
"Helium-3", | ||
"Triton" | ||
}; | ||
|
||
int npart = 2; | ||
|
||
for (Int_t ipart = 0; ipart < 4; ++ipart) { | ||
for (Int_t negative = 0; negative < 2; negative++) { | ||
|
||
AliGenBox *box = new AliGenBox(npart); | ||
Int_t pdg = pdgcodes[ipart]; | ||
if (negative) pdg = -pdg; | ||
box->SetPart(pdg); | ||
box->SetPtRange(1.0,10.0); | ||
box->SetPhiRange(0.0,360.0); | ||
box->SetYRange(-0.5,0.5); | ||
ctl->AddGenerator(box, Form("%s%i",names[ipart],negative), 1); | ||
} | ||
} | ||
|
||
return ctl; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
baa8b2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear @gconesab,
do you perhaps know when the next AliDPG release will be available?
I need to open a JIRA ticket for a production request using this generator.
Thanks, Alberto
baa8b2a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear @alcaliva
AliDPG tags can be produced "almost" on demand (not the same as aliroot tags that can take time), please open the jira request, do not wait for dpg tags to exist to create the tickets.
If the production was already approved at PB, the tag can be created after consultation with DPG coordination.
Cheers ... Gustavo