{ //=========Macro generated from canvas: c1/ //========= (Thu Apr 21 11:49:52 2011) by ROOT version5.28/00b TCanvas *c1 = new TCanvas("c1", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-4.174683,-0.2227848,23.16709,1.16962); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetRightMargin(0.05); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TGraphAsymmErrors *grae = new TGraphAsymmErrors(9); grae->SetName("Graph"); grae->SetTitle("BARREL"); grae->SetLineWidth(2); grae->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,2.25,0); grae->SetPointError(0,0.25,0.25,0,0.09917226); grae->SetPoint(1,2.75,0.004329004); grae->SetPointError(1,0.25,0.25,0.003159572,0.006432667); grae->SetPoint(2,3.5,0.01506781); grae->SetPointError(2,0.5,0.5,0.002577008,0.002903494); grae->SetPoint(3,4.5,0.02001195); grae->SetPointError(3,0.5,0.5,0.002329016,0.002520728); grae->SetPoint(4,5.5,0.1127946); grae->SetPointError(4,0.5,0.5,0.006384337,0.006601821); grae->SetPoint(5,7,0.7374074); grae->SetPointError(5,1,1,0.00852999,0.008412675); grae->SetPoint(6,9,0.780303); grae->SetPointError(6,1,1,0.01216951,0.01185492); grae->SetPoint(7,11,0.7668488); grae->SetPointError(7,1,1,0.01835439,0.0177073); grae->SetPoint(8,16,0.775475); grae->SetPointError(8,4,4,0.01764489,0.01701138); TH1F *Graph1 = new TH1F("Graph1","BARREL",100,0.2,21.8); Graph1->SetMinimum(0); Graph1->SetMaximum(1.1); Graph1->SetDirectory(0); Graph1->SetStats(0); Graph1->SetLineWidth(2); Graph1->SetMarkerStyle(20); Graph1->SetMarkerSize(1.2); Graph1->GetXaxis()->SetTitle("p_{T} [GeV]"); Graph1->GetXaxis()->SetLabelFont(42); Graph1->GetXaxis()->SetLabelSize(0.05); Graph1->GetXaxis()->SetTitleSize(0.05); Graph1->GetXaxis()->SetTitleOffset(1.4); Graph1->GetXaxis()->SetTitleFont(42); Graph1->GetYaxis()->SetTitle("#font[42]{EF_MU6 efficiency w.r.t. to offline}"); Graph1->GetYaxis()->SetLabelFont(42); Graph1->GetYaxis()->SetLabelSize(0.05); Graph1->GetYaxis()->SetTitleSize(0.05); Graph1->GetYaxis()->SetTitleOffset(1.4); Graph1->GetYaxis()->SetTitleFont(42); Graph1->GetZaxis()->SetLabelFont(42); Graph1->GetZaxis()->SetLabelSize(0.05); Graph1->GetZaxis()->SetTitleSize(0.05); Graph1->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph1); 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(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }