-
Notifications
You must be signed in to change notification settings - Fork 2
/
runLimits_Interpolation.sh
76 lines (63 loc) · 2.36 KB
/
runLimits_Interpolation.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
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd /scratch/malara/WorkingArea/release/CMSSW_7_4_7/src/HiggsAnalysis/CombinedLimit
cmsenv
cd $DIR
function_LMR=$1
range_LMR=$2
background_LMR="_${function_LMR}_${range_LMR}"
function_MMR=$3
range_MMR=$4
background_MMR="_${function_MMR}_${range_MMR}"
if [ $5 -eq 1 ];
then
masses_LMR=(260 265 270 275 280 285 290 295 300 310 320)
else masses_LMR=(270 275 280 285 290 295 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 490 500 510 520 530 540 550 560 570 580 590 600 610 620)
fi
if [ $5 -eq 1 ];
then
masses_MMR=(550 570 600 620 650 670 700 720 750 770 800 820 840 860 880 900 920 940 960 980 1000) #550 600 650 750 800 900 1000)
else masses_MMR=() #550 600 650 750 800 900 1000)
fi
echo 'MMR'
for i in ${masses_MMR[@]}
do
cd $DIR
folder="PreselectedWithRegressionDeepCSV/limits/MMR/MMR_${i}${background_MMR}"
if [ -d $folder ]
then
cd $folder
else
echo "mass point $i"
continue
fi
mkdir out
echo "Asymptotic"
combine -M Asymptotic datacard_${i}${background_MMR}.txt -t -1 &> CMS_HH4b_$i\_13TeV_asymptoticCLs.out
echo "MaxLikelihoodFit"
combine -M MaxLikelihoodFit datacard_${i}${background_MMR}.txt -t -1 --minimizerTolerance=0.001 --rMin=0 --rMax=3 &> CMS_HH4b_$i\_13TeV_MaxLikelihood.out
echo "Plot"
combine -M MaxLikelihoodFit datacard_${i}${background_MMR}.txt -t -1 --minimizerTolerance=0.001 --rMin=0 --rMax=3 --saveNormalizations --plot --out out
done
cd $DIR
echo 'LMR'
for i in ${masses_LMR[@]}
do
cd $DIR
folder="PreselectedWithRegressionDeepCSV/limits/LMR/LMR_${i}${background_LMR}"
if [ -d $folder ]
then
cd $folder
else
echo "mass point $i"
continue
fi
mkdir out
echo "Asymptotic"
combine -M Asymptotic datacard_${i}${background_LMR}.txt -t -1 &> CMS_HH4b_$i\_13TeV_asymptoticCLs.out
echo "MaxLikelihoodFit"
combine -M MaxLikelihoodFit datacard_${i}${background_LMR}.txt -t -1 --minimizerTolerance=0.001 --rMin=0 --rMax=3 &> CMS_HH4b_$i\_13TeV_MaxLikelihood.out
echo "Plot"
combine -M MaxLikelihoodFit datacard_${i}${background_LMR}.txt -t -1 --minimizerTolerance=0.001 --rMin=0 --rMax=3 --saveNormalizations --plot --out out
done
cd $DIR