Skip to content

Commit 5fd61ab

Browse files
committed
PWGLF: add synthetic flow with xi tester
1 parent e297eae commit 5fd61ab

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
#
4+
# A example workflow MC->RECO->AOD for a simple pp min bias
5+
# production, targetting test beam conditions.
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+
# ----------- CONFIGURE --------------------------
12+
export IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE=1
13+
#export ALICEO2_CCDB_LOCALCACHE=.ccdb
14+
15+
# ----------- LOAD UTILITY FUNCTIONS --------------------------
16+
. ${O2_ROOT}/share/scripts/jobutils.sh
17+
18+
# ----------- START ACTUAL JOB -----------------------------
19+
20+
NWORKERS=${NWORKERS:-8}
21+
SIMENGINE=${SIMENGINE:-TGeant4}
22+
NSIGEVENTS=${NSIGEVENTS:-1}
23+
NTIMEFRAMES=${NTIMEFRAMES:-1}
24+
INTRATE=${INTRATE:-50000}
25+
SYSTEM=${SYSTEM:-PbPb}
26+
ENERGY=${ENERGY:-5360}
27+
CFGINIFILE=${CFGINIFILE:-"${O2DPG_ROOT}/MC/config/PWGLF/ini/GeneratorLF_SyntheFlowXi.ini"}
28+
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED=""
29+
30+
echo "NWORKERS = $NWORKERS"
31+
32+
# create workflow
33+
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"}
34+
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \
35+
-j ${NWORKERS} \
36+
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \
37+
-confKey "Diamond.width[2]=6." \
38+
${SEED} \
39+
-e ${SIMENGINE} \
40+
-ini $CFGINIFILE
41+
42+
# run workflow
43+
O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:-"${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py"}
44+
$O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS

0 commit comments

Comments
 (0)