11#! /usr/bin/env bash
22
3- # Generate jet-jet events, PYTHIA8 in a given pt hard bin.
3+ # Generate jet-jet events, PYTHIA8 in a given pt hard bin and weighted .
44# Select the event depending min Pt and acceptance of decay photons.
55# Execute: ./run_decaygammajets.sh
66# Set at least before running PTHATBIN with 1 to 6
@@ -19,8 +19,14 @@ RNDSEED=${RNDSEED:-0} # [default = 0] time-based random seed
1919NSIGEVENTS=${NSIGEVENTS:- 20}
2020NTIMEFRAMES=${NTIMEFRAMES:- 5}
2121NWORKERS=${NWORKERS:- 8}
22+ MODULES=" --skipModules ZDC" # "PIPE ITS TPC EMCAL"
2223CONFIG_ENERGY=${CONFIG_ENERGY:- 13000.0}
2324SIMENGINE=${SIMENGINE:- TGeant4}
25+ WEIGHTPOW=${WEIGHTPOW:- 6.0}
26+
27+ # Default for weighted productions
28+ PTHATMIN=${PTHATMIN:- 5.0}
29+ PTHATMAX=${PTHATMAX:- 300.0}
2430
2531# Recover environmental vars for detector acceptance binning
2632# accessed inside prompt_gamma.C
@@ -37,29 +43,27 @@ echo 'Decay photon minimum pT option ' $PTTRIGMIN "GeV/c"
3743# PTHATBIN=${PTHATBIN:-1}
3844
3945if [ -z " $PTHATBIN " ]; then
40- echo " Pt-hat bin (env. var. PTHATBIN) not set, abort."
41- exit 1
42- fi
43-
44- # Define the pt hat bin arrays and set bin depending threshold
45- if [ $PTTRIGMIN = " 3.5" ]; then
46- pthatbin_loweredges=(5 7 9 12 16 21)
47- pthatbin_higheredges=(7 9 12 16 21 -1)
48-
49- PTHATMIN=${pthatbin_loweredges[$PTHATBIN]}
50- PTHATMAX=${pthatbin_higheredges[$PTHATBIN]}
46+ echo " Open Pt-hat range set"
47+ else
48+ # Define the pt hat bin arrays and set bin depending threshold
49+ if [ $PTTRIGMIN = " 3.5" ]; then
50+ pthatbin_loweredges=(5 7 9 12 16 21)
51+ pthatbin_higheredges=(7 9 12 16 21 -1)
52+
53+ PTHATMIN=${pthatbin_loweredges[$PTHATBIN]}
54+ PTHATMAX=${pthatbin_higheredges[$PTHATBIN]}
55+ fi
56+
57+ if [ $PTTRIGMIN = " 7" ]; then
58+ pthatbin_loweredges=(8 10 14 19 26 35 48 66)
59+ pthatbin_higheredges=(10 14 19 26 35 48 66 -1)
60+
61+ PTHATMIN=${pthatbin_loweredges[$PTHATBIN]}
62+ PTHATMAX=${pthatbin_higheredges[$PTHATBIN]}
63+ fi
64+ echo " Set Pt hard bin " $PTHATBIN " : [" $PTHATMIN " , " $PTHATMAX " ]"
5165fi
5266
53- if [ $PTTRIGMIN = " 7" ]; then
54- pthatbin_loweredges=(8 10 14 19 26 35 48 66)
55- pthatbin_higheredges=(10 14 19 26 35 48 66 -1)
56-
57- PTHATMIN=${pthatbin_loweredges[$PTHATBIN]}
58- PTHATMAX=${pthatbin_higheredges[$PTHATBIN]}
59- fi
60-
61- echo " Set Pt hard bin " $PTHATBIN " : [" $PTHATMIN " , " $PTHATMAX " ]"
62-
6367# Recover environmental vars for detector acceptance binning
6468# accessed inside prompt_gamma.C
6569export PARTICLE_ACCEPTANCE=${PARTICLE_ACCEPTANCE:- 1}
@@ -76,6 +80,7 @@ ${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM ${CONFIG_ENERGY} -col pp -gen py
7680 -ptHatMin ${PTHATMIN} -ptHatMax ${PTHATMAX} \
7781 -tf ${NTIMEFRAMES} -ns ${NSIGEVENTS} -e ${SIMENGINE} \
7882 -j ${NWORKERS} -mod " --skipModules ZDC" \
83+ -weightPow ${WEIGHTPOW} \
7984 -trigger " external" -ini " \$ O2DPG_ROOT/MC/config/PWGGAJE/ini/trigger_decay_gamma.ini"
8085
8186# run workflow
0 commit comments