Skip to content

Commit c1ec9bb

Browse files
author
Ionut Cristian Arsene
committed
Renaming inclusive jpsi generator and updating the bbbar -> B plus generator
1 parent aa5fbf3 commit c1ec9bb

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

MC/config/PWGDQ/external/generator/generator_pythia8Onia_PromptSignals_gaptriggered.C renamed to MC/config/PWGDQ/external/generator/generator_pythia8_HadronTriggered_withGap.C

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ namespace o2
1515
namespace eventgen
1616
{
1717

18-
class GeneratorPythia8OniaPromptSignalsGapTriggered : public o2::eventgen::GeneratorPythia8 {
18+
class GeneratorPythia8HadronTriggeredWithGap : public o2::eventgen::GeneratorPythia8 {
1919
public:
2020

2121
/// constructor
22-
GeneratorPythia8OniaPromptSignalsGapTriggered(int inputTriggerRatio = 5) {
22+
GeneratorPythia8HadronTriggeredWithGap(int inputTriggerRatio = 5) {
2323

2424
mGeneratedEvents = 0;
2525
mInverseTriggerRatio = inputTriggerRatio;
2626
// define minimum bias event generator
2727
auto seed = (gRandom->TRandom::GetSeed() % 900000000);
28+
// main physics option for the min bias pythia events: SoftQCD:Inelastic
2829
TString pathconfigMB = gSystem->ExpandPathName("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/pythia8/generator/pythia8_inel_triggerGap.cfg");
2930
pythiaMBgen.readFile(pathconfigMB.Data());
3031
pythiaMBgen.readString("Random:setSeed on");
@@ -36,7 +37,7 @@ public:
3637
}
3738

3839
/// Destructor
39-
~GeneratorPythia8OniaPromptSignalsGapTriggered() = default;
40+
~GeneratorPythia8HadronTriggeredWithGap() = default;
4041

4142
void addHadronPDGs(int pdg) { mHadronsPDGs.push_back(pdg); };
4243

@@ -89,7 +90,7 @@ bool Init() override {
8990
pythiaMBgen.readFile(mConfigMBdecays.Data());
9091
}
9192
addSubGenerator(0, "Minimum bias");
92-
addSubGenerator(1, "Onia injected");
93+
addSubGenerator(1, "Hadron triggered");
9394
GeneratorPythia8::Init();
9495
pythiaMBgen.init();
9596
return true;
@@ -143,9 +144,9 @@ private:
143144

144145
// Predefined generators:
145146
FairGenerator*
146-
GeneratorPromptJpsi_EvtGenMidY(int triggerGap, double rapidityMin = -1.5, double rapidityMax = 1.5, bool verbose = false)
147+
GeneratorInclusiveJpsi_EvtGenMidY(int triggerGap, double rapidityMin = -1.5, double rapidityMax = 1.5, bool verbose = false)
147148
{
148-
auto gen = new o2::eventgen::GeneratorEvtGen<o2::eventgen::GeneratorPythia8OniaPromptSignalsGapTriggered>();
149+
auto gen = new o2::eventgen::GeneratorEvtGen<o2::eventgen::GeneratorPythia8HadronTriggeredWithGap>();
149150
gen->setTriggerGap(triggerGap);
150151
gen->setRapidityRange(rapidityMin, rapidityMax);
151152
gen->addHadronPDGs(443);

MC/config/PWGDQ/external/generator/generator_pythia8_NonPromptSignals_gaptriggered_dq.C

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,18 @@ FairGenerator*
233233
}
234234

235235
FairGenerator*
236-
GeneratorBplusToJpsiKaon_EvtGen(double rapidityMin = -1.5, double rapidityMax = 1.5, bool verbose = false, TString pdgs = "521")
236+
GeneratorBplusToJpsiKaon_EvtGen(double rapidityMin = -1.5, double rapidityMax = 1.5, bool verbose = false, TString pdgs = "511;521;531;541;5112;5122;5232;5132;5332")
237237
{
238238
auto gen = new o2::eventgen::GeneratorEvtGen<o2::eventgen::GeneratorPythia8NonPromptInjectedGapTriggeredDQ>();
239239
gen->setRapidity(rapidityMin, rapidityMax);
240240
gen->setPDG(5);
241-
gen->addHadronPDGs(521);
241+
//gen->addHadronPDGs(521);
242242
gen->setRapidityHadron(rapidityMin,rapidityMax);
243243
gen->setHadronMultiplicity(2);
244-
TString pathO2table = gSystem->ExpandPathName("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/pythia8/decayer/switchOffBplus.cfg");
244+
TString pathO2table = gSystem->ExpandPathName("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/pythia8/decayer/switchOffBhadrons.cfg");
245245
gen->readFile(pathO2table.Data());
246246
gen->setConfigMBdecays(pathO2table);
247-
gen->setVerbose(verbose);
247+
gen->setVerbose(true);
248248

249249
std::string spdg;
250250
TObjArray* obj = pdgs.Tokenize(";");
@@ -258,7 +258,8 @@ FairGenerator*
258258

259259
TString pathO2 = gSystem->ExpandPathName("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/EvtGen/DecayTablesEvtgen");
260260
//gen->SetDecayTable(Form("%s/BPLUSTOKAONJPSITOELE.DEC", pathO2.Data()));
261-
gen->SetDecayTable(Form("%s/BPLUSTOKAONJPSITOELEALLMODES.DEC", pathO2.Data())); // decay table including decay modes for correlated background
261+
//gen->SetDecayTable(Form("%s/BPLUSTOKAONJPSITOELEALLMODES.DEC", pathO2.Data())); // decay table including decay modes for correlated background
262+
gen->SetDecayTable(Form("%s/BTOJPSITOELE.DEC", pathO2.Data())); // decay table including decay modes for correlated background
262263
// print debug
263264
// gen->PrintDebug();
264265
// set random seed

MC/config/PWGDQ/ini/GeneratorHF_bbbarToBplus_midy_triggerGap.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[GeneratorExternal]
55
fileName = ${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/external/generator/generator_pythia8_NonPromptSignals_gaptriggered_dq.C
6-
funcName = GeneratorBplusToJpsiKaon_EvtGen()
6+
funcName = GeneratorBplusToJpsiKaon_EvtGen(-1.5,1.5,true)
77

88
### The external generator derives from GeneratorPythia8.
99
### This part configures the bits of the interface: configuration and user hooks

MC/config/PWGDQ/ini/Generator_InjectedPromptJpsiMidy_PythiaOnia_TriggerGap.ini renamed to MC/config/PWGDQ/ini/Generator_InjectedInclusiveJpsiMidy_Pythia8_TriggerGap.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### The external generator derives from GeneratorPythia8.
22
[GeneratorExternal]
3-
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/external/generator/generator_pythia8Onia_PromptSignals_gaptriggered.C
4-
funcName=GeneratorPromptJpsi_EvtGenMidY(5,-1.5,1.5)
3+
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/external/generator/generator_pythia8_HadronTriggered_withGap.C
4+
funcName=GeneratorInclusiveJpsi_EvtGenMidY(5,-1.5,1.5)
55

66
[GeneratorPythia8]
7-
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/pythia8/generator/pythia8_onia_triggerGap.cfg
7+
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGDQ/pythia8/generator/pythia8_inel_triggerGap.cfg

MC/config/PWGDQ/pythia8/generator/pythia8_onia_triggerGap.cfg renamed to MC/config/PWGDQ/pythia8/generator/pythia8_charmoniumAll_triggerGap.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ Beams:idB 2212 # proton
44
Beams:eCM 13600. # GeV
55

66
### processes
7-
SoftQCD:inelastic on # all inelastic processes
8-
CharmoniumShower:all = on
7+
Charmonium:all = on
98

109
### decays
1110
ParticleDecays:limitTau0 on

0 commit comments

Comments
 (0)