{ //=========Macro generated from canvas: c6/ETmis resolution //========= (Sat Jan 3 17:05:15 2009) by ROOT version5.20/00 TCanvas *c6 = new TCanvas("c6", "ETmis resolution",93,131,598,448); gStyle->SetOptFit(1); gStyle->SetOptStat(0); c6->Range(-94.17073,-2.716138,630.2195,19.69773); 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(20); graph->SetPoint(0,220,9.770986); graph->SetPoint(1,300,12.41248); graph->SetPoint(2,380,13.15186); graph->SetPoint(3,460,14.23516); graph->SetPoint(4,540,16.04519); graph->SetPoint(5,4.091681e-262,1.781482e-259); TH1 *Graph11 = new TH1F("Graph11","Graph",100,0,594); Graph11->SetMinimum(0.1976654); Graph11->SetMaximum(18.57704); Graph11->SetDirectory(0); Graph11->SetStats(0); Graph11->SetLineStyle(0); Graph11->SetMarkerStyle(20); Graph11->GetXaxis()->SetTitle("Offline sum of E_{T} [GeV]"); Graph11->GetXaxis()->SetLabelFont(42); Graph11->GetXaxis()->SetLabelOffset(0.007); Graph11->GetXaxis()->SetTitleSize(0.05); Graph11->GetXaxis()->SetTitleOffset(0.9); Graph11->GetXaxis()->SetTitleFont(42); Graph11->GetYaxis()->SetTitle("Resolution of x-component of MET [GeV]"); Graph11->GetYaxis()->SetLabelFont(42); Graph11->GetYaxis()->SetLabelOffset(0.007); Graph11->GetYaxis()->SetTitleSize(0.05); Graph11->GetYaxis()->SetTitleOffset(1.05); Graph11->GetYaxis()->SetTitleFont(42); Graph11->GetZaxis()->SetLabelFont(42); Graph11->GetZaxis()->SetLabelOffset(0.007); Graph11->GetZaxis()->SetTitleSize(0.05); Graph11->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph11); TF1 *user = new TF1("user","[0]*sqrt(x)",0,600); user->SetFillColor(19); user->SetFillStyle(0); user->SetMarkerStyle(20); user->SetLineColor(2); user->SetLineWidth(1); 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.6812953); user->SetParError(0,0.009533002); user->SetParLimits(0,0,0); graph->GetListOfFunctions()->Add(user); TPaveStats *ptstats = new TPaveStats(0.2657744,0.7683924,0.3040153,0.8228883,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(19); ptstats->SetTextAlign(12); ptstats->SetTextFont(42); TText *text = ptstats->AddText("#chi^{2} / ndf = 0 / -1"); text = ptstats->AddText("p0 = 0.6813 #pm 0.009533 "); ptstats->SetOptStat(0); ptstats->SetOptFit(111); ptstats->Draw(); graph->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(graph->GetListOfFunctions()); graph->Draw("ap"); TPaveText *pt = new TPaveText(0.2963671,0.400545,0.4760994,0.4495913,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.03791469); text = pt->AddText("0.681295 * #sqrt{E_{T}}"); pt->Draw(); pt = new TPaveText(0.1759082,0.760218,0.5659656,0.8446866,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.03791469); text = pt->AddText("Events: pp#rightarrow gg "); pt->Draw(); pt = new TPaveText(0.2409178,0.1634877,0.3919694,0.2125341,"brNDC"); pt->SetBorderSize(0); pt->SetFillColor(10); pt->SetTextFont(42); pt->SetTextSize(0.03791469); text = pt->AddText("MG/ME + Delphes"); pt->Draw(); c6->Modified(); c6->cd(); c6->SetSelected(c6); }