-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCalcImpactPlots.sh
34 lines (26 loc) · 904 Bytes
/
CalcImpactPlots.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
#!bin/bash
masses=(1900)
#models=("WZ" "BulkWW" "BulkZZ" "ZprimeWW")
category=("WWHP") #"WWLP" "ZZHP" "ZZLP" "VVnew")
models=("BulkWW")
#category=("qVnew")
for mass in ${masses[@]}
do
for model in ${models[@]}
do
for c in ${category[@]}
do
#mass=1400
#model="WZ"
#cat="WZLP"
datacard="datacards/CMS_jj_${model}_${mass}_13TeV_CMS_jj_${c}.txt"
workspace="datacards/CMS_jj_${model}_${mass}_13TeV_CMS_jj_${c}.root"
text2workspace.py $datacard -m $mass
combineTool.py -M Impacts -d $workspace -m $mass --doInitialFit --robustFit 1
combineTool.py -M Impacts -d $workspace -m $mass --robustFit 1 --doFits
combineTool.py -M Impacts -d $workspace -m $mass -o impacts.json
plotImpacts.py -i impacts.json -o impacts
mv ./impacts.pdf Impacts_${model}_${mass}_${c}.pdf
done
done
done