File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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+
16+ # ----------- START ACTUAL JOB -----------------------------
17+
18+ NWORKERS=${NWORKERS:- 8}
19+ SIMENGINE=${SIMENGINE:- TGeant4}
20+ NSIGEVENTS=${NSIGEVENTS:- 1}
21+ NTIMEFRAMES=${NTIMEFRAMES:- 1}
22+ INTRATE=${INTRATE:- 50000}
23+ SYSTEM=${SYSTEM:- OO}
24+ ENERGY=${ENERGY:- 5360}
25+ CFGINIFILE=${CFGINIFILE:- " ${O2DPG_ROOT} /MC/config/PWGLF/ini/GeneratorLF_SyntheFlowOO.ini" }
26+ [[ ${SPLITID} != " " ]] && SEED=" -seed ${SPLITID} " || SEED=" "
27+
28+ echo " NWORKERS = $NWORKERS "
29+
30+ # create workflow
31+ O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:- " ${O2DPG_ROOT} /MC/bin/o2dpg_sim_workflow.py" }
32+ $O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \
33+ -j ${NWORKERS} \
34+ -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \
35+ -confKey " Diamond.width[2]=6." \
36+ ${SEED} \
37+ -e ${SIMENGINE} \
38+ -ini $CFGINIFILE
39+
40+ # run workflow
41+ O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:- " ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py" }
42+ $O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS
You can’t perform that action at this time.
0 commit comments