File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # make sure O2DPG + O2 is loaded
4+ [ ! " ${O2DPG_ROOT} " ] && echo " Error: This needs O2DPG loaded" && exit 1
5+ [ ! " ${O2_ROOT} " ] && echo " Error: This needs O2 loaded" && exit 1
6+
7+ # ----------- CONFIGURE --------------------------
8+ export IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE=1
9+ # export ALICEO2_CCDB_LOCALCACHE=.ccdb
10+
11+ # ----------- LOAD UTILITY FUNCTIONS --------------------------
12+ . ${O2_ROOT} /share/scripts/jobutils.sh
13+
14+ # ----------- START ACTUAL JOB -----------------------------
15+
16+ NWORKERS=${NWORKERS:- 8}
17+ SIMENGINE=${SIMENGINE:- TGeant4}
18+ NSIGEVENTS=${NSIGEVENTS:- 1}
19+ NTIMEFRAMES=${NTIMEFRAMES:- 1}
20+ INTRATE=${INTRATE:- 50000}
21+ SYSTEM=${SYSTEM:- PbPb}
22+ ENERGY=${ENERGY:- 5360}
23+ CFGINIFILE=${CFGINIFILE:- " ${O2DPG_ROOT} /MC/config/PWGLF/ini/GeneratorLFHyperNucleiPbPbGapWithFlow.ini" }
24+
25+ [[ ${SPLITID} != " " ]] && SEED=" -seed ${SPLITID} " || SEED=" -seed 0"
26+
27+ echo " NWORKERS = $NWORKERS "
28+
29+ # create workflow
30+ O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:- " ${O2DPG_ROOT} /MC/bin/o2dpg_sim_workflow.py" }
31+ $O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} -confKey " Diamond.width[0]=0.1;Diamond.width[1]=0.1;Diamond.width[2]=6." -e ${SIMENGINE} ${SEED} -ini $CFGINIFILE
32+
33+ # run workflow
34+ O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:- " ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py" }
35+ $O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS
You can’t perform that action at this time.
0 commit comments