Skip to content

Commit cf926bc

Browse files
Add coalescence-based deuteron production generator (#2535)
* "Update Pythia8 config for 136 TeV" * Fix file path for GeneratorLF_Coalescence_pp1360TeV.ini * Update script to use new coalescence generator * Specified test script
1 parent f5b3059 commit cf926bc

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#---> GeneratorLF_Coalescence_pp536TeV
2+
[GeneratorExternal]
3+
fileName = ${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator_pythia8_coalescence.C
4+
funcName = generateCoalescence({1000010020, 1000010030, 1000020030}, 1, 0.239)
5+
6+
[GeneratorPythia8]
7+
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_136tev.cfg
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
#
4+
# A example workflow MC->RECO->AOD for a simple pp min bias
5+
# production, with the LF coalescence generator (GeneratorLF_Coalescence_pp1360TeV.ini)
6+
7+
# make sure O2DPG + O2 is loaded
8+
[ ! "${O2DPG_ROOT}" ] && echo "Error: This needs O2DPG loaded" && exit 1
9+
[ ! "${O2_ROOT}" ] && echo "Error: This needs O2 loaded" && exit 1
10+
11+
12+
# ----------- START ACTUAL JOB -----------------------------
13+
14+
NWORKERS=${NWORKERS:-8}
15+
MODULES="--skipModules ZDC"
16+
SIMENGINE=${SIMENGINE:-TGeant4}
17+
NSIGEVENTS=${NSIGEVENTS:-1}
18+
NTIMEFRAMES=${NTIMEFRAMES:-1}
19+
INTRATE=${INTRATE:-500000}
20+
SYSTEM=${SYSTEM:-pp}
21+
ENERGY=${ENERGY:-13600}
22+
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED=""
23+
24+
# create workflow
25+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM ${ENERGY} -col ${SYSTEM} -gen external -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} -confKey "Diamond.width[0]=0.005;Diamond.width[1]=0.005;Diamond.width[2]=6." -e ${SIMENGINE} ${SEED} \
26+
-ini $O2DPG_ROOT/MC/config/PWGLF/ini/GeneratorLF_Coalescence_pp1360TeV.ini
27+
28+
# run workflow
29+
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt aod --cpu-limit 32

0 commit comments

Comments
 (0)