Skip to content

Commit 6409f0c

Browse files
fgrosachiarazampolli
authored andcommitted
Rely on GeneratorPythia8 for HF particle decays
1 parent 48fbafc commit 6409f0c

File tree

5 files changed

+29
-34
lines changed

5 files changed

+29
-34
lines changed

MC/config/PWGHF/ini/GeneratorHFTrigger_bbbar.ini

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
### The setup uses an external event generator
2-
### This part sets the path of the file and the function call to retrieve it
3-
4-
[GeneratorExternal]
5-
fileName = ${O2DPG_ROOT}/MC/config/PWGHF/external/generator/GeneratorHF.C
6-
funcName = GeneratorHF_bbbar()
7-
81
### The external generator derives from GeneratorPythia8.
92
### This part configures the bits of the interface: configuration and user hooks
103

114
[GeneratorPythia8]
12-
config = ${O2DPG_ROOT}/MC/config/common/pythia8/generator/pythia8_hf.cfg
5+
config = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmtriggers_with_decays.cfg
136
hooksFileName = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/hooks/pythia8_userhooks_qqbar.C
147
hooksFuncName = pythia8_userhooks_bbbar(-1.5,1.5)
158

169
### The setup uses the base configuration of the decayer which is loaded from the file specified by config[0].
1710
### On top of the base configuration, two more sets of settings are loaded sequentially from config[1] and [2].
1811

19-
[DecayerPythia8]
20-
config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
21-
config[1] = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/decayer/force_hadronic_charmHadTrigger.cfg
12+
# [DecayerPythia8]
13+
# config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
14+
# config[1] = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/decayer/force_hadronic_charmHadTrigger.cfg
2215

2316
### The setup forces some particles to be decayed by the external decayer instead of Geant.
2417
### The PDG list of the particles is specified below.

MC/config/PWGHF/ini/GeneratorHFTrigger_ccbar.ini

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
### The setup uses an external event generator
2-
### This part sets the path of the file and the function call to retrieve it
3-
4-
[GeneratorExternal]
5-
fileName = ${O2DPG_ROOT}/MC/config/PWGHF/external/generator/GeneratorHF.C
6-
funcName = GeneratorHF_ccbar()
7-
81
### The external generator derives from GeneratorPythia8.
92
### This part configures the bits of the interface: configuration and user hooks
103

114
[GeneratorPythia8]
12-
config = ${O2DPG_ROOT}/MC/config/common/pythia8/generator/pythia8_hf.cfg
5+
config = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmtriggers_with_decays.cfg
136
hooksFileName = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/hooks/pythia8_userhooks_qqbar.C
147
hooksFuncName = pythia8_userhooks_ccbar(-1.5,1.5)
158

169
### The setup uses the base configuration of the decayer which is loaded from the file specified by config[0].
1710
### On top of the base configuration, two more sets of settings are loaded sequentially from config[1] and [2].
1811

19-
[DecayerPythia8]
20-
config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
21-
config[1] = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/decayer/force_hadronic_charmHadTrigger.cfg
12+
# [DecayerPythia8]
13+
# config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
14+
# config[1] = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/decayer/force_hadronic_charmHadTrigger.cfg
2215

2316
### The setup forces some particles to be decayed by the external decayer instead of Geant.
2417
### The PDG list of the particles is specified below.

MC/config/PWGHF/pythia8/decayer/force_hadronic_charmHadTrigger.cfg renamed to MC/config/PWGHF/pythia8/generator/pythia8_charmtriggers_with_decays.cfg

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
### author: Fabrizio Grosa (fabrizio.grosa@cern.ch)
22
### since: January 2022
33

4+
### beams
5+
Beams:idA 2212 # proton
6+
Beams:idB 2212 # proton
7+
Beams:eCM 13500. # GeV
8+
9+
### processes
10+
HardQCD:hardccbar on # scatterings g-g / q-qbar -> c-cbar
11+
HardQCD:hardbbbar on # scatterings g-g / q-qbar -> b-bbar
12+
13+
### decays
14+
ParticleDecays:limitTau0 on
15+
ParticleDecays:tau0Max 10. # 1 micron it's enough for all the open charm and beauty hadrons
16+
417
### Force golden chamr hadrons decay modes for trigger studies
518

619
### add D+ decays absent in PYTHIA8 decay table and set BRs from PDG for other
@@ -45,6 +58,11 @@
4558
4122:onMode = off
4659
4232:onMode = off
4760
4132:onMode = off
61+
443:onMode = off
62+
4332:onMode = off
63+
64+
### D0 -> K pi
65+
421:onIfMatch = 321 211
4866

4967
### D+/- -> K pi pi
5068
411:onIfMatch = 321 211 211
@@ -53,11 +71,6 @@
5371
### D+/- -> phi pi
5472
411:onIfMatch = 333 211
5573

56-
### D0 -> K pi
57-
421:onIfMatch = 321 211
58-
59-
### D_s -> K K*
60-
431:onIfMatch = 321 313
6174
### D_s -> Phi pi
6275
431:onIfMatch = 333 211
6376

@@ -69,8 +82,6 @@
6982
4122:onIfMatch = 3124 211
7083
### Lambda_c -> p K pi
7184
4122:onIfMatch = 2212 321 211
72-
### Lambda_c -> Lambda pi
73-
4122:onIfMatch = 3122 211
7485

7586
### Xic+ -> pK*0
7687
4232:onIfMatch = 2212 313
@@ -85,9 +96,7 @@
8596
4132:onIfMatch = 3312 211
8697

8798
### Omega_c -> Omega pi
88-
4332:onMode = off
8999
4332:onIfMatch = 3334 211
90100

91101
### Jpsi -> ee
92-
443:onMode = off
93-
4132:onIfMatch = 11 11
102+
443:onIfMatch = 11 11

MC/run/PWGHF/run_pp_HFtriggers_bbbar_userhook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NTIMEFRAMES=${NTIMEFRAMES:-1}
2323
# create workflow
2424

2525
#ccbar filter
26-
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 13500 -col pp -gen pythia8 -proc "inel" -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate 500000 -confKey "Diamond.width[2]=6." -e TGeant4 -mod "--skipModules ZDC" \
26+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 13500 -col pp -gen pythia8 -proc "inel" -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate 500000 -confKey "Diamond.width[2]=6.;GeneratorPythia8.config=${O2DPG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmtriggers_with_decays.cfg" -e TGeant4 -mod "--skipModules ZDC" \
2727
-ini $O2DPG_ROOT/MC/config/PWGHF/ini/GeneratorHFTrigger_bbbar.ini \
2828

2929
# run workflow

MC/run/PWGHF/run_pp_HFtriggers_ccbar_userhook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ NTIMEFRAMES=${NTIMEFRAMES:-1}
2323
# create workflow
2424

2525
#ccbar filter
26-
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 13500 -col pp -gen pythia8 -proc "inel" -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate 500000 -confKey "Diamond.width[2]=6." -e TGeant4 -mod "--skipModules ZDC" \
26+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 13500 -col pp -gen pythia8 -proc "inel" -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate 500000 -confKey "Diamond.width[2]=6.;GeneratorPythia8.config=${O2DPG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmtriggers_with_decays.cfg" -e TGeant4 -mod "--skipModules ZDC" \
2727
-ini $O2DPG_ROOT/MC/config/PWGHF/ini/GeneratorHFTrigger_ccbar.ini \
2828

2929
# run workflow

0 commit comments

Comments
 (0)