ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/nowaf/RootFilesInUse/MakeLimitPlot.py
Revision: 1.1
Committed: Tue Mar 20 13:12:08 2012 UTC (13 years, 1 month ago) by nowak
Content type: text/x-python
Branch point for: rootFilesInUse, MAIN
Log Message:
Initial revision

File Contents

# Content
1 import ROOT
2 import sys, tarfile, 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 ScanLimit_cff as SL
7 import ScanStandard_cff as SS
8 import styles as Style
9
10 if __name__ == "__main__":
11
12 Def.SetGlobalStyles( withTitle=True )
13 ROOT.gStyle.SetPadRightMargin( 0.11 )
14 ROOT.gStyle.SetLabelSize( 0.03,"XYZ" )
15 #lumi = 4.533
16 lumi = 4.869
17 xTitle = "m_{0} [GeV]"
18 yTitle = "m_{1/2} [GeV]"
19
20 name = "plots/Limit/cMSSM_Limits"
21 save = False
22
23 tarDir = "/afs/naf.desy.de/user/n/nowaf/UserCode/nowaf/PythonScripts/2011/VersionII/LimitOutput/"
24 #tarName = "2012-01-05-15-03-Datacards.tar"
25 #tarName = "2012-01-23-10-22-Datacards.tar"
26 #tarName = "2012-01-23-12-13-Datacards.tar"
27 #tarName = "2012-01-28-15-52-Datacards.tar"
28 #tarName = "2012-02-06-08-30-Datacards.tar"
29 #tarName = "2012-02-07-08-10-Datacards.tar"
30 #tarName = "2012-02-15-10-12-Datacards.tar"
31 tarName = "2012-02-23-11-39-Datacards.tar"
32
33 #### read in the limit result tar file
34 points = SL.readInLimits( tarDir, tarName )
35
36 #for p in points:
37 # print p.m0
38
39
40 ### interpolate missing points
41 points = SL.interpolatePoints( points )
42
43 ### now create first plots ( cMSSM )
44 filename = "/scratch/hh/lustre/cms/user/nowaf/2011Data/VersionII/Plots/ScanTanBeta40new_xi/ScanTanBet40new_xi.root"
45 file = ROOT.TFile.Open( filename )
46 histDict = SL.makeStandardPlots( points, file, lumi )
47
48 ### get the contours from the obs/exp limit
49 SL.getContours( histDict )
50 SL.getContours( histDict, hist="ExpEval" )
51 SL.getContours( histDict, hist="ExpM1Eval" )
52 SL.getContours( histDict, hist="ExpP1Eval" )
53 SL.getContours( histDict, hist="ExpTheoUpEval" )
54 SL.getContours( histDict, hist="ExpTheoDnEval" )
55 SL.getContours( histDict, hist="ObsTheoUpEval" )
56 SL.getContours( histDict, hist="ObsTheoDnEval" )
57 SL.getContours( histDict, hist="ObsSmoothEval" )
58 SL.getContours( histDict, hist="ExpSmoothEval" )
59 SL.getContours( histDict, hist="ExpM1SmoothEval" )
60 SL.getContours( histDict, hist="ExpP1SmoothEval" )
61 SL.getContours( histDict, hist="ExpTheoUpSmoothEval" )
62 SL.getContours( histDict, hist="ExpTheoDnSmoothEval" )
63 SL.getContours( histDict, hist="ObsTheoUpSmoothEval" )
64 SL.getContours( histDict, hist="ObsTheoDnSmoothEval" )
65
66 ### get the full contours of Obs and Exp
67 ymin = 260
68 SL.getFullContour( histDict, hist="ObsEval", ymin=ymin )
69 SL.getFullContour( histDict, hist="ExpEval", color=ROOT.kBlue+4, ymin=ymin )
70 SL.getFullContour( histDict, hist="ExpM1Eval", ymax=540, ymin=ymin )
71 SL.getFullContour( histDict, hist="ExpP1Eval", ymax=500, ymin=ymin )
72 SL.getFullContour( histDict, hist="ObsTheoUpEval", ymax=540, ymin=ymin )
73 SL.getFullContour( histDict, hist="ObsTheoDnEval", ymax=500, ymin=ymin )
74 SL.getFullContour( histDict, hist="ExpTheoUpEval", ymax=540, ymin=ymin )
75 SL.getFullContour( histDict, hist="ExpTheoDnEval", ymax=500, ymin=ymin )
76 SL.getFullContour( histDict, hist="ObsSmoothEval", ymin=ymin )
77 SL.getFullContour( histDict, hist="ExpSmoothEval", ymin=ymin )
78 SL.getFullContour( histDict, hist="ExpM1SmoothEval", ymax=540, ymin=ymin )
79 SL.getFullContour( histDict, hist="ExpP1SmoothEval", ymax=500, ymin=ymin )
80 SL.getFullContour( histDict, hist="ExpTheoUpSmoothEval", ymax=500, ymin=ymin )
81 SL.getFullContour( histDict, hist="ExpTheoDnSmoothEval", ymax=540, ymin=ymin )
82 SL.getFullContour( histDict, hist="ObsTheoUpSmoothEval", ymax=500, ymin=ymin )
83 SL.getFullContour( histDict, hist="ObsTheoDnSmoothEval", ymax=540, ymin=ymin )
84
85 ### get the snippet contours of Obs and Exp
86 SL.getContourSnippet( histDict, hist="ObsEval", ymax=250 )
87 SL.getContourSnippet( histDict, hist="ExpEval", color=ROOT.kBlue+4, ymax=250 )
88 SL.getContourSnippet( histDict, hist="ExpM1Eval", xmax=630 )
89 SL.getContourSnippet( histDict, hist="ExpP1Eval" )
90
91 ### get nice plot with uncertainty band
92 SL.getFullContoursWithBand( histDict )
93 SL.getSnippetContoursWithBand( histDict )
94
95 title = "CMS Simulation, L = " + str( round( lumi,1 ) ) + " fb^{-1}, #sqrt{s} = 7 TeV"
96 title2 = "CMS Preliminary, L = " + str( round( lumi,1 ) ) + " fb^{-1}, #sqrt{s} = 7 TeV"
97
98 #title = "L = " + str( round( lumi,1 ) ) + " fb^{-1}, #sqrt{s} = 7 TeV"
99 #title2 = "L = " + str( round( lumi,1 ) ) + " fb^{-1}, #sqrt{s} = 7 TeV"
100
101 cDict = {}
102
103 col = ROOT.TColor.GetColor( '#C80064' )
104
105 ######## full version
106 histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
107 histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
108 histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 7 )
109 histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 7 )
110 histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( col )
111 histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( col )
112 histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 2 )
113 histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 2 )
114 histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
115 histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
116 histDict[ "FullBandObs" ].SetLineColor( col )
117 histDict[ "FullBandExp" ].SetLineColor( ROOT.kAzure - 2 )
118 histDict[ "FullBand" ].SetLineColor( ROOT.kAzure - 9 )
119 histDict[ "FullBand" ].SetFillColor( ROOT.kAzure - 9 )
120 #histDict[ "contExpTheoUpEval" ].Draw( "samel" )
121 #histDict[ "contExpTheoDnEval" ].Draw( "samel" )
122 #histDict[ "contObsTheoUpEval" ].Draw( "samel" )
123 #histDict[ "contObsTheoDnEval" ].Draw( "samel" )
124 hListBand = [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "FullBand" ], histDict[ "contExpTheoUpSmoothEval" ], histDict[ "contObsTheoUpSmoothEval" ] ]
125 SS.drawStandardPlot( histDict, cDict, [ "FullBand", "FullBandExp", "FullBandObs", "contExpTheoUpSmoothEval", "contExpTheoDnSmoothEval", "contObsTheoUpSmoothEval", "contObsTheoDnSmoothEval" ],
126 [ "samef", "samel", "samel", "samel", "samel", "samel", "samel" ],
127 [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "FullBand" ] ],
128 [ "Observed Limit", "Expected Limit", "Uncertainty" ],
129 title=title2, name="FullBand" )
130 #histDict[ "FullBand" ].Draw( "samef" )
131 #histDict[ "FullBandObs" ].Draw( "samel" )
132 #histDict[ "FullBandExp" ].Draw( "samel" )
133 #histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kRed )
134 #histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kRed )
135 #histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 1 )
136 #histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 1 )
137 #histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( 1 )
138 #histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( 1 )
139 #histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 1 )
140 #histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 1 )
141 #histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
142 #histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
143 #histDict[ "contExpTheoUpSmoothEval" ].Draw( "samel" )
144 #histDict[ "contExpTheoDnSmoothEval" ].Draw( "samel" )
145 #histDict[ "contObsTheoUpSmoothEval" ].Draw( "samel" )
146 #histDict[ "contObsTheoDnSmoothEval" ].Draw( "samel" )
147 #histDict[ "ts" ].Draw( "BOX same" )
148 #histDict[ "lsl" ].Draw( "BOX same" )
149 legFull = Style.makeLegendSimple( hListBand,
150 [ "Obs Limit", "Exp Limit", "Exp #pm 1#sigma", "Exp #pm 1#sigma (theo.)", "Obs #pm 1#sigma (theo.)" ],
151 position = "mmr", textSize=0.022,
152 statusDict={"Exp #pm 1#sigma":"BG"} )
153 legFull.SetLineWidth( 1 )
154 legFull.SetLineColor( 1 )
155 legFull.SetBorderSize( 1 )
156 legFull.Draw()
157 legtest= histDict[ "expLeg" ].Clone()
158 legtest.Draw()
159 text1 = histDict[ "text1" ].Clone()
160 text2 = histDict[ "text2" ].Clone()
161 text1.Draw()
162 text2.Draw()
163
164 ## cDict[ histDict[ "Obs" ].GetName() ] = ROOT.TCanvas( histDict[ "Obs" ].GetName() + "Canv", histDict[ "Obs" ].GetName() + "Canv" )
165 ## cDict[ histDict[ "Obs" ].GetName() ].cd()
166 ## #histDict[ "tshist" ].Draw( "BOX" )
167 ## #histDict[ "lsl" ].Draw( "BOX same" )
168 ## #histDict[ "hist" + "" ].Draw( "axis" )
169 ## #histDict[ "ts" ].Draw( "axissame" )
170 ## ##legFull.Draw()
171 ## #legtest.Draw()
172 ## #histDict[ "cont" + "lsl" ].Draw( "l" )
173 ## histDict[ "lslhist" ].Draw( "BOX" )
174
175 ######## reduced version
176 histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
177 histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
178 histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 7 )
179 histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 7 )
180 histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( col )
181 histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( col )
182 histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 2 )
183 histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 2 )
184 histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
185 histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
186 histDict[ "FullBandObs" ].SetLineColor( col )
187 histDict[ "FullBandExp" ].SetLineColor( ROOT.kAzure - 2 )
188 histDict[ "FullBand" ].SetLineColor( ROOT.kAzure - 9 )
189 histDict[ "FullBand" ].SetFillColor( ROOT.kAzure - 9 )
190 #histDict[ "contExpTheoUpEval" ].Draw( "samel" )
191 #histDict[ "contExpTheoDnEval" ].Draw( "samel" )
192 #histDict[ "contObsTheoUpEval" ].Draw( "samel" )
193 #histDict[ "contObsTheoDnEval" ].Draw( "samel" )
194 hListBand = [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "FullBand" ], histDict[ "contObsTheoUpSmoothEval" ] ]
195 SS.drawStandardPlot( histDict, cDict, [ "FullBand", "FullBandExp", "FullBandObs", "contObsTheoUpSmoothEval", "contObsTheoDnSmoothEval" ],
196 [ "samef", "samel", "samel", "samel", "samel", "samel", "samel" ],
197 [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "FullBand" ] ],
198 [ "Observed Limit", "Expected Limit", "Uncertainty" ],
199 title=title2, name="FullBandReduced" )
200 #histDict[ "FullBand" ].Draw( "samef" )
201 #histDict[ "FullBandObs" ].Draw( "samel" )
202 #histDict[ "FullBandExp" ].Draw( "samel" )
203 #histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kRed )
204 #histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kRed )
205 #histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 1 )
206 #histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 1 )
207 #histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( 1 )
208 #histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( 1 )
209 #histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 1 )
210 #histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 1 )
211 #histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
212 #histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
213 #histDict[ "contExpTheoUpSmoothEval" ].Draw( "samel" )
214 #histDict[ "contExpTheoDnSmoothEval" ].Draw( "samel" )
215 #histDict[ "contObsTheoUpSmoothEval" ].Draw( "samel" )
216 #histDict[ "contObsTheoDnSmoothEval" ].Draw( "samel" )
217 legRed = Style.makeLegendSimple( hListBand,
218 [ "Obs Limit", "Exp Limit", "Exp #pm 1#sigma", "Obs #pm 1#sigma (theo.)" ],
219 position = "mmr", textSize=0.022,
220 statusDict={"Exp #pm 1#sigma":"BG"} )
221 legRed.SetLineWidth( 1 )
222 legRed.SetLineColor( 1 )
223 legRed.SetBorderSize( 1 )
224 legRed.Draw()
225 legtest1= histDict[ "expLeg" ].Clone()
226 legtest1.Draw()
227 text3 = histDict[ "text1" ].Clone()
228 text4 = histDict[ "text2" ].Clone()
229 text3.Draw()
230 text4.Draw()
231
232
233 ######## lined version
234 histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
235 histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
236 histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 7 )
237 histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 7 )
238 histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( col )
239 histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( col )
240 histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 2 )
241 histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 2 )
242 histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
243 histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
244 histDict[ "FullBandObs" ].SetLineColor( col )
245 histDict[ "FullBandExp" ].SetLineColor( ROOT.kAzure - 2 )
246 histDict[ "FullBand" ].SetLineColor( ROOT.kAzure - 9 )
247 histDict[ "FullBand" ].SetFillColor( ROOT.kAzure - 9 )
248 histDict[ "contExpM1SmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
249 histDict[ "contExpP1SmoothEval" ].SetLineColor( ROOT.kAzure - 2 )
250 histDict[ "contExpM1SmoothEval" ].SetLineWidth( 2 )
251 histDict[ "contExpP1SmoothEval" ].SetLineWidth( 2 )
252 histDict[ "contExpM1SmoothEval" ].SetLineStyle( 3 )
253 histDict[ "contExpP1SmoothEval" ].SetLineStyle( 3 )
254 #histDict[ "contExpTheoUpEval" ].Draw( "samel" )
255 #histDict[ "contExpTheoDnEval" ].Draw( "samel" )
256 #histDict[ "contObsTheoUpEval" ].Draw( "samel" )
257 #histDict[ "contObsTheoDnEval" ].Draw( "samel" )
258 hListBand = [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "contExpM1SmoothEval" ], histDict[ "contExpTheoUpSmoothEval" ], histDict[ "contObsTheoUpSmoothEval" ] ]
259 SS.drawStandardPlot( histDict, cDict, [ "contExpM1SmoothEval", "contExpP1SmoothEval", "FullBandExp", "FullBandObs", "contExpTheoUpSmoothEval", "contExpTheoDnSmoothEval", "contObsTheoUpSmoothEval", "contObsTheoDnSmoothEval" ],
260 [ "samel","samel", "samel", "samel", "samel", "samel", "samel", "samel" ],
261 [ histDict[ "FullBandObs" ], histDict[ "FullBandExp" ], histDict[ "FullBand" ] ],
262 [ "Observed Limit", "Expected Limit", "Uncertainty" ],
263 title=title2, name="FullLined" )
264 #histDict[ "FullBand" ].Draw( "samef" )
265 #histDict[ "FullBandObs" ].Draw( "samel" )
266 #histDict[ "FullBandExp" ].Draw( "samel" )
267 #histDict[ "contExpTheoUpSmoothEval" ].SetLineColor( ROOT.kRed )
268 #histDict[ "contExpTheoDnSmoothEval" ].SetLineColor( ROOT.kRed )
269 #histDict[ "contExpTheoUpSmoothEval" ].SetLineStyle( 1 )
270 #histDict[ "contExpTheoDnSmoothEval" ].SetLineStyle( 1 )
271 #histDict[ "contObsTheoUpSmoothEval" ].SetLineColor( 1 )
272 #histDict[ "contObsTheoDnSmoothEval" ].SetLineColor( 1 )
273 #histDict[ "contObsTheoUpSmoothEval" ].SetLineWidth( 1 )
274 #histDict[ "contObsTheoDnSmoothEval" ].SetLineWidth( 1 )
275 #histDict[ "contObsTheoUpSmoothEval" ].SetLineStyle( 7 )
276 #histDict[ "contObsTheoDnSmoothEval" ].SetLineStyle( 7 )
277 #histDict[ "contExpTheoUpSmoothEval" ].Draw( "samel" )
278 #histDict[ "contExpTheoDnSmoothEval" ].Draw( "samel" )
279 #histDict[ "contObsTheoUpSmoothEval" ].Draw( "samel" )
280 #histDict[ "contObsTheoDnSmoothEval" ].Draw( "samel" )
281 #histDict[ "ts" ].Draw( "BOX same" )
282 #histDict[ "lsl" ].Draw( "BOX same" )
283 legLined = Style.makeLegendSimple( hListBand,
284 [ "Obs Limit", "Exp Limit", "Exp #pm 1#sigma", "Exp #pm 1#sigma (theo.)", "Obs #pm 1#sigma (theo.)" ],
285 position = "mmr", textSize=0.022,
286 statusDict={} )
287 legLined.SetLineWidth( 1 )
288 legLined.SetLineColor( 1 )
289 legLined.SetBorderSize( 1 )
290 legLined.Draw()
291 legtest3= histDict[ "expLeg" ].Clone()
292 legtest3.Draw()
293 text5 = histDict[ "text1" ].Clone()
294 text6 = histDict[ "text2" ].Clone()
295 text5.Draw()
296 text6.Draw()
297
298
299
300
301 ## Style.setHistStyle( histDict[ "Obs" ],
302 ## xTitle=xTitle,
303 ## yTitle=yTitle,
304 ## title=title )
305 ## histDict[ "Obs" ].GetXaxis().SetRangeUser( 210,810 )
306 ## histDict[ "Obs" ].GetYaxis().SetRangeUser( 90,810 )
307 ## histDict[ "Obs" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
308 ## cDict[ histDict[ "Obs" ].GetName() ] = ROOT.TCanvas( histDict[ "Obs" ].GetName() + "Canv", histDict[ "Obs" ].GetName() + "Canv" )
309 ## cDict[ histDict[ "Obs" ].GetName() ].cd()
310 ## histDict[ "Obs" ].Draw( "COLZ" )
311 ## ##histDict[ "Inacc" ].Draw( "sameBOX" )
312 ## ROOT.gPad.SetLogz()
313
314 ## Style.setHistStyle( histDict[ "ObsFullSmooth" ],
315 ## xTitle=xTitle,
316 ## yTitle=yTitle,
317 ## title=title )
318 ## histDict[ "ObsFullSmooth" ].GetXaxis().SetRangeUser( 210,810 )
319 ## histDict[ "ObsFullSmooth" ].GetYaxis().SetRangeUser( 90,810 )
320 ## histDict[ "ObsFullSmooth" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
321 ## cDict[ histDict[ "ObsFullSmooth" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsFullSmooth" ].GetName() + "Canv", histDict[ "ObsFullSmooth" ].GetName() + "Canv" )
322 ## cDict[ histDict[ "ObsFullSmooth" ].GetName() ].cd()
323 ## histDict[ "ObsFullSmooth" ].Draw( "COLZ" )
324 ## ##histDict[ "Inacc" ].Draw( "sameBOX" )
325 ## ROOT.gPad.SetLogz()
326
327 ## Style.setHistStyle( histDict[ "ObsSmooth" ],
328 ## xTitle=xTitle,
329 ## yTitle=yTitle,
330 ## title=title )
331 ## histDict[ "ObsSmooth" ].GetXaxis().SetRangeUser( 210,810 )
332 ## histDict[ "ObsSmooth" ].GetYaxis().SetRangeUser( 90,810 )
333 ## histDict[ "ObsSmooth" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
334 ## cDict[ histDict[ "ObsSmooth" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsSmooth" ].GetName() + "Canv", histDict[ "ObsSmooth" ].GetName() + "Canv" )
335 ## cDict[ histDict[ "ObsSmooth" ].GetName() ].cd()
336 ## histDict[ "ObsSmooth" ].Draw( "COLZ" )
337 ## ##histDict[ "Inacc" ].Draw( "sameBOX" )
338 ## ROOT.gPad.SetLogz()
339
340 ## Style.setHistStyle( histDict[ "TheoRel" ],
341 ## xTitle=xTitle,
342 ## yTitle=yTitle,
343 ## title=title )
344 ## #histDict[ "TheoRel" ].GetXaxis().SetRangeUser( 210,810 )
345 ## #histDict[ "TheoRel" ].GetYaxis().SetRangeUser( 90,810 )
346 ## histDict[ "TheoRel" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
347 ## cDict[ histDict[ "TheoRel" ].GetName() ] = ROOT.TCanvas( histDict[ "TheoRel" ].GetName() + "Canv", histDict[ "TheoRel" ].GetName() + "Canv" )
348 ## cDict[ histDict[ "TheoRel" ].GetName() ].cd()
349 ## histDict[ "TheoRel" ].Draw( "COLZ" )
350 ## ##histDict[ "Inacc" ].Draw( "sameBOX" )
351 ## ROOT.gPad.SetLogz()
352
353 ## Style.setHistStyle( histDict[ "ObsSmoothEval" ],
354 ## xTitle=xTitle,
355 ## yTitle=yTitle,
356 ## title=title )
357 ## histDict[ "ObsSmoothEval" ].GetXaxis().SetRangeUser( 210,810 )
358 ## histDict[ "ObsSmoothEval" ].GetYaxis().SetRangeUser( 90,810 )
359 ## cDict[ histDict[ "ObsSmoothEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsSmoothEval" ].GetName() + "Canv", histDict[ "ObsSmoothEval" ].GetName() + "Canv" )
360 ## cDict[ histDict[ "ObsSmoothEval" ].GetName() ].cd()
361 ## histDict[ "ObsSmoothEval" ].Draw( "COLZ" )
362
363 ## Style.setHistStyle( histDict[ "ObsEval" ],
364 ## xTitle=xTitle,
365 ## yTitle=yTitle,
366 ## title=title )
367 ## histDict[ "ObsEval" ].GetXaxis().SetRangeUser( 210,810 )
368 ## histDict[ "ObsEval" ].GetYaxis().SetRangeUser( 90,810 )
369 ## cDict[ histDict[ "ObsEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsEval" ].GetName() + "Canv", histDict[ "ObsEval" ].GetName() + "Canv" )
370 ## cDict[ histDict[ "ObsEval" ].GetName() ].cd()
371 ## histDict[ "ObsEval" ].Draw( "COLZ" )
372
373 ## ## plot = histDict[ "ObsEval" ].Clone()
374 ## ## plot.SetContour( 2 )
375 ## ## cDict[ "cont" ] = ROOT.TCanvas( "Cont", "Cont" )
376 ## ## cDict[ "cont" ].cd()
377 ## ## plot.Draw( "CONT Z List" )
378
379 ## Style.setHistStyle( histDict[ "Exp" ],
380 ## xTitle=xTitle,
381 ## yTitle=yTitle,
382 ## title=title )
383 ## histDict[ "Exp" ].GetXaxis().SetRangeUser( 210,810 )
384 ## histDict[ "Exp" ].GetYaxis().SetRangeUser( 90,810 )
385 ## histDict[ "Exp" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
386 ## cDict[ histDict[ "Exp" ].GetName() ] = ROOT.TCanvas( histDict[ "Exp" ].GetName() + "Canv", histDict[ "Exp" ].GetName() + "Canv" )
387 ## cDict[ histDict[ "Exp" ].GetName() ].cd()
388 ## histDict[ "Exp" ].Draw( "COLZ" )
389 ## ROOT.gPad.SetLogz()
390
391 ## Style.setHistStyle( histDict[ "ExpEval" ],
392 ## xTitle=xTitle,
393 ## yTitle=yTitle,
394 ## title=title )
395 ## histDict[ "ExpEval" ].GetXaxis().SetRangeUser( 210,810 )
396 ## histDict[ "ExpEval" ].GetYaxis().SetRangeUser( 90,810 )
397 ## cDict[ histDict[ "ExpEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpEval" ].GetName() + "Canv", histDict[ "ExpEval" ].GetName() + "Canv" )
398 ## cDict[ histDict[ "ExpEval" ].GetName() ].cd()
399 ## histDict[ "ExpEval" ].Draw( "COLZ" )
400
401 ## ## plotExp = histDict[ "ExpEval" ].Clone()
402 ## ## plotExp.SetContour( 3 )
403 ## ## cDict[ "contexp" ] = ROOT.TCanvas( "Contexp", "Contexp" )
404 ## ## cDict[ "contexp" ].cd()
405 ## ## plotExp.Draw( "CONT Z List" )
406
407 ## Style.setHistStyle( histDict[ "ExpM1" ],
408 ## xTitle=xTitle,
409 ## yTitle=yTitle,
410 ## title=title )
411 ## histDict[ "ExpM1" ].GetXaxis().SetRangeUser( 210,810 )
412 ## histDict[ "ExpM1" ].GetYaxis().SetRangeUser( 90,810 )
413 ## histDict[ "ExpM1" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
414 ## cDict[ histDict[ "ExpM1" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpM1" ].GetName() + "Canv", histDict[ "ExpM1" ].GetName() + "Canv" )
415 ## cDict[ histDict[ "ExpM1" ].GetName() ].cd()
416 ## histDict[ "ExpM1" ].Draw( "COLZ" )
417 ## ROOT.gPad.SetLogz()
418
419 ## Style.setHistStyle( histDict[ "ExpM1Eval" ],
420 ## xTitle=xTitle,
421 ## yTitle=yTitle,
422 ## title=title )
423 ## histDict[ "ExpM1Eval" ].GetXaxis().SetRangeUser( 210,810 )
424 ## histDict[ "ExpM1Eval" ].GetYaxis().SetRangeUser( 90,810 )
425 ## cDict[ histDict[ "ExpM1Eval" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpM1Eval" ].GetName() + "Canv", histDict[ "ExpM1Eval" ].GetName() + "Canv" )
426 ## cDict[ histDict[ "ExpM1Eval" ].GetName() ].cd()
427 ## histDict[ "ExpM1Eval" ].Draw( "COLZ" )
428
429 ## Style.setHistStyle( histDict[ "ExpP1" ],
430 ## xTitle=xTitle,
431 ## yTitle=yTitle,
432 ## title=title )
433 ## histDict[ "ExpP1" ].GetXaxis().SetRangeUser( 210,810 )
434 ## histDict[ "ExpP1" ].GetYaxis().SetRangeUser( 90,810 )
435 ## histDict[ "ExpP1" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
436 ## cDict[ histDict[ "ExpP1" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpP1" ].GetName() + "Canv", histDict[ "ExpP1" ].GetName() + "Canv" )
437 ## cDict[ histDict[ "ExpP1" ].GetName() ].cd()
438 ## histDict[ "ExpP1" ].Draw( "COLZ" )
439 ## ROOT.gPad.SetLogz()
440
441 ## Style.setHistStyle( histDict[ "ExpP1Eval" ],
442 ## xTitle=xTitle,
443 ## yTitle=yTitle,
444 ## title=title )
445 ## histDict[ "ExpP1Eval" ].GetXaxis().SetRangeUser( 210,810 )
446 ## histDict[ "ExpP1Eval" ].GetYaxis().SetRangeUser( 90,810 )
447 ## cDict[ histDict[ "ExpP1Eval" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpP1Eval" ].GetName() + "Canv", histDict[ "ExpP1Eval" ].GetName() + "Canv" )
448 ## cDict[ histDict[ "ExpP1Eval" ].GetName() ].cd()
449 ## histDict[ "ExpP1Eval" ].Draw( "COLZ" )
450
451
452 ## Style.setHistStyle( histDict[ "ObsTheoUp" ],
453 ## xTitle=xTitle,
454 ## yTitle=yTitle,
455 ## title=title )
456 ## histDict[ "ObsTheoUp" ].GetXaxis().SetRangeUser( 210,810 )
457 ## histDict[ "ObsTheoUp" ].GetYaxis().SetRangeUser( 90,810 )
458 ## histDict[ "ObsTheoUp" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
459 ## cDict[ histDict[ "ObsTheoUp" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsTheoUp" ].GetName() + "Canv", histDict[ "ObsTheoUp" ].GetName() + "Canv" )
460 ## cDict[ histDict[ "ObsTheoUp" ].GetName() ].cd()
461 ## histDict[ "ObsTheoUp" ].Draw( "COLZ" )
462 ## ROOT.gPad.SetLogz()
463
464 ## Style.setHistStyle( histDict[ "ObsTheoUpEval" ],
465 ## xTitle=xTitle,
466 ## yTitle=yTitle,
467 ## title=title )
468 ## histDict[ "ObsTheoUpEval" ].GetXaxis().SetRangeUser( 210,810 )
469 ## histDict[ "ObsTheoUpEval" ].GetYaxis().SetRangeUser( 90,810 )
470 ## cDict[ histDict[ "ObsTheoUpEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsTheoUpEval" ].GetName() + "Canv", histDict[ "ObsTheoUpEval" ].GetName() + "Canv" )
471 ## cDict[ histDict[ "ObsTheoUpEval" ].GetName() ].cd()
472 ## histDict[ "ObsTheoUpEval" ].Draw( "COLZ" )
473
474 ## Style.setHistStyle( histDict[ "ObsTheoDn" ],
475 ## xTitle=xTitle,
476 ## yTitle=yTitle,
477 ## title=title )
478 ## histDict[ "ObsTheoDn" ].GetXaxis().SetRangeUser( 210,810 )
479 ## histDict[ "ObsTheoDn" ].GetYaxis().SetRangeUser( 90,810 )
480 ## histDict[ "ObsTheoDn" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
481 ## cDict[ histDict[ "ObsTheoDn" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsTheoDn" ].GetName() + "Canv", histDict[ "ObsTheoDn" ].GetName() + "Canv" )
482 ## cDict[ histDict[ "ObsTheoDn" ].GetName() ].cd()
483 ## histDict[ "ObsTheoDn" ].Draw( "COLZ" )
484 ## ROOT.gPad.SetLogz()
485
486 ## Style.setHistStyle( histDict[ "ObsTheoDnEval" ],
487 ## xTitle=xTitle,
488 ## yTitle=yTitle,
489 ## title=title )
490 ## histDict[ "ObsTheoDnEval" ].GetXaxis().SetRangeUser( 210,810 )
491 ## histDict[ "ObsTheoDnEval" ].GetYaxis().SetRangeUser( 90,810 )
492 ## cDict[ histDict[ "ObsTheoDnEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ObsTheoDnEval" ].GetName() + "Canv", histDict[ "ObsTheoDnEval" ].GetName() + "Canv" )
493 ## cDict[ histDict[ "ObsTheoDnEval" ].GetName() ].cd()
494 ## histDict[ "ObsTheoDnEval" ].Draw( "COLZ" )
495
496 ## Style.setHistStyle( histDict[ "ExpTheoUp" ],
497 ## xTitle=xTitle,
498 ## yTitle=yTitle,
499 ## title=title )
500 ## histDict[ "ExpTheoUp" ].GetXaxis().SetRangeUser( 210,810 )
501 ## histDict[ "ExpTheoUp" ].GetYaxis().SetRangeUser( 90,810 )
502 ## histDict[ "ExpTheoUp" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
503 ## cDict[ histDict[ "ExpTheoUp" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpTheoUp" ].GetName() + "Canv", histDict[ "ExpTheoUp" ].GetName() + "Canv" )
504 ## cDict[ histDict[ "ExpTheoUp" ].GetName() ].cd()
505 ## histDict[ "ExpTheoUp" ].Draw( "COLZ" )
506 ## ROOT.gPad.SetLogz()
507
508 ## Style.setHistStyle( histDict[ "ExpTheoUpEval" ],
509 ## xTitle=xTitle,
510 ## yTitle=yTitle,
511 ## title=title )
512 ## histDict[ "ExpTheoUpEval" ].GetXaxis().SetRangeUser( 210,810 )
513 ## histDict[ "ExpTheoUpEval" ].GetYaxis().SetRangeUser( 90,810 )
514 ## cDict[ histDict[ "ExpTheoUpEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpTheoUpEval" ].GetName() + "Canv", histDict[ "ExpTheoUpEval" ].GetName() + "Canv" )
515 ## cDict[ histDict[ "ExpTheoUpEval" ].GetName() ].cd()
516 ## histDict[ "ExpTheoUpEval" ].Draw( "COLZ" )
517
518 ## Style.setHistStyle( histDict[ "ExpTheoDn" ],
519 ## xTitle=xTitle,
520 ## yTitle=yTitle,
521 ## title=title )
522 ## histDict[ "ExpTheoDn" ].GetXaxis().SetRangeUser( 210,810 )
523 ## histDict[ "ExpTheoDn" ].GetYaxis().SetRangeUser( 90,810 )
524 ## histDict[ "ExpTheoDn" ].GetZaxis().SetRangeUser( 10**-3,5*10**2 )
525 ## cDict[ histDict[ "ExpTheoDn" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpTheoDn" ].GetName() + "Canv", histDict[ "ExpTheoDn" ].GetName() + "Canv" )
526 ## cDict[ histDict[ "ExpTheoDn" ].GetName() ].cd()
527 ## histDict[ "ExpTheoDn" ].Draw( "COLZ" )
528 ## ROOT.gPad.SetLogz()
529
530 ## Style.setHistStyle( histDict[ "ExpTheoDnEval" ],
531 ## xTitle=xTitle,
532 ## yTitle=yTitle,
533 ## title=title )
534 ## histDict[ "ExpTheoDnEval" ].GetXaxis().SetRangeUser( 210,810 )
535 ## histDict[ "ExpTheoDnEval" ].GetYaxis().SetRangeUser( 90,810 )
536 ## cDict[ histDict[ "ExpTheoDnEval" ].GetName() ] = ROOT.TCanvas( histDict[ "ExpTheoDnEval" ].GetName() + "Canv", histDict[ "ExpTheoDnEval" ].GetName() + "Canv" )
537 ## cDict[ histDict[ "ExpTheoDnEval" ].GetName() ].cd()
538 ## histDict[ "ExpTheoDnEval" ].Draw( "COLZ" )
539
540
541 ## plotExpP1 = histDict[ "ExpP1Eval" ].Clone()
542 ## plotExpP1.SetContour( 3 )
543 ## cDict[ "contexpp1" ] = ROOT.TCanvas( "Contexpp1", "Contexpp1" )
544 ## cDict[ "contexpp1" ].cd()
545 ## plotExpP1.Draw( "CONT Z List" )
546
547 ## plotExpM1 = histDict[ "ExpM1Eval" ].Clone()
548 ## plotExpM1.SetContour( 3 )
549 ## cDict[ "contexpm1" ] = ROOT.TCanvas( "Contexpm1", "Contexpm1" )
550 ## cDict[ "contexpm1" ].cd()
551 ## plotExpM1.Draw( "CONT Z List" )
552
553 if save:
554 Style.saveToEPS( name, cDict )
555 pass
556
557 Def.DontQuit()