Fork me on GitHub

source: svn/trunk/paper/sourceCode/METResol.C@ 558

Last change on this file since 558 was 477, checked in by Xavier Rouby, 15 years ago

* empty log message *

File size: 4.2 KB
Line 
1{
2//=========Macro generated from canvas: c6/ETmis resolution
3//========= (Fri Jun 19 15:48:54 2009) by ROOT version5.20/00
4 TCanvas *c6 = new TCanvas("c6", "ETmis resolution",334,132,597,452);
5 gStyle->SetOptFit(1);
6 gStyle->SetOptStat(0);
7 c6->Range(-94.17073,-2.698363,630.2195,18.599);
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(3);
27 graph->SetPoint(0,220,9.191692);
28 graph->SetPoint(1,299.1884,11.33783);
29 graph->SetPoint(2,380,12.29548);
30 graph->SetPoint(3,460,13.59322);
31 graph->SetPoint(4,540,15.11147);
32 graph->SetPoint(5,0,2.195538e-266);
33
34 TH1 *Graph111 = new TH1F("Graph111","Graph",100,0,594);
35 Graph111->SetMinimum(0.07029348);
36 Graph111->SetMaximum(17.53413);
37 Graph111->SetDirectory(0);
38 Graph111->SetStats(0);
39 Graph111->SetLineStyle(0);
40 Graph111->SetMarkerStyle(20);
41 Graph111->GetXaxis()->SetTitle("Offline sum of E_{T} [GeV]");
42 Graph111->GetXaxis()->SetLabelFont(42);
43 Graph111->GetXaxis()->SetLabelOffset(0.007);
44 Graph111->GetXaxis()->SetTitleSize(0.05);
45 Graph111->GetXaxis()->SetTitleOffset(0.9);
46 Graph111->GetXaxis()->SetTitleFont(42);
47 Graph111->GetYaxis()->SetTitle("Resolution of x-component of MET [GeV]");
48 Graph111->GetYaxis()->SetLabelFont(42);
49 Graph111->GetYaxis()->SetLabelOffset(0.007);
50 Graph111->GetYaxis()->SetTitleSize(0.05);
51 Graph111->GetYaxis()->SetTitleOffset(1.05);
52 Graph111->GetYaxis()->SetTitleFont(42);
53 Graph111->GetZaxis()->SetLabelFont(42);
54 Graph111->GetZaxis()->SetLabelOffset(0.007);
55 Graph111->GetZaxis()->SetTitleSize(0.05);
56 Graph111->GetZaxis()->SetTitleFont(42);
57 graph->SetHistogram(Graph111);
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
65 Int_t ci; // for color index setting
66 ci = TColor::GetColor("#000099");
67 user->SetLineColor(ci);
68 user->SetLineWidth(1);
69 user->SetChisquare(0.2371125);
70 user->GetXaxis()->SetLabelFont(42);
71 user->GetXaxis()->SetLabelOffset(0.007);
72 user->GetXaxis()->SetTitleSize(0.05);
73 user->GetXaxis()->SetTitleOffset(0.9);
74 user->GetXaxis()->SetTitleFont(42);
75 user->GetYaxis()->SetLabelFont(42);
76 user->GetYaxis()->SetLabelOffset(0.007);
77 user->GetYaxis()->SetTitleSize(0.05);
78 user->GetYaxis()->SetTitleOffset(1.05);
79 user->GetYaxis()->SetTitleFont(42);
80 user->SetParameter(0,0.6390582);
81 user->SetParError(0,0.005585608);
82 user->SetParLimits(0,0,0);
83 graph->GetListOfFunctions()->Add(user);
84
85 TPaveStats *ptstats = new TPaveStats(0.3333333,0.798913,0.3793103,0.8532609,"brNDC");
86 ptstats->SetName("stats");
87 ptstats->SetBorderSize(1);
88 ptstats->SetFillColor(19);
89 ptstats->SetTextAlign(12);
90 ptstats->SetTextFont(42);
91 TText *text = ptstats->AddText("#chi^{2} / ndf = 0.2371 / -1");
92 text = ptstats->AddText("p0 = 0.6391 #pm 0.005586 ");
93 ptstats->SetOptStat(0);
94 ptstats->SetOptFit(111);
95 ptstats->Draw();
96 graph->GetListOfFunctions()->Add(ptstats);
97 ptstats->SetParent(graph->GetListOfFunctions());
98 graph->Draw("ap");
99
100 TPaveText *pt = new TPaveText(0.1915709,0.7744565,0.591954,0.861413,"brNDC");
101 pt->SetBorderSize(0);
102 pt->SetFillColor(10);
103 pt->SetTextFont(42);
104 pt->SetTextSize(0.04076087);
105 text = pt->AddText("E_{x}^{mis} resolution : 0.64 * #sqrt{E_{T}}");
106 pt->Draw();
107
108 pt = new TPaveText(0.1628352,0.6956522,0.5,0.763587,"brNDC");
109 pt->SetBorderSize(0);
110 pt->SetFillColor(10);
111 pt->SetTextFont(42);
112 pt->SetTextSize(0.04076087);
113 text = pt->AddText("Events: pp #rightarrow gg");
114 pt->Draw();
115
116 pt = new TPaveText(0.5747126,0.2527174,0.7260536,0.3016304,"brNDC");
117 pt->SetBorderSize(0);
118 pt->SetFillColor(10);
119 pt->SetTextFont(42);
120 pt->SetTextSize(0.04076087);
121 text = pt->AddText("MG/ME + Pythia + Delphes");
122 pt->Draw();
123 c6->Modified();
124 c6->cd();
125 c6->SetSelected(c6);
126}
Note: See TracBrowser for help on using the repository browser.