Skip to content

Commit

Permalink
Merge pull request #561 from EwaGlimos/master
Browse files Browse the repository at this point in the history
add eta' biased JJ MC generator
  • Loading branch information
gconesab authored Jul 11, 2023
2 parents f527e44 + 502e05b commit db3007d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MC/CustomGenerators/PWGGA/Pythia8JJ_EtaPrime.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
AliGenerator* GeneratorCustom(TString opt = ""){

// Pythia
AliGenerator *gen = GeneratorPythia8JetsParticleTrg(kPythia8Tune_Monash2013,kCalorimeterAcceptance_FullDetector,331,1.2);

// settings
((AliGenPythia*) gen)->SetForceDecay(kEtaPrime);

return gen;

}
52 changes: 52 additions & 0 deletions MC/GeneratorConfig.C
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ enum EGenerator_t {
kGeneratorPythia8JetsGammaTrg, kGeneratorPythia8JetsGammaTrg_Monash2013,
// Pythia8 gamma-jet
kGeneratorPythia8GammaJet, kGeneratorPythia8GammaJet_Monash2013,
// Pythia8 jets particle triggered
kGeneratorPythia8JetsParticleTrg, kGeneratorPythia8JetsParticleTrg_Monash2013,
// Phojet
kGeneratorPhojet, kGeneratorDpmjet,
// EPOS-LHC
Expand Down Expand Up @@ -78,6 +80,8 @@ const Char_t *GeneratorName[kNGenerators] = {
"Pythia8JetsGammaTrg", "Pythia8JetsGammaTrg_Monash2013",
// Pythia8 gamma-jet
"Pythia8GammaJet", "Pythia8GammaJet_Monash2013",
// Pythia8 jets particle triggered
"Pythia8JetsParticleTrg", "Pythia8JetsParticleTrg_Monash2013",
// Phojet / DPMjet
"Phojet", "Dpmjet",
// EPOS-LHC
Expand Down Expand Up @@ -209,6 +213,7 @@ AliGenerator *GeneratorPythia8(Int_t tune = 0, Int_t pdgtrig = 0, Float_t etatri
AliGenerator *GeneratorPythia8Jets(Int_t tune = 0, Int_t acceptance = kCalorimeterAcceptance_FullDetector);
AliGenerator *GeneratorPythia8JetsGammaTrg(Int_t tune = 0, Int_t acceptance = kCalorimeterAcceptance_FullDetector);
AliGenerator *GeneratorPythia8GammaJet(Int_t tune = 0, Int_t acceptance = kCalorimeterAcceptance_FullDetector);
AliGenerator *GeneratorPythia8JetsParticleTrg(Int_t tune = 0, Int_t acceptance = kCalorimeterAcceptance_FullDetector, Int_t pdgtrig = 0, Float_t etatrig = 1.2);
AliGenerator *GeneratorPhojet();
AliGenerator *GeneratorEPOSLHC(Bool_t pileup = kFALSE);
AliGenerator *GeneratorHijing();
Expand Down Expand Up @@ -296,6 +301,12 @@ void GeneratorConfig(Int_t tag)
case kGeneratorPythia8GammaJet_Monash2013:
gen = GeneratorPythia8GammaJet(kPythia8Tune_Monash2013);
break;

// Pythia8JetsParticleTrg (Monash 2013)
case kGeneratorPythia8JetsParticleTrg:
case kGeneratorPythia8JetsParticleTrg_Monash2013:
gen = GeneratorPythia8JetsParticleTrg(kPythia8Tune_Monash2013);
break;

// Phojet / DPMjet
case kGeneratorPhojet:
Expand Down Expand Up @@ -976,6 +987,47 @@ GeneratorPythia8GammaJet(Int_t tune, Int_t acceptance)
return pythia;
}

/*** PYTHIA 8 JETS particle triggered ***********************************************/

AliGenerator *
GeneratorPythia8JetsParticleTrg(Int_t tune, Int_t acceptance, Int_t pdgtrig, Float_t etatrig)
{
//
//
comment = comment.Append(Form(" | Pythia8 jets (%.1f, %.1f, %d, %.1f)", pthardminConfig, pthardmaxConfig, quenchingConfig, qhatConfig));
//
// Pythia
AliGenPythiaPlus *pythia = (AliGenPythiaPlus*) GeneratorPythia8(tune, pdgtrig, etatrig);
//
// jets settings
pythia->SetProcess(kPyJets);

// Careful using detector acceptance cuts and jet acceptance,
// let it open with kCalorimeterAcceptance_FullDetector
Float_t etaMax, phiMin, phiMax;
GetCalorimeterAcceptance(acceptance, etaMax, phiMin, phiMax);
pythia->SetJetEtaRange(-etaMax, etaMax); // Final state kinematic cuts
pythia->SetJetPhiRange(phiMin, phiMax);
pythia->SetJetEtRange(0., 1000.);
pythia->SetPtHard(pthardminConfig, pthardmaxConfig); // Pt transfer of the hard scattering
pythia->SetStrucFunc(kCTEQ5L);
// quenching
pythia->SetQuench(quenchingConfig);
switch (quenchingConfig) {
case 1:
{
Float_t k = 6.e5 * (qhatConfig / 1.7); //qhat=1.7, k=6e5, default value
AliPythia8::Instance()->InitQuenching(0., 0.1, k, 0, 0.95, 6);
}
break;
case 2:
//pythia->SetPyquenPar(1.,0.1,0,0,1); //TODO: FixMe - This doesn't exist in AliGenPythiaPlus
break;
}
//
return pythia;
}

/*** PHOJET ****************************************************/

AliGenerator *
Expand Down

0 comments on commit db3007d

Please sign in to comment.