-
Notifications
You must be signed in to change notification settings - Fork 0
/
4_bin.C
323 lines (318 loc) · 11.2 KB
/
4_bin.C
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
{
//=========Macro generated from canvas: limits/limit
//========= (Sun Jan 11 16:44:23 2015) by ROOT version5.34/22
TCanvas *limits = new TCanvas("limits", "limit",1,52,600,600);
gStyle->SetOptStat(0);
gStyle->SetOptTitle(0);
limits->Range(0.5399119,-39.62025,3.129478,-29.49367);
limits->SetFillColor(0);
limits->SetBorderMode(0);
limits->SetBorderSize(2);
limits->SetLogx();
limits->SetLogy();
limits->SetTickx(1);
limits->SetTicky(1);
limits->SetLeftMargin(0.16);
limits->SetRightMargin(0.05);
limits->SetTopMargin(0.05);
limits->SetBottomMargin(0.16);
limits->SetFrameBorderMode(0);
limits->SetFrameBorderMode(0);
TGraphErrors *gre = new TGraphErrors(94);
gre->SetName("Graph0");
gre->SetTitle("Graph");
gre->SetLineStyle(7);
gre->SetLineWidth(3);
gre->SetMarkerStyle(20);
gre->SetMarkerSize(0);
gre->SetPoint(0,13.21941,1.26589e-30);
gre->SetPointError(0,0,0);
gre->SetPoint(1,13.84886,1.020027e-32);
gre->SetPointError(1,0,0);
gre->SetPoint(2,14.50829,2.066012e-33);
gre->SetPointError(2,0,0);
gre->SetPoint(3,15.19911,7.45203e-34);
gre->SetPointError(3,0,0);
gre->SetPoint(4,15.92283,3.498695e-34);
gre->SetPointError(4,0,0);
gre->SetPoint(5,16.68101,1.905969e-34);
gre->SetPointError(5,0,0);
gre->SetPoint(6,17.47528,1.142264e-34);
gre->SetPointError(6,0,0);
gre->SetPoint(7,18.30738,7.315793e-35);
gre->SetPointError(7,0,0);
gre->SetPoint(8,19.1791,4.921691e-35);
gre->SetPointError(8,0,0);
gre->SetPoint(9,20.09233,3.439689e-35);
gre->SetPointError(9,0,0);
gre->SetPoint(10,21.04904,2.478769e-35);
gre->SetPointError(10,0,0);
gre->SetPoint(11,22.05131,1.832025e-35);
gre->SetPointError(11,0,0);
gre->SetPoint(12,23.1013,1.383181e-35);
gre->SetPointError(12,0,0);
gre->SetPoint(13,24.20128,1.063585e-35);
gre->SetPointError(13,0,0);
gre->SetPoint(14,25.35364,8.310078e-36);
gre->SetPointError(14,0,0);
gre->SetPoint(15,26.56088,6.585583e-36);
gre->SetPointError(15,0,0);
gre->SetPoint(16,27.82559,5.285937e-36);
gre->SetPointError(16,0,0);
gre->SetPoint(17,29.15053,4.292388e-36);
gre->SetPointError(17,0,0);
gre->SetPoint(18,30.53856,3.523187e-36);
gre->SetPointError(18,0,0);
gre->SetPoint(19,31.99267,2.920931e-36);
gre->SetPointError(19,0,0);
gre->SetPoint(20,33.51603,2.444596e-36);
gre->SetPointError(20,0,0);
gre->SetPoint(21,35.11192,2.064401e-36);
gre->SetPointError(21,0,0);
gre->SetPoint(22,36.7838,1.758416e-36);
gre->SetPointError(22,0,0);
gre->SetPoint(23,38.53529,1.510285e-36);
gre->SetPointError(23,0,0);
gre->SetPoint(24,40.37017,1.307668e-36);
gre->SetPointError(24,0,0);
gre->SetPoint(25,42.29243,1.141158e-36);
gre->SetPointError(25,0,0);
gre->SetPoint(26,44.30621,1.003511e-36);
gre->SetPointError(26,0,0);
gre->SetPoint(27,46.41589,8.891046e-37);
gre->SetPointError(27,0,0);
gre->SetPoint(28,48.62602,7.935356e-37);
gre->SetPointError(28,0,0);
gre->SetPoint(29,50.94138,7.133333e-37);
gre->SetPointError(29,0,0);
gre->SetPoint(30,53.36699,6.457424e-37);
gre->SetPointError(30,0,0);
gre->SetPoint(31,55.9081,5.885621e-37);
gre->SetPointError(31,0,0);
gre->SetPoint(32,58.57021,5.400244e-37);
gre->SetPointError(32,0,0);
gre->SetPoint(33,61.35907,4.987012e-37);
gre->SetPointError(33,0,0);
gre->SetPoint(34,64.28073,4.634338e-37);
gre->SetPointError(34,0,0);
gre->SetPoint(35,67.34151,4.33277e-37);
gre->SetPointError(35,0,0);
gre->SetPoint(36,70.54802,4.074572e-37);
gre->SetPointError(36,0,0);
gre->SetPoint(37,73.90722,3.85338e-37);
gre->SetPointError(37,0,0);
gre->SetPoint(38,77.42637,3.663944e-37);
gre->SetPointError(38,0,0);
gre->SetPoint(39,81.11308,3.501916e-37);
gre->SetPointError(39,0,0);
gre->SetPoint(40,84.97534,3.363684e-37);
gre->SetPointError(40,0,0);
gre->SetPoint(41,89.02151,3.246236e-37);
gre->SetPointError(41,0,0);
gre->SetPoint(42,93.26033,3.147055e-37);
gre->SetPointError(42,0,0);
gre->SetPoint(43,97.701,3.064034e-37);
gre->SetPointError(43,0,0);
gre->SetPoint(44,102.3531,2.995402e-37);
gre->SetPointError(44,0,0);
gre->SetPoint(45,107.2267,2.939671e-37);
gre->SetPointError(45,0,0);
gre->SetPoint(46,112.3324,2.895586e-37);
gre->SetPointError(46,0,0);
gre->SetPoint(47,117.6812,2.862092e-37);
gre->SetPointError(47,0,0);
gre->SetPoint(48,123.2847,2.838297e-37);
gre->SetPointError(48,0,0);
gre->SetPoint(49,129.155,2.823452e-37);
gre->SetPointError(49,0,0);
gre->SetPoint(50,135.3048,2.816928e-37);
gre->SetPointError(50,0,0);
gre->SetPoint(51,141.7474,2.8182e-37);
gre->SetPointError(51,0,0);
gre->SetPoint(52,148.4968,2.82683e-37);
gre->SetPointError(52,0,0);
gre->SetPoint(53,155.5676,2.842459e-37);
gre->SetPointError(53,0,0);
gre->SetPoint(54,162.9751,2.864793e-37);
gre->SetPointError(54,0,0);
gre->SetPoint(55,170.7353,2.893599e-37);
gre->SetPointError(55,0,0);
gre->SetPoint(56,178.865,2.928696e-37);
gre->SetPointError(56,0,0);
gre->SetPoint(57,187.3817,2.969949e-37);
gre->SetPointError(57,0,0);
gre->SetPoint(58,196.3041,3.017267e-37);
gre->SetPointError(58,0,0);
gre->SetPoint(59,205.6512,3.070595e-37);
gre->SetPointError(59,0,0);
gre->SetPoint(60,215.4435,3.129913e-37);
gre->SetPointError(60,0,0);
gre->SetPoint(61,225.702,3.195233e-37);
gre->SetPointError(61,0,0);
gre->SetPoint(62,236.4489,3.266597e-37);
gre->SetPointError(62,0,0);
gre->SetPoint(63,247.7076,3.344072e-37);
gre->SetPointError(63,0,0);
gre->SetPoint(64,259.5024,3.427754e-37);
gre->SetPointError(64,0,0);
gre->SetPoint(65,271.8588,3.517761e-37);
gre->SetPointError(65,0,0);
gre->SetPoint(66,284.8036,3.614236e-37);
gre->SetPointError(66,0,0);
gre->SetPoint(67,298.3647,3.717342e-37);
gre->SetPointError(67,0,0);
gre->SetPoint(68,312.5716,3.827266e-37);
gre->SetPointError(68,0,0);
gre->SetPoint(69,327.4549,3.944217e-37);
gre->SetPointError(69,0,0);
gre->SetPoint(70,343.0469,4.068608e-37);
gre->SetPointError(70,0,0);
gre->SetPoint(71,359.3814,4.200822e-37);
gre->SetPointError(71,0,0);
gre->SetPoint(72,376.4936,4.341157e-37);
gre->SetPointError(72,0,0);
gre->SetPoint(73,394.4206,4.48993e-37);
gre->SetPointError(73,0,0);
gre->SetPoint(74,413.2012,4.647482e-37);
gre->SetPointError(74,0,0);
gre->SetPoint(75,432.8761,4.814177e-37);
gre->SetPointError(75,0,0);
gre->SetPoint(76,453.4879,4.990401e-37);
gre->SetPointError(76,0,0);
gre->SetPoint(77,475.081,5.176563e-37);
gre->SetPointError(77,0,0);
gre->SetPoint(78,497.7024,5.373094e-37);
gre->SetPointError(78,0,0);
gre->SetPoint(79,521.4008,5.58045e-37);
gre->SetPointError(79,0,0);
gre->SetPoint(80,546.2277,5.79911e-37);
gre->SetPointError(80,0,0);
gre->SetPoint(81,572.2368,6.02958e-37);
gre->SetPointError(81,0,0);
gre->SetPoint(82,599.4843,6.272391e-37);
gre->SetPointError(82,0,0);
gre->SetPoint(83,628.0291,6.528098e-37);
gre->SetPointError(83,0,0);
gre->SetPoint(84,657.9332,6.797287e-37);
gre->SetPointError(84,0,0);
gre->SetPoint(85,689.2612,7.080572e-37);
gre->SetPointError(85,0,0);
gre->SetPoint(86,722.0809,7.378595e-37);
gre->SetPointError(86,0,0);
gre->SetPoint(87,756.4633,7.692032e-37);
gre->SetPointError(87,0,0);
gre->SetPoint(88,792.4829,8.021588e-37);
gre->SetPointError(88,0,0);
gre->SetPoint(89,830.2176,8.368006e-37);
gre->SetPointError(89,0,0);
gre->SetPoint(90,869.749,8.732062e-37);
gre->SetPointError(90,0,0);
gre->SetPoint(91,911.1628,9.11457e-37);
gre->SetPointError(91,0,0);
gre->SetPoint(92,954.5485,9.516381e-37);
gre->SetPointError(92,0,0);
gre->SetPoint(93,1000,9.93839e-37);
gre->SetPointError(93,0,0);
TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",100,9,1000);
Graph_Graph1->SetMinimum(1e-38);
Graph_Graph1->SetMaximum(1e-30);
Graph_Graph1->SetDirectory(0);
Graph_Graph1->SetStats(0);
Graph_Graph1->SetLineWidth(2);
Graph_Graph1->SetMarkerStyle(20);
Graph_Graph1->SetMarkerSize(1.2);
Graph_Graph1->GetXaxis()->SetLabelFont(42);
Graph_Graph1->GetXaxis()->SetLabelSize(0.05);
Graph_Graph1->GetXaxis()->SetTitleSize(0.05);
Graph_Graph1->GetXaxis()->SetTitleOffset(1.4);
Graph_Graph1->GetXaxis()->SetTitleFont(42);
Graph_Graph1->GetYaxis()->SetLabelFont(42);
Graph_Graph1->GetYaxis()->SetLabelSize(0.05);
Graph_Graph1->GetYaxis()->SetTitleSize(0.05);
Graph_Graph1->GetYaxis()->SetTitleOffset(1.4);
Graph_Graph1->GetYaxis()->SetTitleFont(42);
Graph_Graph1->GetZaxis()->SetLabelFont(42);
Graph_Graph1->GetZaxis()->SetLabelSize(0.05);
Graph_Graph1->GetZaxis()->SetTitleSize(0.05);
Graph_Graph1->GetZaxis()->SetTitleFont(42);
gre->SetHistogram(Graph_Graph1);
gre->Draw("apl");
TLegend *leg = new TLegend(0.2,0.7,0.5,0.9,NULL,"brNDC");
leg->SetBorderSize(0);
leg->SetTextFont(62);
leg->SetTextSize(0.033);
leg->SetLineColor(1);
leg->SetLineStyle(1);
leg->SetLineWidth(1);
leg->SetFillColor(0);
leg->SetFillStyle(1001);
TLegendEntry *entry=leg->AddEntry("Graph","Observed 90% CLs limit","lpf");
entry->SetFillStyle(1001);
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(3);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(20);
entry->SetTextFont(62);
entry=leg->AddEntry("Graph0","Expected 90% CLs limit","lpf");
entry->SetFillStyle(1001);
entry->SetLineColor(1);
entry->SetLineStyle(7);
entry->SetLineWidth(3);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(20);
entry->SetTextFont(62);
entry=leg->AddEntry("Graph","1 #sigma","f");
entry->SetFillColor(3);
entry->SetFillStyle(1001);
entry->SetLineColor(3);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(62);
entry=leg->AddEntry("Graph","2 #sigma","f");
entry->SetFillColor(5);
entry->SetFillStyle(1001);
entry->SetLineColor(5);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
entry->SetMarkerColor(1);
entry->SetMarkerStyle(21);
entry->SetMarkerSize(1);
entry->SetTextFont(62);
leg->Draw();
TH1F *Graph = new TH1F("Graph","Graph",100,9,1000);
Graph->SetMinimum(1e-38);
Graph->SetMaximum(1e-30);
Graph->SetDirectory(0);
Graph->SetStats(0);
Graph->SetLineWidth(2);
Graph->SetMarkerStyle(20);
Graph->SetMarkerSize(1.2);
Graph->GetXaxis()->SetLabelFont(42);
Graph->GetXaxis()->SetLabelSize(0.05);
Graph->GetXaxis()->SetTitleSize(0.05);
Graph->GetXaxis()->SetTitleOffset(1.4);
Graph->GetXaxis()->SetTitleFont(42);
Graph->GetYaxis()->SetLabelFont(42);
Graph->GetYaxis()->SetLabelSize(0.05);
Graph->GetYaxis()->SetTitleSize(0.05);
Graph->GetYaxis()->SetTitleOffset(1.4);
Graph->GetYaxis()->SetTitleFont(42);
Graph->GetZaxis()->SetLabelFont(42);
Graph->GetZaxis()->SetLabelSize(0.05);
Graph->GetZaxis()->SetTitleSize(0.05);
Graph->GetZaxis()->SetTitleFont(42);
Graph->Draw("sameaxis");
TLatex * tex = new TLatex(0.4,0.86,"Test");
tex->SetNDC();
tex->SetTextColor(2);
tex->SetTextFont(42);
tex->SetLineWidth(2);
tex->Draw();
limits->Modified();
limits->cd();
limits->SetSelected(limits);
}