Skip to content

Commit 058558b

Browse files
ChiaraDeMartin95Chiara De Martin
andauthored
scripts to run simulations PbPb strangeness enriched and PbPb with synthetic flow (#1751)
Co-authored-by: Chiara De Martin <chiara.de.martin@cern.ch>
1 parent 9780b46 commit 058558b

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
NBKGEVENTS=${NBKGEVENTS:-1}
24+
NTIMEFRAMES=${NTIMEFRAMES:-1}
25+
INTRATE=${INTRATE:-50000}
26+
SYSTEM=${SYSTEM:-PbPb}
27+
ENERGY=${ENERGY:-5360}
28+
CFGINIFILE=${CFGINIFILE:-"${O2DPG_ROOT}/MC/config/PWGLF/ini/GeneratorLF_Strangeness_PbPb5360_injection.ini"}
29+
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED=""
30+
31+
echo "NWORKERS = $NWORKERS"
32+
33+
# create workflow
34+
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"}
35+
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \
36+
-j ${NWORKERS} \
37+
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \
38+
-confKey "Diamond.width[2]=6." \
39+
${SEED} \
40+
-procBkg "inel" -colBkg $SYSTEM --embedding -nb ${NBKGEVENTS} -genBkg pythia8 \
41+
-e ${SIMENGINE} \
42+
-ini $CFGINIFILE
43+
44+
# run workflow
45+
O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:-"${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py"}
46+
$O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
NBKGEVENTS=${NBKGEVENTS:-1}
24+
NTIMEFRAMES=${NTIMEFRAMES:-1}
25+
INTRATE=${INTRATE:-50000}
26+
SYSTEM=${SYSTEM:-PbPb}
27+
ENERGY=${ENERGY:-5360}
28+
CFGINIFILE=${CFGINIFILE:-"${O2DPG_ROOT}/MC/config/PWGLF/ini/GeneratorLF_SyntheFlow.ini"}
29+
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED=""
30+
31+
echo "NWORKERS = $NWORKERS"
32+
33+
# create workflow
34+
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"}
35+
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \
36+
-j ${NWORKERS} \
37+
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \
38+
-confKey "Diamond.width[2]=6." \
39+
${SEED} \
40+
-procBkg "inel" -colBkg $SYSTEM --embedding -nb ${NBKGEVENTS} -genBkg pythia8 \
41+
-e ${SIMENGINE} \
42+
-ini $CFGINIFILE
43+
44+
# run workflow
45+
O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:-"${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py"}
46+
$O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS

0 commit comments

Comments
 (0)