Skip to content

Commit 2fe7edd

Browse files
committed
PWGJE - trying jet sim with min bias gaps add run.sh
1 parent fbfd92c commit 2fe7edd

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+
#!/usr/bin/env bash
2+
3+
# Generate jet-jet events with ccbar HF injected, Pythia8 in a pre-defined pt hard bin and weighted.
4+
# Execute: ./run_jets_HF_ccbar.sh
5+
6+
# make sure O2DPG + O2 is loaded
7+
[ ! "${O2DPG_ROOT}" ] && echo "Error: This needs O2DPG loaded" && exit 1
8+
[ ! "${O2_ROOT}" ] && echo "Error: This needs O2 loaded" && exit 1
9+
10+
# ----------- LOAD UTILITY FUNCTIONS --------------------------
11+
. ${O2_ROOT}/share/scripts/jobutils.sh
12+
13+
14+
# ----------- START ACTUAL JOB -----------------------------
15+
16+
RNDSEED=${RNDSEED:-0} # [default = 0] time-based random seed
17+
18+
NSIGEVENTS=${NSIGEVENTS:-5}
19+
NTIMEFRAMES=${NTIMEFRAMES:-1}
20+
NWORKERS=${NWORKERS:-8}
21+
MODULES="--skipModules ZDC" #"PIPE ITS TPC EMCAL"
22+
CONFIG_ENERGY=${CONFIG_ENERGY:-13600.0}
23+
SIMENGINE=${SIMENGINE:-TGeant4}
24+
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED=""
25+
26+
#ccbar filter and bias2SelectionPow and PtHat settings are in the ini file given below
27+
# ${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -gen external \
28+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM ${CONFIG_ENERGY} -col pp -gen external -proc "jets" \
29+
-tf ${NTIMEFRAMES} -ns ${NSIGEVENTS} -e ${SIMENGINE} \
30+
-j ${NWORKERS} -mod "--skipModules ZDC" \
31+
-interactionRate 500000 -confKey "Diamond.width[2]=6." ${SEED} \
32+
-ini $O2DPG_ROOT/MC/config/PWGGAJE/ini/GeneratorJE_gapgen.ini
33+
34+
35+
# run workflow
36+
# allow increased timeframe parallelism with --cpu-limit 32
37+
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt aod --cpu-limit 32
38+
39+
40+
41+
42+
# # o2-sim-dpl-eventgen -b --nEvents 10 --generator external --configKeyValues "GeneratorExternal.fileName=${O2DPG_ROOT}/MC/config/PWGGAJE/external/generator/generator_pythia8_gapgenerated_jets.C;GeneratorExternal.funcName=getGeneratorPythia8GapGenJE()"
43+
# o2-sim-dpl-eventgen -b --nEvents 10 --generator external --configKeyValues "GeneratorExternal.fileName=/Users/landou/alice/O2DPG/MC/config/examples/external/generator/SimpleCocktail.C;GeneratorExternal.funcName=getSimpleGap()"
44+
# # o2-sim-dpl-eventgen -b --nEvents 10 --generator external --configKeyValues "GeneratorExternal.fileName=${O2DPG_ROOT}/MC/config/examples/external/generator/SimpleCocktail.C;GeneratorExternal.funcName=getSimpleGap()"

0 commit comments

Comments
 (0)