-
Notifications
You must be signed in to change notification settings - Fork 2
/
doLimits_bias.sh
87 lines (74 loc) · 1.61 KB
/
doLimits_bias.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
function_LMR=$1
range_LMR=$2
function_MMR=$3
range_MMR=$4
range_num_LMR=$5
range_num_MMR=$6
location=$7
function show_help {
echo "./doLimits.sh [-c to clean up] [-d debug combine]"
}
if [ $range_num_LMR -eq 1 ];
then
massesLMR=(260 270 300 350)
else massesLMR=(270 300 350 400 450 500 550 600 650)
fi
cleanUp=0
#rebin=10
debug=0
while getopts "h?cr:d" opt; do
case "$opt" in
h|\?)
show_help
exit 0
;;
d)
debug=1
;;
c) cleanUp=1
;;
esac
done
for m in ${massesLMR[@]}
do
if [ $cleanUp -eq 0 ]; then
echo 'LMR' $m $function_LMR $range_LMR $location $range_num_LMR
source doBuildInputsLMR_bias.sh $m $function_LMR $range_LMR $location $range_num_LMR
source doDatacardsLMR_bias.sh $m $function_LMR $range_LMR $range_num_LMR
fi
if [ $cleanUp -eq 1 ]; then
./cleanUp.sh $m
fi
done
if [ $range_num_MMR -eq 1 ];
then
massesMMR=() #550 600 650 750 800 900 1000)
else massesMMR=() #550 600 650 750 800 900 1000)
fi
cleanUp=0
debug=0
while getopts "h?cr:d" opt; do
case "$opt" in
h|\?)
show_help
exit 0
;;
d)
debug=1
;;
c) cleanUp=1
;;
esac
done
for m in ${massesMMR[@]}
do
if [ $cleanUp -eq 0 ]; then
echo 'MMR' $m $function_MMR $range_MMR $location $range_num_MMR
source doBuildInputs_bias.sh $m $function_MMR $range_MMR $location $range_num_MMR
source doDatacards_bias.sh $m $function_MMR $range_MMR $range_num_MMR
fi
if [ $cleanUp -eq 1 ]; then
./cleanUp.sh $m
fi
done