-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts to run simulations PbPb strangeness enriched and PbPb with sy…
…nthetic flow (#1751) Co-authored-by: Chiara De Martin <chiara.de.martin@cern.ch>
- Loading branch information
1 parent
9780b46
commit 058558b
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# A example workflow MC->RECO->AOD for a simple pp min bias | ||
# production, targetting test beam conditions. | ||
|
||
# make sure O2DPG + O2 is loaded | ||
[ ! "${O2DPG_ROOT}" ] && echo "Error: This needs O2DPG loaded" && exit 1 | ||
[ ! "${O2_ROOT}" ] && echo "Error: This needs O2 loaded" && exit 1 | ||
|
||
# ----------- CONFIGURE -------------------------- | ||
export IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE=1 | ||
#export ALICEO2_CCDB_LOCALCACHE=.ccdb | ||
|
||
# ----------- LOAD UTILITY FUNCTIONS -------------------------- | ||
. ${O2_ROOT}/share/scripts/jobutils.sh | ||
|
||
# ----------- START ACTUAL JOB ----------------------------- | ||
|
||
NWORKERS=${NWORKERS:-8} | ||
SIMENGINE=${SIMENGINE:-TGeant4} | ||
NSIGEVENTS=${NSIGEVENTS:-1} | ||
NBKGEVENTS=${NBKGEVENTS:-1} | ||
NTIMEFRAMES=${NTIMEFRAMES:-1} | ||
INTRATE=${INTRATE:-50000} | ||
SYSTEM=${SYSTEM:-PbPb} | ||
ENERGY=${ENERGY:-5360} | ||
CFGINIFILE=${CFGINIFILE:-"${O2DPG_ROOT}/MC/config/PWGLF/ini/GeneratorLF_Strangeness_PbPb5360_injection.ini"} | ||
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED="" | ||
|
||
echo "NWORKERS = $NWORKERS" | ||
|
||
# create workflow | ||
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"} | ||
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \ | ||
-j ${NWORKERS} \ | ||
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \ | ||
-confKey "Diamond.width[2]=6." \ | ||
${SEED} \ | ||
-procBkg "inel" -colBkg $SYSTEM --embedding -nb ${NBKGEVENTS} -genBkg pythia8 \ | ||
-e ${SIMENGINE} \ | ||
-ini $CFGINIFILE | ||
|
||
# run workflow | ||
O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:-"${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py"} | ||
$O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# A example workflow MC->RECO->AOD for a simple pp min bias | ||
# production, targetting test beam conditions. | ||
|
||
# make sure O2DPG + O2 is loaded | ||
[ ! "${O2DPG_ROOT}" ] && echo "Error: This needs O2DPG loaded" && exit 1 | ||
[ ! "${O2_ROOT}" ] && echo "Error: This needs O2 loaded" && exit 1 | ||
|
||
# ----------- CONFIGURE -------------------------- | ||
export IGNORE_VALIDITYCHECK_OF_CCDB_LOCALCACHE=1 | ||
#export ALICEO2_CCDB_LOCALCACHE=.ccdb | ||
|
||
# ----------- LOAD UTILITY FUNCTIONS -------------------------- | ||
. ${O2_ROOT}/share/scripts/jobutils.sh | ||
|
||
# ----------- START ACTUAL JOB ----------------------------- | ||
|
||
NWORKERS=${NWORKERS:-8} | ||
SIMENGINE=${SIMENGINE:-TGeant4} | ||
NSIGEVENTS=${NSIGEVENTS:-1} | ||
NBKGEVENTS=${NBKGEVENTS:-1} | ||
NTIMEFRAMES=${NTIMEFRAMES:-1} | ||
INTRATE=${INTRATE:-50000} | ||
SYSTEM=${SYSTEM:-PbPb} | ||
ENERGY=${ENERGY:-5360} | ||
CFGINIFILE=${CFGINIFILE:-"${O2DPG_ROOT}/MC/config/PWGLF/ini/GeneratorLF_SyntheFlow.ini"} | ||
[[ ${SPLITID} != "" ]] && SEED="-seed ${SPLITID}" || SEED="" | ||
|
||
echo "NWORKERS = $NWORKERS" | ||
|
||
# create workflow | ||
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"} | ||
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \ | ||
-j ${NWORKERS} \ | ||
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \ | ||
-confKey "Diamond.width[2]=6." \ | ||
${SEED} \ | ||
-procBkg "inel" -colBkg $SYSTEM --embedding -nb ${NBKGEVENTS} -genBkg pythia8 \ | ||
-e ${SIMENGINE} \ | ||
-ini $CFGINIFILE | ||
|
||
# run workflow | ||
O2_SIM_WORKFLOW_RUNNER=${O2_SIM_WORKFLOW_RUNNER:-"${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py"} | ||
$O2_SIM_WORKFLOW_RUNNER -f workflow.json -tt aod --cpu-limit $NWORKERS |