Skip to content

Commit

Permalink
add electron trigger pT case, by Shingo
Browse files Browse the repository at this point in the history
  • Loading branch information
gconesab committed Jul 20, 2021
1 parent e24ca0f commit fc9b60b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions MC/CustomGenerators/PWGHF/Hijing_HF002.C
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ GeneratorCustom(TString opt = "")
Int_t process[2] = {kPythia6HeavyProcess_Charm, kPythia6HeavyProcess_Beauty};
Int_t decay[3] = {kPythia6HeavyDecay_Hadrons, kPythia6HeavyDecay_HadronsWithV0, kPythia6HeavyDecay_Electron};

const Char_t *label[2][3] = {
"chadr PYTHIA", "chadr PYTHIA", "cele PYTHIA",
"bchadr PYTHIA", "bchadr PYTHIA", "bele PYTHIA"
const Char_t *label[2][4] = {
"chadr PYTHIA", "chadr PYTHIA", "cele PYTHIA", "cele PYTHIA eleTrig",
"bchadr PYTHIA", "bchadr PYTHIA", "bele PYTHIA", "bele PYTHIA eleTrig"
};
Int_t iprocess = uidConfig % 2;
TString optList[3] = {"had", "hv0", "ele"};
TString optList[4] = {"had", "hv0", "ele", "eleTrig"};
Int_t idecay = 0;
for (Int_t iopt = 0; iopt < 3; iopt++){
for (Int_t iopt = 0; iopt < 4; iopt++){
if (opt.EqualTo(optList[iopt]))
idecay = iopt;
}
Expand All @@ -27,6 +27,12 @@ GeneratorCustom(TString opt = "")
//
ctl->AddGenerator(phf, label[iprocess][idecay], 1.);
printf(">>>>> added HF generator %s \n", label[iprocess][idecay]);

if(idecay == 3){ //apply cut on pte (steered by pttrigminConfig)
( (AliGenPythia *)phf)->SetChildPtRange(pttrigminConfig, 10000.);
printf(">>>>> added HF generator %s with pT cut = %.2f\n", label[iprocess][idecay], pttrigminConfig);
}

// add pi0 and eta enhancement
if (decay[idecay] == kPythia6HeavyDecay_Electron) {
AliGenPHOSlib *plib = new AliGenPHOSlib();
Expand Down

0 comments on commit fc9b60b

Please sign in to comment.