{ //=========Macro generated from canvas: c2/ //========= (Thu Apr 21 11:49:52 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.003796924); grae->SetPoint(1,1.75,0); grae->SetPointError(1,0.25,0.25,0,0.0008376165); grae->SetPoint(2,2.25,0.002827141); grae->SetPointError(2,0.25,0.25,0.0009473662,0.001221173); grae->SetPoint(3,2.75,0.00862069); grae->SetPointError(3,0.25,0.25,0.00158158,0.001800233); grae->SetPoint(4,3.5,0.01936401); grae->SetPointError(4,0.5,0.5,0.001782253,0.001896365); grae->SetPoint(5,4.5,0.03979328); grae->SetPointError(5,0.5,0.5,0.003065978,0.003224805); grae->SetPoint(6,5.5,0.1736402); grae->SetPointError(6,0.5,0.5,0.007660075,0.007842279); grae->SetPoint(7,7,0.8546206); grae->SetPointError(7,1,1,0.006923638,0.006745875); grae->SetPoint(8,9,0.9000861); grae->SetPointError(8,1,1,0.0090351,0.008575312); grae->SetPoint(9,11,0.914611); grae->SetPointError(9,1,1,0.01270554,0.01165606); grae->SetPoint(10,16,0.9381044); grae->SetPointError(10,4,4,0.01118006,0.01004818); 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); }