From a838ad804dfb0dbd3360f8e3916ab7df9778b468 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Wed, 23 Aug 2017 14:23:01 +0200 Subject: [PATCH] Protection for pT hard bin settings (only one method allowed) --- MC/dpgsim.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MC/dpgsim.sh b/MC/dpgsim.sh index 63a75244..309cfee3 100755 --- a/MC/dpgsim.sh +++ b/MC/dpgsim.sh @@ -336,6 +336,11 @@ fi if [ ! -z "$CONFIG_PTHARDBIN" ]; then + if [ ! -z "$CONFIG_PTHARDMIN" ] || [ ! -z "$CONFIG_PTHARDMAX" ]; then + echo "Simultaneous setting of pthardbin ($CONFIG_PTHARDBIN) and pthardmin/max ($CONFIG_PTHARDMIN / $CONFIG_PTHARDMAX) not allowed" + exit 1; + fi + # Define the pt hard bin arrays pthardbin_loweredges=(0 5 7 9 12 16 21 28 36 45 57 70 85 99 115 132 150 169 190 212 235) pthardbin_higheredges=( 5 7 9 12 16 21 28 36 45 57 70 85 99 115 132 150 169 190 212 235 -1)