Skip to content

Commit

Permalink
Added system-dependent settings to core PYTHIA8 for p-Pb/Pb-p
Browse files Browse the repository at this point in the history
  • Loading branch information
preghenella committed Jun 7, 2017
1 parent bb30a16 commit b2959b8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions MC/GeneratorConfig.C
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,28 @@ GeneratorPythia8(Int_t tune, Int_t pdgtrig, Float_t etatrig)
pythia->SetEnergyCMS(energyConfig);
pythia->SetCrossingAngle(0, crossingConfig);
//
// system-dependent settings
if (systemConfig.EqualTo("p-Pb")) {
pythia->SetProjectile("P", 1, 1);
pythia->SetTarget ("n", 208, 82);
// (AliPythia8::Instance())->SetMSTP(52, 2);
// (AliPythia8::Instance())->SetMSTP(192, 1);
// (AliPythia8::Instance())->SetMSTP(193, 208);
// pythia->SetUseNuclearPDF(kTRUE); // does not exist for AliGenPythiaPlus
// pythia->SetUseLorentzBoost(kTRUE); // does not exist for AliGenPythiaPlus, boost is always performed
comment = comment.Append(" | p-Pb Boosted");
}
else if (systemConfig.EqualTo("Pb-p")) {
pythia->SetProjectile("n", 208, 82);
pythia->SetTarget ("P", 1, 1);
// (AliPythia8::Instance())->SetMSTP(52, 2);
// (AliPythia8::Instance())->SetMSTP(192, 208);
// (AliPythia8::Instance())->SetMSTP(193, 1);
// pythia->SetUseNuclearPDF(kTRUE); // does not exist for AliGenPythiaPlus
// pythia->SetUseLorentzBoost(kTRUE); // does not exist for AliGenPythiaPlus, boost is always performed
comment = comment.Append(" | Pb-p Boosted");
}
//
// Initialize
pythia->SetEventListRange(-1, 2);
(AliPythia8::Instance())->ReadString("Random:setSeed = on");
Expand Down

0 comments on commit b2959b8

Please sign in to comment.