1 |
nowak |
1.1 |
import ROOT
|
2 |
|
|
import sys, re
|
3 |
|
|
sys.path.append("/afs/naf.desy.de/user/n/nowaf/UserCode/nowaf/PythonScripts/")
|
4 |
|
|
import definitions as Def
|
5 |
|
|
import styles as Style
|
6 |
|
|
import FakeHelper as FH
|
7 |
|
|
from array import array
|
8 |
|
|
import MakeRealTauEst_cff as RT
|
9 |
|
|
|
10 |
|
|
if __name__ == "__main__":
|
11 |
|
|
Def.SetGlobalStyles( withTitle=True )
|
12 |
|
|
|
13 |
|
|
filename = "/scratch/hh/lustre/cms/user/nowaf/2011Data/VersionII/Plots/QCDFlat_fakes_xxx/QCDFlat_fakes_xxx.root"
|
14 |
|
|
file = ROOT.TFile.Open( filename )
|
15 |
|
|
|
16 |
|
|
#title = "QCD Simulation"
|
17 |
|
|
title = "CMS Simulation"
|
18 |
|
|
|
19 |
|
|
dirDict = {}
|
20 |
|
|
dirDict[ "20" ] = "FakeRateInvertMHTLoose/"
|
21 |
|
|
dirDict[ "4060" ] = "FakeRate40MHT60/"
|
22 |
|
|
#dirDict[ "250" ] = "FakeRate250MHT/"
|
23 |
|
|
#dirDict[ "400" ] = "FakeRate400MHT/"
|
24 |
|
|
dirDict[ "400" ] = "FakeRate80MHT100/"
|
25 |
|
|
|
26 |
|
|
histDict = {}
|
27 |
|
|
#histDict[ "20" ] = file.Get( "FakeRateInvertMHTLoose/JetNCPlusG" )
|
28 |
|
|
#histDict[ "4060" ] = file.Get( "FakeRate40MHT60/JetNCPlusG" )
|
29 |
|
|
#histDict[ "250" ] = file.Get( "FakeRate250MHT/JetNCPlusG" )
|
30 |
|
|
#histDict[ "400" ] = file.Get( "FakeRate400MHT/JetNCPlusG" )
|
31 |
|
|
for dir in dirDict.keys():
|
32 |
|
|
histDict[ dir ] = file.Get( dirDict[ dir ] + "JetNCPlusG" )
|
33 |
|
|
histDict[ dir + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauNCPlusG" )
|
34 |
|
|
histDict[ dir + "0CG" ] = file.Get( dirDict[ dir ] + "JetPt0GC" )
|
35 |
|
|
histDict[ dir + "0CG" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauPt0GC" )
|
36 |
|
|
histDict[ dir + "13CG" ] = file.Get( dirDict[ dir ] + "JetPt13GC" )
|
37 |
|
|
histDict[ dir + "13CG" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauPt13GC" )
|
38 |
|
|
histDict[ dir + "46CG" ] = file.Get( dirDict[ dir ] + "JetPt46GC" )
|
39 |
|
|
histDict[ dir + "46CG" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauPt46GC" )
|
40 |
|
|
histDict[ dir + "7CG" ] = file.Get( dirDict[ dir ] + "JetPt7GC" )
|
41 |
|
|
histDict[ dir + "7CG" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauPt7GC" )
|
42 |
|
|
histDict[ dir + "Pt030" ] = file.Get( dirDict[ dir ] + "JetGCPt030" )
|
43 |
|
|
histDict[ dir + "Pt030" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauGCPt030" )
|
44 |
|
|
histDict[ dir + "Pt3050" ] = file.Get( dirDict[ dir ] + "JetGCPt3050" )
|
45 |
|
|
histDict[ dir + "Pt3050" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauGCPt3050" )
|
46 |
|
|
histDict[ dir + "Pt50100" ] = file.Get( dirDict[ dir ] + "JetGCPt50100" )
|
47 |
|
|
histDict[ dir + "Pt50100" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauGCPt50100" )
|
48 |
|
|
histDict[ dir + "Pt100" ] = file.Get( dirDict[ dir ] + "JetGCPt100" )
|
49 |
|
|
histDict[ dir + "Pt100" + "Tau" ] = file.Get( dirDict[ dir ] + "JetTauGCPt100" )
|
50 |
|
|
pass
|
51 |
|
|
|
52 |
|
|
colorDict = {}
|
53 |
|
|
colorDict[ "20" ] = ROOT.kBlue + 4
|
54 |
|
|
colorDict[ "4060" ] = ROOT.kBlue - 6
|
55 |
|
|
colorDict[ "250" ] = ROOT.kBlue-9
|
56 |
|
|
colorDict[ "400" ] = ROOT.kRed
|
57 |
|
|
colorDict[ "20" + "Tau" ] = ROOT.kBlue + 4
|
58 |
|
|
colorDict[ "4060" + "Tau" ] = ROOT.kBlue - 6
|
59 |
|
|
colorDict[ "250" + "Tau" ] = ROOT.kBlue-9
|
60 |
|
|
colorDict[ "400" + "Tau" ] = ROOT.kRed
|
61 |
|
|
colorDict[ "20" + "0CG" ] = ROOT.kBlue + 4
|
62 |
|
|
colorDict[ "4060" + "0CG" ] = ROOT.kBlue - 6
|
63 |
|
|
colorDict[ "250" + "0CG" ] = ROOT.kBlue-9
|
64 |
|
|
colorDict[ "400" + "0CG" ] = ROOT.kRed
|
65 |
|
|
colorDict[ "20" + "0CG" + "Tau" ] = ROOT.kBlue + 4
|
66 |
|
|
colorDict[ "4060" + "0CG" + "Tau" ] = ROOT.kBlue - 6
|
67 |
|
|
colorDict[ "250" + "0CG" + "Tau" ] = ROOT.kBlue-9
|
68 |
|
|
colorDict[ "400" + "0CG" + "Tau" ] = ROOT.kRed
|
69 |
|
|
colorDict[ "20" + "13CG" ] = ROOT.kBlue + 4
|
70 |
|
|
colorDict[ "4060" + "13CG" ] = ROOT.kBlue - 6
|
71 |
|
|
colorDict[ "250" + "13CG" ] = ROOT.kBlue-9
|
72 |
|
|
colorDict[ "400" + "13CG" ] = ROOT.kRed
|
73 |
|
|
colorDict[ "20" + "13CG" + "Tau" ] = ROOT.kBlue + 4
|
74 |
|
|
colorDict[ "4060" + "13CG" + "Tau" ] = ROOT.kBlue - 6
|
75 |
|
|
colorDict[ "250" + "13CG" + "Tau" ] = ROOT.kBlue-9
|
76 |
|
|
colorDict[ "400" + "13CG" + "Tau" ] = ROOT.kRed
|
77 |
|
|
colorDict[ "20" + "46CG" ] = ROOT.kBlue + 4
|
78 |
|
|
colorDict[ "4060" + "46CG" ] = ROOT.kBlue - 6
|
79 |
|
|
colorDict[ "250" + "46CG" ] = ROOT.kBlue-9
|
80 |
|
|
colorDict[ "400" + "46CG" ] = ROOT.kRed
|
81 |
|
|
colorDict[ "20" + "46CG" + "Tau" ] = ROOT.kBlue + 4
|
82 |
|
|
colorDict[ "4060" + "46CG" + "Tau" ] = ROOT.kBlue - 6
|
83 |
|
|
colorDict[ "250" + "46CG" + "Tau" ] = ROOT.kBlue-9
|
84 |
|
|
colorDict[ "400" + "46CG" + "Tau" ] = ROOT.kRed
|
85 |
|
|
colorDict[ "20" + "7CG" ] = ROOT.kBlue + 4
|
86 |
|
|
colorDict[ "4060" + "7CG" ] = ROOT.kBlue - 6
|
87 |
|
|
colorDict[ "250" + "7CG" ] = ROOT.kBlue-9
|
88 |
|
|
colorDict[ "400" + "7CG" ] = ROOT.kRed
|
89 |
|
|
colorDict[ "20" + "7CG" + "Tau" ] = ROOT.kBlue + 4
|
90 |
|
|
colorDict[ "4060" + "7CG" + "Tau" ] = ROOT.kBlue - 6
|
91 |
|
|
colorDict[ "250" + "7CG" + "Tau" ] = ROOT.kBlue-9
|
92 |
|
|
colorDict[ "400" + "7CG" + "Tau" ] = ROOT.kRed
|
93 |
|
|
colorDict[ "20" + "Pt030" ] = ROOT.kBlue + 4
|
94 |
|
|
colorDict[ "4060" + "Pt030" ] = ROOT.kBlue - 6
|
95 |
|
|
colorDict[ "250" + "Pt030" ] = ROOT.kRed
|
96 |
|
|
colorDict[ "400" + "Pt030" ] = ROOT.kRed
|
97 |
|
|
colorDict[ "20" + "Pt030" + "Tau" ] = ROOT.kBlue + 4
|
98 |
|
|
colorDict[ "4060" + "Pt030" + "Tau" ] = ROOT.kBlue - 6
|
99 |
|
|
colorDict[ "250" + "Pt030" + "Tau" ] = ROOT.kBlue-9
|
100 |
|
|
colorDict[ "400" + "Pt030" + "Tau" ] = ROOT.kRed
|
101 |
|
|
colorDict[ "20" + "Pt3050" ] = ROOT.kBlue + 4
|
102 |
|
|
colorDict[ "4060" + "Pt3050" ] = ROOT.kBlue - 6
|
103 |
|
|
colorDict[ "250" + "Pt3050" ] = ROOT.kBlue-9
|
104 |
|
|
colorDict[ "400" + "Pt3050" ] = ROOT.kRed
|
105 |
|
|
colorDict[ "20" + "Pt3050" + "Tau" ] = ROOT.kBlue + 4
|
106 |
|
|
colorDict[ "4060" + "Pt3050" + "Tau" ] = ROOT.kBlue - 6
|
107 |
|
|
colorDict[ "250" + "Pt3050" + "Tau" ] = ROOT.kBlue-9
|
108 |
|
|
colorDict[ "400" + "Pt3050" + "Tau" ] = ROOT.kRed
|
109 |
|
|
colorDict[ "20" + "Pt50100" ] = ROOT.kBlue + 4
|
110 |
|
|
colorDict[ "4060" + "Pt50100" ] = ROOT.kBlue - 6
|
111 |
|
|
colorDict[ "250" + "Pt50100" ] = ROOT.kBlue-9
|
112 |
|
|
colorDict[ "400" + "Pt50100" ] = ROOT.kRed
|
113 |
|
|
colorDict[ "20" + "Pt50100" + "Tau" ] = ROOT.kBlue + 4
|
114 |
|
|
colorDict[ "4060" + "Pt50100" + "Tau" ] = ROOT.kBlue - 6
|
115 |
|
|
colorDict[ "250" + "Pt50100" + "Tau" ] = ROOT.kBlue-9
|
116 |
|
|
colorDict[ "400" + "Pt50100" + "Tau" ] = ROOT.kRed
|
117 |
|
|
colorDict[ "20" + "Pt100" ] = ROOT.kBlue + 4
|
118 |
|
|
colorDict[ "4060" + "Pt100" ] = ROOT.kBlue - 6
|
119 |
|
|
colorDict[ "250" + "Pt100" ] = ROOT.kBlue-9
|
120 |
|
|
colorDict[ "400" + "Pt100" ] = ROOT.kRed
|
121 |
|
|
colorDict[ "20" + "Pt100" + "Tau" ] = ROOT.kBlue + 4
|
122 |
|
|
colorDict[ "4060" + "Pt100" + "Tau" ] = ROOT.kBlue - 6
|
123 |
|
|
colorDict[ "250" + "Pt100" + "Tau" ] = ROOT.kBlue- 9
|
124 |
|
|
colorDict[ "400" + "Pt100" + "Tau" ] = ROOT.kRed
|
125 |
|
|
|
126 |
|
|
for hist in histDict.keys():
|
127 |
|
|
histDict[ hist ].SetDirectory( 0 )
|
128 |
|
|
histDict[ hist ].UseCurrentStyle()
|
129 |
|
|
integr = histDict[ hist ].Integral()
|
130 |
|
|
histDict[ hist ].Scale( 1./integr )
|
131 |
|
|
histDict[ hist ].SetLineWidth( 2 )
|
132 |
|
|
histDict[ hist ].SetLineColor( colorDict[ hist ] )
|
133 |
|
|
histDict[ hist ].SetTitle( title )
|
134 |
|
|
histDict[ hist ].SetYTitle( "Events" )
|
135 |
|
|
|
136 |
|
|
if not re.search( "Pt", hist ) and re.search( "GC", hist ) :
|
137 |
|
|
histDict[ hist ].GetXaxis().SetTitle( "P_{T}^{jet} [GeV]" )
|
138 |
|
|
else:
|
139 |
|
|
histDict[ hist ].GetXaxis().SetTitle( "N^{G} + N^{C}" )
|
140 |
|
|
pass
|
141 |
|
|
file.Close()
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
#---------------------------
|
146 |
|
|
|
147 |
|
|
cDict = {}
|
148 |
|
|
legDict = {}
|
149 |
|
|
|
150 |
|
|
cDict[ "GC" ] = ROOT.TCanvas( "GC" , "GC" )
|
151 |
|
|
cDict[ "GC" ].cd()
|
152 |
|
|
histDict[ "20" ].Draw( "hist" )
|
153 |
|
|
histDict[ "4060" ].Draw( "samehist" )
|
154 |
|
|
#histDict[ "250" ].Draw( "samehist" )
|
155 |
|
|
histDict[ "400" ].Draw( "samehist" )
|
156 |
|
|
legDict[ "GC" ] = Style.makeLegendSimple( [ histDict[ "20" ],
|
157 |
|
|
histDict[ "4060" ],
|
158 |
|
|
#histDict[ "250" ],
|
159 |
|
|
histDict[ "400" ]
|
160 |
|
|
],
|
161 |
|
|
[ "MHT<20 GeV",
|
162 |
|
|
"40 GeV <MHT<40 GeV",
|
163 |
|
|
"80 GeV <MHT<100 GeV",
|
164 |
|
|
#"MHT>250 GeV",
|
165 |
|
|
#"MHT>400 GeV"
|
166 |
|
|
],
|
167 |
|
|
position="umr" )
|
168 |
|
|
legDict[ "GC" ].Draw( "same" )
|
169 |
|
|
|
170 |
|
|
#--------------------------
|
171 |
|
|
|
172 |
|
|
cDict[ "GCPt" ] = ROOT.TCanvas( "GCPt" , "GCPt" )
|
173 |
|
|
cDict[ "GCPt" ].cd()
|
174 |
|
|
histDict[ "20" + "0CG" + "C" ] = histDict[ "20" + "0CG" ].Clone()
|
175 |
|
|
histDict[ "20" + "0CG" + "C" ].SetLineColor( ROOT.kRed + 4 )
|
176 |
|
|
histDict[ "20" + "13CG" + "C" ] = histDict[ "20" + "13CG" ].Clone()
|
177 |
|
|
histDict[ "20" + "13CG" + "C" ].SetLineColor( ROOT.kRed )
|
178 |
|
|
histDict[ "20" + "46CG" + "C" ] = histDict[ "20" + "46CG" ].Clone()
|
179 |
|
|
histDict[ "20" + "46CG" + "C" ].SetLineColor( ROOT.kViolet - 6 )
|
180 |
|
|
histDict[ "20" + "7CG" + "C" ] = histDict[ "20" + "7CG" ].Clone()
|
181 |
|
|
histDict[ "20" + "7CG" + "C" ].SetLineColor( ROOT.kViolet + 6 )
|
182 |
|
|
|
183 |
|
|
histDict[ "20" + "0CG" + "C" ].Draw( "hist" )
|
184 |
|
|
histDict[ "20" + "13CG" + "C" ].Draw( "samehist" )
|
185 |
|
|
histDict[ "20" + "46CG" + "C" ].Draw( "samehist" )
|
186 |
|
|
histDict[ "20" + "7CG" + "C" ].Draw( "samehist" )
|
187 |
|
|
|
188 |
|
|
legDict[ "GCPt" ] = Style.makeLegendSimple( [ histDict[ "20" + "0CG" + "C" ],
|
189 |
|
|
histDict[ "20" + "13CG" + "C" ],
|
190 |
|
|
histDict[ "20" + "46CG" + "C" ],
|
191 |
|
|
histDict[ "20" + "7CG" + "C" ] ],
|
192 |
|
|
[ "G+C = 0",
|
193 |
|
|
"0<G+C<4",
|
194 |
|
|
"3<G+C<7",
|
195 |
|
|
"6<G+C" ],
|
196 |
|
|
position="umr" )
|
197 |
|
|
legDict[ "GCPt" ].Draw( "same" )
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
#--------------------------
|
201 |
|
|
cDict[ "CGPtComp0CG" ] = ROOT.TCanvas( "CGPtComp0CG" , "CGPtComp0CG" )
|
202 |
|
|
cDict[ "CGPtComp0CG" ].cd()
|
203 |
|
|
|
204 |
|
|
histDict[ "20" + "0CG" ].Draw( "hist" )
|
205 |
|
|
histDict[ "4060" + "0CG" ].Draw( "samehist" )
|
206 |
|
|
#histDict[ "250" + "0CG" ].Draw( "samehist" )
|
207 |
|
|
histDict[ "400" + "0CG" ].Draw( "samehist" )
|
208 |
|
|
|
209 |
|
|
legDict[ "CGPtComp0CG" ] = Style.makeLegendSimple( [ histDict[ "20" + "0CG" ],
|
210 |
|
|
histDict[ "4060" + "0CG" ],
|
211 |
|
|
#histDict[ "250" + "0CG" ],
|
212 |
|
|
histDict[ "400" + "0CG" ]
|
213 |
|
|
],
|
214 |
|
|
[ "MHT<20 GeV",
|
215 |
|
|
"40 GeV <MHT<40 GeV",
|
216 |
|
|
"80 GeV <MHT<100 GeV",
|
217 |
|
|
#"MHT>250 GeV",
|
218 |
|
|
#"MHT>400 GeV"
|
219 |
|
|
],
|
220 |
|
|
position="umr" )
|
221 |
|
|
legDict[ "CGPtComp0CG" ].Draw( "same" )
|
222 |
|
|
|
223 |
|
|
#--------------------------
|
224 |
|
|
|
225 |
|
|
cDict[ "CGPtComp13CG" ] = ROOT.TCanvas( "CGPtComp13CG" , "CGPtComp13CG" )
|
226 |
|
|
cDict[ "CGPtComp13CG" ].cd()
|
227 |
|
|
|
228 |
|
|
histDict[ "20" + "13CG" ].Draw( "hist" )
|
229 |
|
|
histDict[ "4060" + "13CG" ].Draw( "samehist" )
|
230 |
|
|
#histDict[ "250" + "13CG" ].Draw( "samehist" )
|
231 |
|
|
histDict[ "400" + "13CG" ].Draw( "samehist" )
|
232 |
|
|
|
233 |
|
|
legDict[ "CGPtComp13CG" ] = Style.makeLegendSimple( [ histDict[ "20" + "13CG" ],
|
234 |
|
|
histDict[ "4060" + "13CG" ],
|
235 |
|
|
#histDict[ "250" + "13CG" ],
|
236 |
|
|
histDict[ "400" + "13CG" ]
|
237 |
|
|
],
|
238 |
|
|
[ "MHT<20 GeV",
|
239 |
|
|
"40 GeV <MHT<40 GeV",
|
240 |
|
|
"80 GeV <MHT<100 GeV",
|
241 |
|
|
#"MHT>250 GeV",
|
242 |
|
|
#"MHT>400 GeV"
|
243 |
|
|
],
|
244 |
|
|
position="umr" )
|
245 |
|
|
legDict[ "CGPtComp13CG" ].Draw( "same" )
|
246 |
|
|
|
247 |
|
|
#--------------------------
|
248 |
|
|
|
249 |
|
|
cDict[ "CGPtComp46CG" ] = ROOT.TCanvas( "CGPtComp46CG" , "CGPtComp46CG" )
|
250 |
|
|
cDict[ "CGPtComp46CG" ].cd()
|
251 |
|
|
|
252 |
|
|
histDict[ "20" + "46CG" ].Draw( "hist" )
|
253 |
|
|
histDict[ "4060" + "46CG" ].Draw( "samehist" )
|
254 |
|
|
#histDict[ "250" + "46CG" ].Draw( "samehist" )
|
255 |
|
|
histDict[ "400" + "46CG" ].Draw( "samehist" )
|
256 |
|
|
|
257 |
|
|
legDict[ "CGPtComp46CG" ] = Style.makeLegendSimple( [ histDict[ "20" + "46CG" ],
|
258 |
|
|
histDict[ "4060" + "46CG" ],
|
259 |
|
|
#histDict[ "250" + "46CG" ],
|
260 |
|
|
histDict[ "400" + "46CG" ]
|
261 |
|
|
],
|
262 |
|
|
[ "MHT<20 GeV",
|
263 |
|
|
"40 GeV <MHT<40 GeV",
|
264 |
|
|
"80 GeV <MHT<100 GeV",
|
265 |
|
|
#"MHT>250 GeV",
|
266 |
|
|
#"MHT>400 GeV"
|
267 |
|
|
],
|
268 |
|
|
position="umr" )
|
269 |
|
|
legDict[ "CGPtComp46CG" ].Draw( "same" )
|
270 |
|
|
|
271 |
|
|
#--------------------------
|
272 |
|
|
|
273 |
|
|
cDict[ "CGPtComp7CG" ] = ROOT.TCanvas( "CGPtComp7CG" , "CGPtComp7CG" )
|
274 |
|
|
cDict[ "CGPtComp7CG" ].cd()
|
275 |
|
|
|
276 |
|
|
histDict[ "20" + "7CG" ].Draw( "hist" )
|
277 |
|
|
histDict[ "4060" + "7CG" ].Draw( "samehist" )
|
278 |
|
|
#histDict[ "250" + "7CG" ].Draw( "samehist" )
|
279 |
|
|
histDict[ "400" + "7CG" ].Draw( "samehist" )
|
280 |
|
|
|
281 |
|
|
legDict[ "CGPtComp7CG" ] = Style.makeLegendSimple( [ histDict[ "20" + "7CG" ],
|
282 |
|
|
histDict[ "4060" + "7CG" ],
|
283 |
|
|
#histDict[ "250" + "7CG" ],
|
284 |
|
|
histDict[ "400" + "7CG" ]
|
285 |
|
|
],
|
286 |
|
|
[ "MHT<20 GeV",
|
287 |
|
|
"40 GeV <MHT<40 GeV",
|
288 |
|
|
"80 GeV <MHT<100 GeV",
|
289 |
|
|
#"MHT>250 GeV",
|
290 |
|
|
#"MHT>400 GeV"
|
291 |
|
|
],
|
292 |
|
|
position="umr" )
|
293 |
|
|
legDict[ "CGPtComp7CG" ].Draw( "same" )
|
294 |
|
|
|
295 |
|
|
#--------------------------
|
296 |
|
|
|
297 |
|
|
cDict[ "Pt" ] = ROOT.TCanvas( "Pt" , "Pt" )
|
298 |
|
|
cDict[ "Pt" ].cd()
|
299 |
|
|
histDict[ "20" + "Pt030" + "C" ] = histDict[ "20" + "Pt030" ].Clone()
|
300 |
|
|
histDict[ "20" + "Pt030" + "C" ].SetLineColor( ROOT.kRed + 4 )
|
301 |
|
|
histDict[ "20" + "Pt3050" + "C" ] = histDict[ "20" + "Pt3050" ].Clone()
|
302 |
|
|
histDict[ "20" + "Pt3050" + "C" ].SetLineColor( ROOT.kRed )
|
303 |
|
|
histDict[ "20" + "Pt50100" + "C" ] = histDict[ "20" + "Pt50100" ].Clone()
|
304 |
|
|
histDict[ "20" + "Pt50100" + "C" ].SetLineColor( ROOT.kViolet - 6 )
|
305 |
|
|
histDict[ "20" + "Pt100" + "C" ] = histDict[ "20" + "Pt100" ].Clone()
|
306 |
|
|
histDict[ "20" + "Pt100" + "C" ].SetLineColor( ROOT.kViolet + 6 )
|
307 |
|
|
histDict[ "20" + "Pt030" + "C" ].SetTitle( title + ", H_{T}>350 GeV, #slashH_{T}<20 GeV" )
|
308 |
|
|
|
309 |
|
|
histDict[ "20" + "Pt030" + "C" ].Draw( "hist" )
|
310 |
|
|
histDict[ "20" + "Pt3050" + "C" ].Draw( "samehist" )
|
311 |
|
|
histDict[ "20" + "Pt50100" + "C" ].Draw( "samehist" )
|
312 |
|
|
histDict[ "20" + "Pt100" + "C" ].Draw( "samehist" )
|
313 |
|
|
|
314 |
|
|
legDict[ "Pt" ] = Style.makeLegendSimple( [ histDict[ "20" + "Pt030" + "C" ],
|
315 |
|
|
histDict[ "20" + "Pt3050" + "C" ],
|
316 |
|
|
histDict[ "20" + "Pt50100" + "C" ],
|
317 |
|
|
histDict[ "20" + "Pt100" + "C" ] ],
|
318 |
|
|
[ "P_{T}<30 GeV",
|
319 |
|
|
"30 GeV<P_{T}<50 GeV",
|
320 |
|
|
"50 GeV<P_{T}<100 GeV",
|
321 |
|
|
"100 GeV<P_{T}"
|
322 |
|
|
],
|
323 |
|
|
position="umr" )
|
324 |
|
|
legDict[ "Pt" ].Draw( "same" )
|
325 |
|
|
|
326 |
|
|
#--------------------------
|
327 |
|
|
|
328 |
|
|
cDict[ "PtComp030" ] = ROOT.TCanvas( "PtComp030" , "PtComp030" )
|
329 |
|
|
cDict[ "PtComp030" ].cd()
|
330 |
|
|
histDict[ "20" + "Pt030" ].SetXTitle( "N^{G} + N^{C} (P_{T}^{jet}<30 GeV)" )
|
331 |
|
|
|
332 |
|
|
histDict[ "20" + "Pt030" ].Draw( "hist" )
|
333 |
|
|
histDict[ "4060" + "Pt030" ].Draw( "samehist" )
|
334 |
|
|
#histDict[ "250" + "Pt030" ].Draw( "samehist" )
|
335 |
|
|
histDict[ "400" + "Pt030" ].Draw( "samehist" )
|
336 |
|
|
|
337 |
|
|
legDict[ "PtComp030" ] = Style.makeLegendSimple( [ histDict[ "20" + "Pt030" ],
|
338 |
|
|
histDict[ "4060" + "Pt030" ],
|
339 |
|
|
#histDict[ "250" + "Pt030" ],
|
340 |
|
|
histDict[ "400" + "Pt030" ]
|
341 |
|
|
],
|
342 |
|
|
[ "MHT<20 GeV",
|
343 |
|
|
"40 GeV <MHT<40 GeV",
|
344 |
|
|
"80 GeV <MHT<100 GeV",
|
345 |
|
|
"MHT>250 GeV",
|
346 |
|
|
"MHT>400 GeV"
|
347 |
|
|
],
|
348 |
|
|
position="umr" )
|
349 |
|
|
legDict[ "PtComp030" ].Draw( "same" )
|
350 |
|
|
|
351 |
|
|
#--------------------------
|
352 |
|
|
|
353 |
|
|
cDict[ "PtComp3050" ] = ROOT.TCanvas( "PtComp3050" , "PtComp3050" )
|
354 |
|
|
cDict[ "PtComp3050" ].cd()
|
355 |
|
|
histDict[ "20" + "Pt3050" ].SetXTitle( "N^{G} + N^{C} (30 GeV<P_{T}^{jet}<50 GeV)" )
|
356 |
|
|
|
357 |
|
|
histDict[ "20" + "Pt3050" ].Draw( "hist" )
|
358 |
|
|
histDict[ "4060" + "Pt3050" ].Draw( "samehist" )
|
359 |
|
|
#histDict[ "250" + "0CG" ].Draw( "samehist" )
|
360 |
|
|
histDict[ "400" + "Pt3050" ].Draw( "samehist" )
|
361 |
|
|
|
362 |
|
|
legDict[ "PtComp3050" ] = Style.makeLegendSimple( [ histDict[ "20" + "Pt3050" ],
|
363 |
|
|
histDict[ "4060" + "Pt3050" ],
|
364 |
|
|
#histDict[ "250" + "Pt3050" ],
|
365 |
|
|
histDict[ "400" + "Pt3050" ]
|
366 |
|
|
],
|
367 |
|
|
[ "MHT<20 GeV",
|
368 |
|
|
"40 GeV <MHT<40 GeV",
|
369 |
|
|
"80 GeV <MHT<100 GeV",
|
370 |
|
|
#"MHT>250 GeV",
|
371 |
|
|
#"MHT>400 GeV"
|
372 |
|
|
],
|
373 |
|
|
position="umr" )
|
374 |
|
|
legDict[ "PtComp3050" ].Draw( "same" )
|
375 |
|
|
|
376 |
|
|
#--------------------------
|
377 |
|
|
|
378 |
|
|
cDict[ "PtComp50100" ] = ROOT.TCanvas( "PtComp50100" , "PtComp50100" )
|
379 |
|
|
cDict[ "PtComp50100" ].cd()
|
380 |
|
|
histDict[ "20" + "Pt50100" ].SetXTitle( "N^{G} + N^{C} (50 GeV<P_{T}^{jet}<100 GeV)" )
|
381 |
|
|
|
382 |
|
|
histDict[ "20" + "Pt50100" ].Draw( "hist" )
|
383 |
|
|
histDict[ "4060" + "Pt50100" ].Draw( "samehist" )
|
384 |
|
|
#histDict[ "250" + "0CG" ].Draw( "samehist" )
|
385 |
|
|
histDict[ "400" + "Pt50100" ].Draw( "samehist" )
|
386 |
|
|
|
387 |
|
|
legDict[ "PtComp50100" ] = Style.makeLegendSimple( [ histDict[ "20" + "Pt50100" ],
|
388 |
|
|
histDict[ "4060" + "Pt50100" ],
|
389 |
|
|
#histDict[ "250" + "Pt50100" ],
|
390 |
|
|
histDict[ "400" + "Pt50100" ]
|
391 |
|
|
],
|
392 |
|
|
[ "MHT<20 GeV",
|
393 |
|
|
"40 GeV <MHT<40 GeV",
|
394 |
|
|
"80 GeV <MHT<100 GeV",
|
395 |
|
|
#"MHT>250 GeV",
|
396 |
|
|
#"MHT>400 GeV"
|
397 |
|
|
],
|
398 |
|
|
position="umr" )
|
399 |
|
|
legDict[ "PtComp50100" ].Draw( "same" )
|
400 |
|
|
|
401 |
|
|
#--------------------------
|
402 |
|
|
|
403 |
|
|
cDict[ "PtComp100" ] = ROOT.TCanvas( "PtComp100" , "PtComp100" )
|
404 |
|
|
cDict[ "PtComp100" ].cd()
|
405 |
|
|
histDict[ "20" + "Pt100" ].SetXTitle( "N^{G} + N^{C} (P_{T}^{jet}>100 GeV)" )
|
406 |
|
|
|
407 |
|
|
histDict[ "20" + "Pt100" ].Draw( "hist" )
|
408 |
|
|
histDict[ "4060" + "Pt100" ].Draw( "samehist" )
|
409 |
|
|
#histDict[ "250" + "0CG" ].Draw( "samehist" )
|
410 |
|
|
histDict[ "400" + "Pt100" ].Draw( "samehist" )
|
411 |
|
|
|
412 |
|
|
legDict[ "PtComp100" ] = Style.makeLegendSimple( [ histDict[ "20" + "Pt100" ],
|
413 |
|
|
histDict[ "4060" + "Pt100" ],
|
414 |
|
|
#histDict[ "250" + "Pt100" ],
|
415 |
|
|
histDict[ "400" + "Pt100" ]
|
416 |
|
|
],
|
417 |
|
|
[ "MHT<20 GeV",
|
418 |
|
|
"40 GeV <MHT<40 GeV",
|
419 |
|
|
"80 GeV <MHT<100 GeV",
|
420 |
|
|
#"MHT>250 GeV",
|
421 |
|
|
#"MHT>400 GeV"
|
422 |
|
|
],
|
423 |
|
|
position="umr" )
|
424 |
|
|
legDict[ "PtComp100" ].Draw( "same" )
|
425 |
|
|
|
426 |
|
|
|
427 |
|
|
Def.DontQuit()
|