Skip to content

Commit fe36cb8

Browse files
committed
Set beam type dependent defaults for TPC_CORR_SCALING
1 parent ba2ab94 commit fe36cb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DATA/common/setenv.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ if [[ -z "${IS_TRIGGERED_DATA:-}" ]]; then export IS_TRIGGERED_DATA=0; fi
110110
if [[ -z "${CTF_DIR:-}" ]]; then CTF_DIR=$FILEWORKDIR; fi # Directory where to store CTFs
111111
if [[ -z "${CALIB_DIR:-}" ]]; then CALIB_DIR="/dev/null"; fi # Directory where to store output from calibration workflows, /dev/null : skip their writing
112112
if [[ -z "${EPN2EOS_METAFILES_DIR:-}" ]]; then EPN2EOS_METAFILES_DIR="/dev/null"; fi # Directory where to store epn2eos files metada, /dev/null : skip their writing
113-
if [[ -z "${TPC_CORR_SCALING:-}" ]]; then export TPC_CORR_SCALING=""; fi # TPC corr.map lumi scaling options, any combination of --lumi-type <0,1,2> --corrmap-lumi-mode <0,1> and TPCCorrMap... configurable param
114113
if [[ $EPNSYNCMODE == 0 ]]; then
115114
if [[ -z "${SHMSIZE:-}" ]]; then export SHMSIZE=$(( 8 << 30 )); fi # Size of shared memory for messages
116115
if [[ -z "${NGPUS:-}" ]]; then export NGPUS=1; fi # Number of GPUs to use, data distributed round-robin
@@ -164,6 +163,13 @@ DISABLE_ROOT_INPUT="--disable-root-input"
164163
: ${DISABLE_DIGIT_CLUSTER_INPUT="--clusters-from-upstream"}
165164

166165
# Special detector related settings
166+
if [[ -z "${TPC_CORR_SCALING:-}" ]]; then # TPC corr.map lumi scaling options, any combination of --lumi-type <0,1,2> --corrmap-lumi-mode <0,1> and TPCCorrMap... configurable param
167+
TPC_CORR_SCALING=
168+
if [[ $BEAMTYPE == "pp" ]] || [[ $BEAMTYPE == "PbPb" ]]; then TPC_CORR_SCALING+="--lumi-type 1 TPCCorrMap.lumiInstFactor=2.414"; fi
169+
if [[ $BEAMTYPE == "cosmic" ]]; then TPC_CORR_SCALING=" TPCCorrMap.lumiMean=-1;"; fi # for COSMICS we disable all corrections
170+
export TPC_CORR_SCALING=$TPC_CORR_SCALING
171+
fi
172+
167173
MID_FEEID_MAP="$FILEWORKDIR/mid-feeId_mapper.txt"
168174

169175
ITSMFT_STROBES=""

0 commit comments

Comments
 (0)