Skip to content

Commit

Permalink
[Anchor] Add some more help messages (#1511)
Browse files Browse the repository at this point in the history
* help messages
* set ALIEN_JDL_ADDTIMESERIESINMC to a value at the beginning
  • Loading branch information
benedikt-voelkel authored Feb 29, 2024
1 parent b04143a commit b9cb67a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions MC/run/ANCHOR/anchorMC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ print_help()
echo "PRODSPLIT."
echo
echo "Optional are:"
echo "NWORKERS,"
echo "ALIEN_JDL_CPULIMIT or CPULIMIT,"
echo "ALIEN_JDL_SIMENGINE or SIMENGINE."
echo "DISABLE_QC (set this to disable QC, e.g. DISABLE_QC=1)"
echo "ALIEN_JDL_CPULIMIT or CPULIMIT, set the CPU limit of the workflow runner, default: 8,"
echo "NWORKERS, set the number of workers during detector transport, default: 8,"
echo "ALIEN_JDL_SIMENGINE or SIMENGINE, choose the transport engine, default: TGeant4,"
echo "ALIEN_JDL_WORKFLOWDETECTORS, set detectors to be taken into account, default: ITS,TPC,TOF,FV0,FT0,FDD,MID,MFT,MCH,TRD,EMC,PHS,CPV,HMP,CTP,"
echo "ALIEN_JDL_ANCHOR_SIM_OPTIONS, additional options that are passed to the workflow creation, default: -gen pythia8,"
echo "ALIEN_JDL_ADDTIMESERIESINMC, run TPC time series. Default: 1, switch off by setting to 0,"
echo "DISABLE_QC, set this to disable QC, e.g. to 1"
}

# Prevent the script from being soured to omit unexpected surprises when exit is used
Expand Down Expand Up @@ -93,6 +96,8 @@ export ALIEN_JDL_LPMPRODUCTIONTAG=${ALIEN_JDL_LPMPRODUCTIONTAG:-${PRODUCTIONTAG}
export ALIEN_JDL_LPMANCHORRUN=${ALIEN_JDL_LPMANCHORRUN:-${ANCHORRUN}}
export ALIEN_JDL_LPMANCHORPRODUCTION=${ALIEN_JDL_LPMANCHORPRODUCTION:-${ANCHORPRODUCTION}}
export ALIEN_JDL_LPMANCHORYEAR=${ALIEN_JDL_LPMANCHORYEAR:-${ANCHORYEAR}}
# decide whether to run TPC time series; on by default, switched off by setting to 0
export ALIEN_JDL_ADDTIMESERIESINMC=${ALIEN_JDL_ADDTIMESERIESINMC:-1}

# cache the production tag, will be set to a special anchor tag; reset later in fact
ALIEN_JDL_LPMPRODUCTIONTAG_KEEP=$ALIEN_JDL_LPMPRODUCTIONTAG
Expand Down Expand Up @@ -236,6 +241,7 @@ ${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt ${ALIEN_JDL_
MCRC=$? # <--- we'll report back this code

if [[ "${ALIEN_JDL_ADDTIMESERIESINMC}" != "0" ]]; then
# Default value is 1 so this is run by default.
echo "Running TPC time series"
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json -tt tpctimes
fi
Expand Down

0 comments on commit b9cb67a

Please sign in to comment.