Skip to content

Commit

Permalink
EPOS LHC + injected (anti)nuclei (up to He3)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaliva authored and gconesab committed Dec 17, 2021
1 parent 1fd6d79 commit baa8b2a
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions MC/CustomGenerators/PWGLF/EposLHC_Nuclei_Injected.C
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;
}















2 comments on commit baa8b2a

@alcaliva
Copy link
Contributor Author

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

@gconesab
Copy link
Collaborator

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

Please sign in to comment.