-
Notifications
You must be signed in to change notification settings - Fork 1
/
doDatacard.sh
executable file
·105 lines (93 loc) · 3.23 KB
/
doDatacard.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#! /bin/bash
directory=$1
sideband=$2
mkdir $directory
cd $directory
cp ../doDatacard.sh .
cp ../CreateTree.C .
cp ../MakeFit.cpp .
cp ../shapeComparison.cpp .
cp ../print.C .
cp ../combineCommand.sh .
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHlep1\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHlep2\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"ttHhad\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHhadB\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHhad0\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHmetT\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHlep1\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHlep2\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"ttHhad\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHhadB\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHhad0\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHmetT\",\"mass\",80,100,180\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHlep1\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHlep2\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"ttHhad\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHhadB\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHhad0\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"CS\",\"VHmetT\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHlep1\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHlep2\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHlep\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"ttHhad\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHhadB\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHhad0\",\"diphobdt\_output\",200,-1,1\)
root -l -b -q CreateTree.C+\(true,\"SS\",\"VHmetT\",\"diphobdt\_output\",200,-1,1\)
if [ "$sideband" == "true" ]; then
root -b <<EOF
.x MakeFit.cpp
MakeFit(true,"VHlep1",true)
MakeFit(true,"VHlep2",true)
MakeFit(true,"ttHhad",true)
MakeFit(true,"VHhadB",true)
MakeFit(true,"VHhad0",true)
MakeFit(true,"VHmetT",true)
.q
EOF
fi
if [ "$sideband" == "false" ]; then
root -b <<EOF
.x MakeFit.cpp
MakeFit(true,"VHlep1",false)
MakeFit(true,"VHlep2",false)
MakeFit(true,"ttHhad",false)
MakeFit(true,"VHhadB",false)
MakeFit(true,"VHhad0",false)
MakeFit(true,"VHmetT",false)
.q
EOF
fi
root -b <<EOF
.x shapeComparison.cpp
shapeComparison(true,"VHlep")
shapeComparison(true,"ttHhad")
shapeComparison(true,"VHhadB")
shapeComparison(true,"VHhad0")
shapeComparison(true,"VHmetT")
.q
EOF
./combineCommand.sh VHlep1
./combineCommand.sh VHlep2
./combineCommand.sh VHmetT
./combineCommand.sh ttHhad
./combineCommand.sh VHhadB
./combineCommand.sh VHhad0
root -b <<EOF
.x print.C
print("VHlep1")
print("VHlep2")
print("VHmetT")
print("ttHhad")
print("VHhadB")
print("VHhad0")
.q
EOF
mkdir datacard
mkdir plot
mkdir root
mkdir txt
mv *.dat datacard
mv *.png plot
mv *.root root
mv *.txt txt