1 from ROOT
import kBlack, TPaveText
4 style.SetCanvasColor (0)
5 style.SetCanvasBorderSize(10)
6 style.SetCanvasBorderMode(0)
7 style.SetCanvasDefH (700)
8 style.SetCanvasDefW (700)
9 style.SetCanvasDefX (100)
10 style.SetCanvasDefY (100)
17 style.SetPadBorderSize (10)
18 style.SetPadBorderMode (0)
19 style.SetPadBottomMargin(0.16)
20 style.SetPadTopMargin (0.08)
21 style.SetPadLeftMargin (0.15)
23 style.SetPadRightMargin (0.05)
31 style.SetFrameFillStyle ( 0)
32 style.SetFrameFillColor ( 0)
33 style.SetFrameLineColor ( 1)
34 style.SetFrameLineStyle ( 0)
35 style.SetFrameLineWidth ( 2)
36 style.SetFrameBorderSize(10)
37 style.SetFrameBorderMode( 0)
40 style.SetHistFillColor(2)
41 style.SetHistFillStyle(0)
42 style.SetHistLineColor(1)
43 style.SetHistLineStyle(0)
44 style.SetHistLineWidth(3)
45 style.SetNdivisions(505)
53 style.SetMarkerStyle(20)
54 style.SetMarkerColor(kBlack)
55 style.SetMarkerSize (1.4)
57 style.SetTitleBorderSize(0)
58 style.SetTitleFillColor (0)
61 style.SetTitleSize (0.055,
"X")
62 style.SetTitleOffset(1.200,
"X")
63 style.SetLabelOffset(0.005,
"X")
64 style.SetLabelSize (0.050,
"X")
65 style.SetLabelFont (42 ,
"X")
67 style.SetStripDecimals(
False)
68 style.SetLineStyleString(11,
"20 10")
70 style.SetTitleSize (0.055,
"Y")
71 style.SetTitleOffset(1.100,
"Y")
72 style.SetLabelOffset(0.010,
"Y")
73 style.SetLabelSize (0.050,
"Y")
74 style.SetLabelFont (42 ,
"Y")
76 style.SetTextSize (0.055)
77 style.SetTextFont (42)
79 style.SetStatFont (42)
80 style.SetTitleFont (42)
81 style.SetTitleFont (42,
"X")
82 style.SetTitleFont (42,
"Y")
88 cmsprel = TPaveText(lowX, lowY+0.06, lowX+0.30, lowY+0.16,
"NDC")
89 cmsprel.SetBorderSize( 0 )
90 cmsprel.SetFillStyle( 0 )
91 cmsprel.SetTextAlign( 12 )
92 cmsprel.SetTextSize ( 0.04 )
93 cmsprel.SetTextColor( 1 )
94 cmsprel.SetTextFont ( 62 )
95 cmsprel.AddText(dataset)
106 chan = TPaveText(lowX+0.68, lowY+0.061, lowX+0.80, lowY+0.161,
"NDC")
107 chan.SetBorderSize( 0 )
108 chan.SetFillStyle( 0 )
109 chan.SetTextAlign( 12 )
110 chan.SetTextSize ( 0.05 )
111 chan.SetTextColor( 1 )
112 chan.SetTextFont ( 62 )
113 chan.AddText(channel)
def CMSPrelim(dataset, channel, lowX, lowY)