1 | {
|
---|
2 | //=========Macro generated from canvas: c6/ETmis resolution
|
---|
3 | //========= (Sat Jan 3 17:05:15 2009) by ROOT version5.20/00
|
---|
4 | TCanvas *c6 = new TCanvas("c6", "ETmis resolution",93,131,598,448);
|
---|
5 | gStyle->SetOptFit(1);
|
---|
6 | gStyle->SetOptStat(0);
|
---|
7 | c6->Range(-94.17073,-2.716138,630.2195,19.69773);
|
---|
8 | c6->SetFillColor(0);
|
---|
9 | c6->SetBorderMode(0);
|
---|
10 | c6->SetBorderSize(2);
|
---|
11 | c6->SetTickx(1);
|
---|
12 | c6->SetTicky(1);
|
---|
13 | c6->SetLeftMargin(0.13);
|
---|
14 | c6->SetRightMargin(0.05);
|
---|
15 | c6->SetTopMargin(0.05);
|
---|
16 | c6->SetBottomMargin(0.13);
|
---|
17 | c6->SetFrameFillStyle(0);
|
---|
18 | c6->SetFrameBorderMode(0);
|
---|
19 | c6->SetFrameFillStyle(0);
|
---|
20 | c6->SetFrameBorderMode(0);
|
---|
21 |
|
---|
22 | TGraph *graph = new TGraph(6);
|
---|
23 | graph->SetName("Graph");
|
---|
24 | graph->SetTitle("Graph");
|
---|
25 | graph->SetFillColor(1);
|
---|
26 | graph->SetMarkerStyle(20);
|
---|
27 | graph->SetPoint(0,220,9.770986);
|
---|
28 | graph->SetPoint(1,300,12.41248);
|
---|
29 | graph->SetPoint(2,380,13.15186);
|
---|
30 | graph->SetPoint(3,460,14.23516);
|
---|
31 | graph->SetPoint(4,540,16.04519);
|
---|
32 | graph->SetPoint(5,4.091681e-262,1.781482e-259);
|
---|
33 |
|
---|
34 | TH1 *Graph11 = new TH1F("Graph11","Graph",100,0,594);
|
---|
35 | Graph11->SetMinimum(0.1976654);
|
---|
36 | Graph11->SetMaximum(18.57704);
|
---|
37 | Graph11->SetDirectory(0);
|
---|
38 | Graph11->SetStats(0);
|
---|
39 | Graph11->SetLineStyle(0);
|
---|
40 | Graph11->SetMarkerStyle(20);
|
---|
41 | Graph11->GetXaxis()->SetTitle("Offline sum of E_{T} [GeV]");
|
---|
42 | Graph11->GetXaxis()->SetLabelFont(42);
|
---|
43 | Graph11->GetXaxis()->SetLabelOffset(0.007);
|
---|
44 | Graph11->GetXaxis()->SetTitleSize(0.05);
|
---|
45 | Graph11->GetXaxis()->SetTitleOffset(0.9);
|
---|
46 | Graph11->GetXaxis()->SetTitleFont(42);
|
---|
47 | Graph11->GetYaxis()->SetTitle("Resolution of x-component of MET [GeV]");
|
---|
48 | Graph11->GetYaxis()->SetLabelFont(42);
|
---|
49 | Graph11->GetYaxis()->SetLabelOffset(0.007);
|
---|
50 | Graph11->GetYaxis()->SetTitleSize(0.05);
|
---|
51 | Graph11->GetYaxis()->SetTitleOffset(1.05);
|
---|
52 | Graph11->GetYaxis()->SetTitleFont(42);
|
---|
53 | Graph11->GetZaxis()->SetLabelFont(42);
|
---|
54 | Graph11->GetZaxis()->SetLabelOffset(0.007);
|
---|
55 | Graph11->GetZaxis()->SetTitleSize(0.05);
|
---|
56 | Graph11->GetZaxis()->SetTitleFont(42);
|
---|
57 | graph->SetHistogram(Graph11);
|
---|
58 |
|
---|
59 |
|
---|
60 | TF1 *user = new TF1("user","[0]*sqrt(x)",0,600);
|
---|
61 | user->SetFillColor(19);
|
---|
62 | user->SetFillStyle(0);
|
---|
63 | user->SetMarkerStyle(20);
|
---|
64 | user->SetLineColor(2);
|
---|
65 | user->SetLineWidth(1);
|
---|
66 | user->GetXaxis()->SetLabelFont(42);
|
---|
67 | user->GetXaxis()->SetLabelOffset(0.007);
|
---|
68 | user->GetXaxis()->SetTitleSize(0.05);
|
---|
69 | user->GetXaxis()->SetTitleOffset(0.9);
|
---|
70 | user->GetXaxis()->SetTitleFont(42);
|
---|
71 | user->GetYaxis()->SetLabelFont(42);
|
---|
72 | user->GetYaxis()->SetLabelOffset(0.007);
|
---|
73 | user->GetYaxis()->SetTitleSize(0.05);
|
---|
74 | user->GetYaxis()->SetTitleOffset(1.05);
|
---|
75 | user->GetYaxis()->SetTitleFont(42);
|
---|
76 | user->SetParameter(0,0.6812953);
|
---|
77 | user->SetParError(0,0.009533002);
|
---|
78 | user->SetParLimits(0,0,0);
|
---|
79 | graph->GetListOfFunctions()->Add(user);
|
---|
80 |
|
---|
81 | TPaveStats *ptstats = new TPaveStats(0.2657744,0.7683924,0.3040153,0.8228883,"brNDC");
|
---|
82 | ptstats->SetName("stats");
|
---|
83 | ptstats->SetBorderSize(1);
|
---|
84 | ptstats->SetFillColor(19);
|
---|
85 | ptstats->SetTextAlign(12);
|
---|
86 | ptstats->SetTextFont(42);
|
---|
87 | TText *text = ptstats->AddText("#chi^{2} / ndf = 0 / -1");
|
---|
88 | text = ptstats->AddText("p0 = 0.6813 #pm 0.009533 ");
|
---|
89 | ptstats->SetOptStat(0);
|
---|
90 | ptstats->SetOptFit(111);
|
---|
91 | ptstats->Draw();
|
---|
92 | graph->GetListOfFunctions()->Add(ptstats);
|
---|
93 | ptstats->SetParent(graph->GetListOfFunctions());
|
---|
94 | graph->Draw("ap");
|
---|
95 |
|
---|
96 | TPaveText *pt = new TPaveText(0.2963671,0.400545,0.4760994,0.4495913,"brNDC");
|
---|
97 | pt->SetBorderSize(0);
|
---|
98 | pt->SetFillColor(10);
|
---|
99 | pt->SetTextFont(42);
|
---|
100 | pt->SetTextSize(0.03791469);
|
---|
101 | text = pt->AddText("0.681295 * #sqrt{E_{T}}");
|
---|
102 | pt->Draw();
|
---|
103 |
|
---|
104 | pt = new TPaveText(0.1759082,0.760218,0.5659656,0.8446866,"brNDC");
|
---|
105 | pt->SetBorderSize(0);
|
---|
106 | pt->SetFillColor(10);
|
---|
107 | pt->SetTextFont(42);
|
---|
108 | pt->SetTextSize(0.03791469);
|
---|
109 | text = pt->AddText("Events: pp#rightarrow gg ");
|
---|
110 | pt->Draw();
|
---|
111 |
|
---|
112 | pt = new TPaveText(0.2409178,0.1634877,0.3919694,0.2125341,"brNDC");
|
---|
113 | pt->SetBorderSize(0);
|
---|
114 | pt->SetFillColor(10);
|
---|
115 | pt->SetTextFont(42);
|
---|
116 | pt->SetTextSize(0.03791469);
|
---|
117 | text = pt->AddText("MG/ME + Delphes");
|
---|
118 | pt->Draw();
|
---|
119 | c6->Modified();
|
---|
120 | c6->cd();
|
---|
121 | c6->SetSelected(c6);
|
---|
122 | }
|
---|