Skip to content

Commit dca935e

Browse files
committed
Set IS_SIMULATED_DATA=1 for SYNTHETIC only if unset
1 parent 6f42c93 commit dca935e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

DATA/common/setenv.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ if [[ -z "${RAWINPUTDIR:-}" ]]; then export RAWINPUTDIR=$FILEWORKDIR; fi #
9292
if [[ -z "${EPNSYNCMODE:-}" ]]; then export EPNSYNCMODE=0; fi # Is this workflow supposed to run on EPN for sync processing? Will enable InfoLogger / metrics / fetching QC JSONs from consul...
9393
if [[ -z "${BEAMTYPE:-}" ]]; then export BEAMTYPE=PbPb; fi # Beam type, must be PbPb, pp, pPb, cosmic, technical
9494
if [[ -z "${RUNTYPE:-}" ]]; then export RUNTYPE=Standalone; fi # Run Type, standalone for local tests, otherwise PHYSICS, COSMICS, TECHNICAL, SYNTHETIC
95-
if [[ $RUNTYPE == "SYNTHETIC" ]]; then export IS_SIMULATED_DATA=1; fi # For SYNTHETIC runs we always process simulated data
96-
if [[ -z "${IS_SIMULATED_DATA:-}" ]]; then export IS_SIMULATED_DATA=1; fi # processing simulated data
97-
if [[ -z "${IS_TRIGGERED_DATA:-}" ]]; then export IS_TRIGGERED_DATA=0; fi # processing triggered data (TPC triggered instead of continuous)
98-
if [[ -z "${CTF_DIR:-}" ]]; then CTF_DIR=$FILEWORKDIR; fi # Directory where to store CTFs
99-
if [[ -z "${CALIB_DIR:-}" ]]; then CALIB_DIR="/dev/null"; fi # Directory where to store output from calibration workflows, /dev/null : skip their writing
95+
if [[ -z "${IS_SIMULATED_DATA:-}" && $RUNTYPE == "SYNTHETIC" ]]; then export IS_SIMULATED_DATA=1; fi # For SYNTHETIC runs we always process simulated data
96+
if [[ -z "${IS_SIMULATED_DATA:-}" && ( $RUNTYPE == "PHYSICS" || $RUNTYPE == "COSMICS" ) ]]; then export IS_SIMULATED_DATA=0; fi # For PHYSICS runs we always process simulated data
97+
if [[ -z "${IS_SIMULATED_DATA:-}" ]]; then export IS_SIMULATED_DATA=1; fi # processing simulated data
98+
if [[ -z "${IS_TRIGGERED_DATA:-}" ]]; then export IS_TRIGGERED_DATA=0; fi # processing triggered data (TPC triggered instead of continuous)
99+
if [[ -z "${CTF_DIR:-}" ]]; then CTF_DIR=$FILEWORKDIR; fi # Directory where to store CTFs
100+
if [[ -z "${CALIB_DIR:-}" ]]; then CALIB_DIR="/dev/null"; fi # Directory where to store output from calibration workflows, /dev/null : skip their writing
100101
if [[ -z "${EPN2EOS_METAFILES_DIR:-}" ]]; then EPN2EOS_METAFILES_DIR="/dev/null"; fi # Directory where to store epn2eos files metada, /dev/null : skip their writing
101102
if [[ -z "${DCSCCDBSERVER:-}" ]]; then export DCSCCDBSERVER="http://alio2-cr1-flp199-ib:8083"; fi # server for transvering calibration data to DCS
102-
if [[ -z "${DCSCCDBSERVER_PERS:-}" ]]; then export DCSCCDBSERVER_PERS="http://alio2-cr1-flp199-ib:8084"; fi # persistent server for transvering calibration data to DCS
103+
if [[ -z "${DCSCCDBSERVER_PERS:-}" ]]; then export DCSCCDBSERVER_PERS="http://alio2-cr1-flp199-ib:8084"; fi # persistent server for transvering calibration data to DCS
103104

104105
if [[ $EPNSYNCMODE == 0 ]]; then
105106
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 8 << 30 )); fi # Size of shared memory for messages
@@ -112,12 +113,12 @@ if [[ $EPNSYNCMODE == 0 ]]; then
112113
else # Defaults when running on the EPN
113114
if [[ "0${GEN_TOPO_CALIB_WORKFLOW:-}" != "01" ]]; then
114115
if [[ -z "${GEN_TOPO_CALIB_NCORES:-}" ]]; then
115-
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 32 << 30 )); fi
116+
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 32 << 30 )); fi
116117
else
117-
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( ($GEN_TOPO_CALIB_NCORES * 2) << 30 )); fi
118+
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( ($GEN_TOPO_CALIB_NCORES * 2) << 30 )); fi
118119
fi
119120
else
120-
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 112 << 30 )); fi
121+
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 112 << 30 )); fi
121122
fi
122123
if [[ -z "${NGPUS:-}" ]]; then export NGPUS=4; fi
123124
if [[ -z "${EXTINPUT:-}" ]]; then export EXTINPUT=1; fi

0 commit comments

Comments
 (0)