{ //=========Macro generated from canvas: c2/ //========= (Thu Apr 21 11:51:15 2011) by ROOT version5.28/00b TCanvas *c2 = new TCanvas("c2", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c2->Range(-4.435443,-0.2227848,23.28608,1.16962); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetTickx(1); c2->SetTicky(1); c2->SetLeftMargin(0.16); c2->SetRightMargin(0.05); c2->SetTopMargin(0.05); c2->SetBottomMargin(0.16); c2->SetFrameBorderMode(0); c2->SetFrameBorderMode(0); TGraphAsymmErrors *grae = new TGraphAsymmErrors(11); grae->SetName("Graph"); grae->SetTitle("Graph"); grae->SetLineWidth(2); grae->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,1.25,0); grae->SetPointError(0,0.25,0.25,0,0.009449725); grae->SetPoint(1,1.75,0); grae->SetPointError(1,0.25,0.25,0,0.001683118); grae->SetPoint(2,2.25,0.003415884); grae->SetPointError(2,0.25,0.25,0.001458723,0.002045888); grae->SetPoint(3,2.75,0.009993338); grae->SetPointError(3,0.25,0.25,0.00236597,0.002805666); grae->SetPoint(4,3.5,0.0176448); grae->SetPointError(4,0.5,0.5,0.00246129,0.002708925); grae->SetPoint(5,4.5,0.03838174); grae->SetPointError(5,0.5,0.5,0.004221719,0.004541664); grae->SetPoint(6,5.5,0.1663701); grae->SetPointError(6,0.5,0.5,0.010911,0.01130682); grae->SetPoint(7,7,0.8524465); grae->SetPointError(7,1,1,0.009988076,0.00962867); grae->SetPoint(8,9,0.9194991); grae->SetPointError(8,1,1,0.01201644,0.01101514); grae->SetPoint(9,11,0.9322034); grae->SetPointError(9,1,1,0.01761971,0.0151743); grae->SetPoint(10,16,0.9192825); grae->SetPointError(10,4,4,0.01951086,0.01700433); TH1F *Graph2 = new TH1F("Graph2","Graph",100,0,21.9); Graph2->SetMinimum(0); Graph2->SetMaximum(1.1); Graph2->SetDirectory(0); Graph2->SetStats(0); Graph2->SetLineWidth(2); Graph2->SetMarkerStyle(20); Graph2->SetMarkerSize(1.2); Graph2->GetXaxis()->SetTitle("p_{T} [GeV]"); Graph2->GetXaxis()->SetLabelFont(42); Graph2->GetXaxis()->SetLabelSize(0.05); Graph2->GetXaxis()->SetTitleSize(0.05); Graph2->GetXaxis()->SetTitleOffset(1.4); Graph2->GetXaxis()->SetTitleFont(42); Graph2->GetYaxis()->SetTitle("#font[42]{EF_MU6 efficiency w.r.t. to offline}"); Graph2->GetYaxis()->SetLabelFont(42); Graph2->GetYaxis()->SetLabelSize(0.05); Graph2->GetYaxis()->SetTitleSize(0.05); Graph2->GetYaxis()->SetTitleOffset(1.4); Graph2->GetYaxis()->SetTitleFont(42); Graph2->GetZaxis()->SetLabelFont(42); Graph2->GetZaxis()->SetLabelSize(0.05); Graph2->GetZaxis()->SetTitleSize(0.05); Graph2->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph2); grae->Draw("ap"); TLatex * tex = new TLatex(0.55,0.45,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.67,0.45,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.6,0.4,"CB muons"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.6,0.35,"|#eta| > 1.05"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.576,0.3,20); marker->SetMarkerStyle(20); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.6,0.3,"Data 2010"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.6,0.23,"#sqrt{s}= 7 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c2->Modified(); c2->cd(); c2->SetSelected(c2); }