Skip to content

Commit 58e97be

Browse files
committed
Adapt HF example to recent O2 updates
1 parent d24bae5 commit 58e97be

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

MC/config/PWGHF/ini/GeneratorHF.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
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()
7+
18
### The external generator derives from GeneratorPythia8.
29
### This part configures the bits of the interface: configuration and user hooks
310

4-
[Pythia8]
11+
[GeneratorPythia8]
512
config = ${O2DPG_ROOT}/MC/config/common/pythia8/generator/pythia8.cfg
613
hooksFileName = ${O2DPG_ROOT}/MC/config/PWGHF/pythia8/hooks/pythia8_userhooks_ccbar.C
714
hooksFuncName = pythia8_userhooks_ccbar(1.5)

MC/run/PWGHF/run_embedding.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ ${O2DPG_ROOT}/MC/config/common/pythia8/utils/mkpy8cfg.py \
3232
# embed signal into background
3333

3434
o2-sim -j ${NWORKERS} -n ${SIGEVENTS} -g extgen -m ${MODULES} -o sgn \
35-
--extGenFile ${O2DPG_ROOT}/MC/config/PWGHF/external/generator/GeneratorHF.C \
36-
--extGenFunc "GeneratorHF()" \
3735
--configFile ${O2DPG_ROOT}/MC/config/PWGHF/ini/GeneratorHF.ini \
38-
--configKeyValues "Pythia8.config=pythia8.cfg" \
36+
--configKeyValues "GeneratorPythia8.config=pythia8.cfg" \
3937
--embedIntoFile bkg_Kine.root \
4038
> logsgn 2>&1

0 commit comments

Comments
 (0)