Skip to content

Commit 8b656b8

Browse files
committed
Make sure non-number INST_IR_FOR_TPC is not evaluated as a number
1 parent cd5d613 commit 8b656b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DATA/production/configurations/asyncReco/setenv_extra.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ elif [[ $ALIGNLEVEL == 1 ]]; then
463463

464464

465465
# set IR for TPC, even if it is not used for corrections scaling
466-
if (( $(echo "$INST_IR_FOR_TPC > 0" | bc -l) )) ; then # externally imposed CTP IR
466+
if [[ "$INST_IR_FOR_TPC" =~ ^-?[0-9]*\.?[0-9]+$ ]] && (( $(echo "$INST_IR_FOR_TPC > 0" | bc -l) )) ; then # externally imposed CTP IR
467467
echo "Applying externally provided istantaneous IR $INST_IR_FOR_TPC Hz"
468468
export TPC_CORR_SCALING+=";TPCCorrMap.lumiInst=$INST_IR_FOR_TPC"
469469
elif [[ $INST_IR_FOR_TPC == "CTP" ]]; then

0 commit comments

Comments
 (0)