Skip to content

Commit

Permalink
Protection for pT hard bin settings (only one method allowed)
Browse files Browse the repository at this point in the history
  • Loading branch information
miweberSMI committed Aug 24, 2017
1 parent 3ac4548 commit a838ad8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MC/dpgsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a838ad8

Please sign in to comment.