-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_breakdown.sh
executable file
·65 lines (61 loc) · 2.14 KB
/
run_breakdown.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
#!/usr/bin/env bash
MODEL_STRING=${MODEL_BOOSTED_MINIMAL//./__}
C4bcomb_STRING=${C4bcomb//,/__}
C4bcomb_STRING=${C4bcomb_STRING//\//_}
DCARD="$DHI_STORE/CombineDatacards/$MODEL_STRING/$C4bcomb_STRING/m125.0/$VERSION/datacard.txt"
DCARDWGROUPS="$DHI_STORE/CombineDatacards/$MODEL_STRING/$C4bcomb_STRING/m125.0/$VERSION/datacard_withgroups.txt"
POI="r"
SCAN="r,-2,12,15"
DCARD_HASH="datacards_c5d35ed1a9"
# make card with groups
python add_nuisance_groups.py $DCARD $DCARDWGROUPS
# get stat-only
for p in "allConstrainedNuisances"; do
for g in "" "QCD"; do
law run PlotLikelihoodScan \
--version "$VERSION" \
--hh-model "$MODEL_BOOSTED_MINIMAL" \
--datacards "$DCARDWGROUPS" \
--pois "$POI" \
--scan-parameters "$SCAN" \
--file-types "pdf,png" \
--campaign run2 \
--workers 8 \
--unblinded True \
--use-snapshot True \
--shift-negative-values \
--y-max 10 \
--frozen-groups "$g" \
--frozen-parameters "$p" \
--Snapshot-frozen-parameters "" \
--Snapshot-frozen-groups "" \
--remove-output 0,a,y \
--save-ranges True
done
done
# get systematic/theory breakdowns
for p in ""; do
for g in "" "THY" "LUMI" "MCSTAT" "TTBAR" "BBTAG" "JMRJMSJERJES" "PU" "TRIG" "OTHER" "QCD"; do
law run PlotLikelihoodScan \
--version "$VERSION" \
--hh-model "$MODEL_BOOSTED_MINIMAL" \
--datacards "$DCARDWGROUPS" \
--pois "$POI" \
--scan-parameters "$SCAN" \
--file-types "pdf,png" \
--campaign run2 \
--workers 8 \
--unblinded True \
--use-snapshot True \
--shift-negative-values \
--y-max 10 \
--frozen-groups "$g" \
--frozen-parameters "$p" \
--Snapshot-frozen-parameters "" \
--Snapshot-frozen-groups "" \
--remove-output 0,a,y \
--save-ranges True
done
done
# do subtraction
python subtract.py $DCARD_HASH $MODEL_BOOSTED_MINIMAL $POI $SCAN $VERSION