Skip to content

Commit a06389f

Browse files
ffiondagconesab
authored andcommitted
running scripts (PWGDQ)
1 parent 50b6239 commit a06389f

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env 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+
8+
# ----------- LOAD UTILITY FUNCTIONS --------------------------
9+
. ${O2_ROOT}/share/scripts/jobutils.sh
10+
11+
RNDSEED=${RNDSEED:-0}
12+
NSIGEVENTS=${NSIGEVENTS:-1}
13+
NBKGEVENTS=${NBKGEVENTS:-1}
14+
NWORKERS=${NWORKERS:-8}
15+
NTIMEFRAMES=${NTIMEFRAMES:-1}
16+
17+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 900 -gen external -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -e TGeant4 -mod "--skipModules ZDC" \
18+
-confKey "GeneratorExternal.fileName=GeneratorCocktailPromptCharmoniaToMuonEvtGen_pp13TeV.C;GeneratorExternal.funcName=GeneratorCocktailPromptCharmoniaToMuonEvtGen_pp13TeV()" \
19+
-genBkg pythia8 -procBkg inel -colBkg pp --embedding -nb ${NBKGEVENTS}
20+
21+
22+
# run workflow
23+
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env 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+
8+
# ----------- LOAD UTILITY FUNCTIONS --------------------------
9+
. ${O2_ROOT}/share/scripts/jobutils.sh
10+
11+
RNDSEED=${RNDSEED:-0}
12+
NSIGEVENTS=${NSIGEVENTS:-1}
13+
NBKGEVENTS=${NBKGEVENTS:-1}
14+
NWORKERS=${NWORKERS:-8}
15+
NTIMEFRAMES=${NTIMEFRAMES:-1}
16+
17+
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 900 -gen external -j ${NWORKERS} -ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -e TGeant4 -mod "--skipModules ZDC" \
18+
-confKey "GeneratorExternal.fileName=GeneratorParamPromptJpsiToElectronEvtGen_pp13TeV.C;GeneratorExternal.funcName=GeneratorParamPromptJpsiToElectronEvtGen_pp13TeV()" \
19+
-genBkg pythia8 -procBkg inel -colBkg pp --embedding -nb ${NBKGEVENTS}
20+
21+
# run workflow
22+
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json

0 commit comments

Comments
 (0)