{ //=========Macro generated from canvas: c6/ETmis resolution //========= (Fri Jun 19 15:48:54 2009) by ROOT version5.20/00 TCanvas *c6 = new TCanvas("c6", "ETmis resolution",334,132,597,452); gStyle->SetOptFit(1); gStyle->SetOptStat(0); c6->Range(-94.17073,-2.698363,630.2195,18.599); c6->SetFillColor(0); c6->SetBorderMode(0); c6->SetBorderSize(2); c6->SetTickx(1); c6->SetTicky(1); c6->SetLeftMargin(0.13); c6->SetRightMargin(0.05); c6->SetTopMargin(0.05); c6->SetBottomMargin(0.13); c6->SetFrameFillStyle(0); c6->SetFrameBorderMode(0); c6->SetFrameFillStyle(0); c6->SetFrameBorderMode(0); TGraph *graph = new TGraph(6); graph->SetName("Graph"); graph->SetTitle("Graph"); graph->SetFillColor(1); graph->SetMarkerStyle(3); graph->SetPoint(0,220,9.191692); graph->SetPoint(1,299.1884,11.33783); graph->SetPoint(2,380,12.29548); graph->SetPoint(3,460,13.59322); graph->SetPoint(4,540,15.11147); graph->SetPoint(5,0,2.195538e-266); TH1 *Graph111 = new TH1F("Graph111","Graph",100,0,594); Graph111->SetMinimum(0.07029348); Graph111->SetMaximum(17.53413); Graph111->SetDirectory(0); Graph111->SetStats(0); Graph111->SetLineStyle(0); Graph111->SetMarkerStyle(20); Graph111->GetXaxis()->SetTitle("Offline sum of E_{T} [GeV]"); Graph111->GetXaxis()->SetLabelFont(42); Graph111->GetXaxis()->SetLabelOffset(0.007); Graph111->GetXaxis()->SetTitleSize(0.05); Graph111->GetXaxis()->SetTitleOffset(0.9); Graph111->GetXaxis()->SetTitleFont(42); Graph111->GetYaxis()->SetTitle("Resolution of x-component of MET [GeV]"); Graph111->GetYaxis()->SetLabelFont(42); Graph111->GetYaxis()->SetLabelOffset(0.007); Graph111->GetYaxis()->SetTitleSize(0.05); Graph111->GetYaxis()->SetTitleOffset(1.05); Graph111->GetYaxis()->SetTitleFont(42); Graph111->GetZaxis()->SetLabelFont(42); Graph111->GetZaxis()->SetLabelOffset(0.007); Graph111->GetZaxis()->SetTitleSize(0.05); Graph111->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph111); TF1 *user = new TF1("user","[0]*sqrt(x)",0,600); user->SetFillColor(19); user->SetFillStyle(0); user->SetMarkerStyle(20); Int_t ci; // for color index setting ci = TColor::GetColor("#000099"); user->SetLineColor(ci); user->SetLineWidth(1); user->SetChisquare(0.2371125); user->GetXaxis()->SetLabelFont(42); user->GetXaxis()->SetLabelOffset(0.007); user->GetXaxis()->SetTitleSize(0.05); user->GetXaxis()->SetTitleOffset(0.9); user->GetXaxis()->SetTitleFont(42); user->GetYaxis()->SetLabelFont(42); user->GetYaxis()->SetLabelOffset(0.007); user->GetYaxis()->SetTitleSize(0.05); user->GetYaxis()->SetTitleOffset(1.05); user->GetYaxis()->SetTitleFont(42); user->SetParameter(0,0.6390582); user->SetParError(0,0.005585608); user->SetParLimits(0,0,0); graph->GetListOfFunctions()->Add(user); TPaveStats *ptstats = new TPaveStats(0.3333333,0.798913,0.3793103,0.8532609,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(19); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); TText *text = ptstats->AddText("#chi^{2} / ndf = 0.2371 / -1"); text = ptstats->AddText("p0 = 0.6391 #pm 0.005586 "); ptstats->SetOptStat(0); ptstats->SetOptFit(111); ptstats->Draw(); graph->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(graph->GetListOfFunctions()); graph->Draw("ap"); TPaveText *pt = new TPaveText(0.1915709,0.7744565,0.591954,0.861413,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04076087); text = pt->AddText("E_{x}^{mis} resolution : 0.64 * #sqrt{E_{T}}"); pt->Draw(); pt = new TPaveText(0.1628352,0.6956522,0.5,0.763587,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04076087); text = pt->AddText("Events: pp #rightarrow gg"); pt->Draw(); pt = new TPaveText(0.5747126,0.2527174,0.7260536,0.3016304,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.04076087); text = pt->AddText("MG/ME + Pythia + Delphes"); pt->Draw(); c6->Modified(); c6->cd(); c6->SetSelected(c6); }