Skip to content

Commit 783321a

Browse files
committed
PWGEM: Use default Pythia settings for OO HFee generator
1 parent ddbdc54 commit 783321a

File tree

3 files changed

+69
-23
lines changed

3 files changed

+69
-23
lines changed

MC/config/PWGEM/external/generator/Generator_pythia8_GapTriggered_HFLepton_OO.C

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ public:
4646
pythiaObjectSignal.readFile(pathconfigSignal.Data());
4747
pythiaObjectSignal.readString("Random:setSeed on");
4848
pythiaObjectSignal.readString("Random:seed " + std::to_string(seed));
49-
pythiaObjectSignal.readString("Beams:idA = 1000080160");
50-
pythiaObjectSignal.readString("Beams:idB = 1000080160");
51-
pythiaObjectSignal.readString("Beams:eCM = 5360.0");
52-
pythiaObjectSignal.readString("Beams:frameType = 1");
53-
pythiaObjectSignal.readString("ParticleDecays:limitTau0 = on");
54-
pythiaObjectSignal.readString("ParticleDecays:tau0Max = 10.");
55-
pythiaObjectSignal.readString("HeavyIon:SigFitNGen = 0");
56-
pythiaObjectSignal.readString("HeavyIon:SigFitDefPar = 2.15,18.42,0.33");
5749
pythiaObjectSignal.init();
5850
cout << "Initalization of signal event is complete" << endl;
5951

@@ -197,20 +189,7 @@ private:
197189
// Charm-enriched forced decay
198190
FairGenerator* GeneratorPythia8GapTriggeredCharmLepton(int inputTriggerRatio, int inputExternalID, int pdgLepton, float yMinQ = -1.5, float yMaxQ = 1.5, float yMinL = -1, float yMaxL = 1)
199191
{
200-
auto myGen = new GeneratorPythia8GapTriggeredHFLeptonOO("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_pp_cr2_forceddecayscharm.cfg", 4, inputTriggerRatio, inputExternalID);
201-
auto seed = (gRandom->TRandom::GetSeed() % 900000000);
202-
myGen->readString("Random:setSeed on");
203-
myGen->readString("Random:seed " + std::to_string(seed));
204-
myGen->setQuarkRapidity(yMinQ, yMaxQ);
205-
myGen->addTriggerOnDaughter(2, pdgLepton);
206-
myGen->setDaughterRapidity(yMinL, yMaxL);
207-
return myGen;
208-
}
209-
210-
// Beauty-enriched forced decay
211-
FairGenerator* GeneratorPythia8GapTriggeredBeautyForcedDecays(int inputTriggerRatio, int inputExternalID, int pdgLepton, float yMinQ = -1.5, float yMaxQ = 1.5, float yMinL = -1, float yMaxL = 1)
212-
{
213-
auto myGen = new GeneratorPythia8GapTriggeredHFLeptonOO("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_bbbar_forceddecayscharmbeauty.cfg", 5, inputTriggerRatio, inputExternalID);
192+
auto myGen = new GeneratorPythia8GapTriggeredHFLeptonOO("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_OO_536_ccbar.cfg", 4, inputTriggerRatio, inputExternalID);
214193
auto seed = (gRandom->TRandom::GetSeed() % 900000000);
215194
myGen->readString("Random:setSeed on");
216195
myGen->readString("Random:seed " + std::to_string(seed));
@@ -223,7 +202,7 @@ FairGenerator* GeneratorPythia8GapTriggeredBeautyForcedDecays(int inputTriggerRa
223202
// Beauty-enriched no forced decay
224203
FairGenerator* GeneratorPythia8GapTriggeredBeautyNoForcedDecays(int inputTriggerRatio, int inputExternalID, int pdgLepton, float yMinQ = -1.5, float yMaxQ = 1.5, float yMinL = -1, float yMaxL = 1)
225204
{
226-
auto myGen = new GeneratorPythia8GapTriggeredHFLeptonOO("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_bbbar.cfg", 5, inputTriggerRatio, inputExternalID);
205+
auto myGen = new GeneratorPythia8GapTriggeredHFLeptonOO("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_OO_536_bbbar.cfg", 5, inputTriggerRatio, inputExternalID);
227206
auto seed = (gRandom->TRandom::GetSeed() % 900000000);
228207
myGen->readString("Random:setSeed on");
229208
myGen->readString("Random:seed " + std::to_string(seed));
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### beams
2+
Beams:idA = 1000080160
3+
Beams:idB = 1000080160
4+
Beams:eCM = 5360.0
5+
Beams:frameType = 1
6+
7+
### Save some CPU at init of jobs
8+
### To avoid refitting, add the following lines to your configuration file:
9+
HeavyIon:SigFitNGen = 0
10+
HeavyIon:SigFitDefPar = 2.15,18.42,0.33
11+
### processes
12+
HardQCD:hardbbbar on # scatterings g-g / q-qbar -> b-bbar
13+
14+
### decays
15+
ParticleDecays:limitTau0 on
16+
ParticleDecays:tau0Max 10.
17+
18+
19+
# Correct OmegaC decay length (wrong in PYTHIA8 decay table) (mm/c)
20+
4332:tau0 = 0.08000000000
21+
# Correct Lb decay length (wrong in PYTHIA8 decay table)
22+
5122:tau0 = 4.41000e-01
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
### beams
2+
Beams:idA = 1000080160
3+
Beams:idB = 1000080160
4+
Beams:eCM = 5360.0
5+
Beams:frameType = 1
6+
7+
### Save some CPU at init of jobs
8+
### To avoid refitting, add the following lines to your configuration file:
9+
HeavyIon:SigFitNGen = 0
10+
HeavyIon:SigFitDefPar = 2.15,18.42,0.33
11+
12+
### processes
13+
# HardQCD:hardccbar on # ccbar production
14+
SoftQCD:inelastic = on
15+
16+
### decays
17+
ParticleDecays:limitTau0 on
18+
ParticleDecays:tau0Max 10.
19+
20+
21+
### only semileptonic decays
22+
### D+
23+
411:oneChannel = 1 0.087 0 -311 -11 12
24+
411:addChannel = 1 0.040 0 -321 211 -11 12
25+
411:addChannel = 1 0.037 0 -313 -11 12
26+
### D0
27+
421:oneChannel = 1 0.035 0 -321 -11 12
28+
421:addChannel = 1 0.022 0 -323 -11 12
29+
421:addChannel = 1 0.016 0 -321 111 -11 12
30+
### Ds
31+
431:oneChannel = 1 0.025 0 333 -11 12
32+
431:addChannel = 1 0.027 0 221 -11 12
33+
### Lambdac
34+
4122:oneChannel = 1 0.036 0 3122 -11 12
35+
### chi_{c}^{+}
36+
4232:oneChannel = 1 0.07 0 3322 -11 12
37+
### chi_{c}^{0}
38+
4132:oneChannel = 1 0.014 0 3312 -11 12
39+
### Omega_{c}
40+
4332:oneChannel = 1 0.01224 0 3334 -11 12
41+
42+
# Correct OmegaC decay length (wrong in PYTHIA8 decay table) (mm/c)
43+
4332:tau0 = 0.08000000000
44+
# Correct Lb decay length (wrong in PYTHIA8 decay table)
45+
5122:tau0 = 4.41000e-01

0 commit comments

Comments
 (0)