From 8b656b8afd1b8935ef14e51d16d3056a8a88715d Mon Sep 17 00:00:00 2001 From: shahoian Date: Tue, 29 Jul 2025 17:50:18 +0200 Subject: [PATCH] Make sure non-number INST_IR_FOR_TPC is not evaluated as a number --- DATA/production/configurations/asyncReco/setenv_extra.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DATA/production/configurations/asyncReco/setenv_extra.sh b/DATA/production/configurations/asyncReco/setenv_extra.sh index 6cdd3203a..2ba6e83c5 100644 --- a/DATA/production/configurations/asyncReco/setenv_extra.sh +++ b/DATA/production/configurations/asyncReco/setenv_extra.sh @@ -463,7 +463,7 @@ elif [[ $ALIGNLEVEL == 1 ]]; then # set IR for TPC, even if it is not used for corrections scaling - if (( $(echo "$INST_IR_FOR_TPC > 0" | bc -l) )) ; then # externally imposed CTP IR + if [[ "$INST_IR_FOR_TPC" =~ ^-?[0-9]*\.?[0-9]+$ ]] && (( $(echo "$INST_IR_FOR_TPC > 0" | bc -l) )) ; then # externally imposed CTP IR echo "Applying externally provided istantaneous IR $INST_IR_FOR_TPC Hz" export TPC_CORR_SCALING+=";TPCCorrMap.lumiInst=$INST_IR_FOR_TPC" elif [[ $INST_IR_FOR_TPC == "CTP" ]]; then