{ //=========Macro generated from canvas: c1/ //========= (Mon May 9 20:45:07 2011) by ROOT version5.28/00b TCanvas *c1 = new TCanvas("c1", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-4.496202,-0.2227848,3.605063,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); TH1F *hframe__1 = new TH1F("hframe__1","",1000,-3.2,3.2); hframe__1->SetMinimum(0); hframe__1->SetMaximum(1.1); hframe__1->SetDirectory(0); hframe__1->SetStats(0); hframe__1->SetLineWidth(2); hframe__1->SetMarkerStyle(20); hframe__1->SetMarkerSize(1.2); hframe__1->GetXaxis()->SetTitle("#font[42]{#phi}"); hframe__1->GetXaxis()->SetLabelFont(42); hframe__1->GetXaxis()->SetLabelSize(0.05); hframe__1->GetXaxis()->SetTitleSize(0.05); hframe__1->GetXaxis()->SetTitleOffset(1.4); hframe__1->GetXaxis()->SetTitleFont(42); hframe__1->GetYaxis()->SetTitle("efficiency"); hframe__1->GetYaxis()->SetLabelFont(42); hframe__1->GetYaxis()->SetLabelSize(0.05); hframe__1->GetYaxis()->SetTitleSize(0.05); hframe__1->GetYaxis()->SetTitleOffset(1.4); hframe__1->GetYaxis()->SetTitleFont(42); hframe__1->GetZaxis()->SetLabelFont(42); hframe__1->GetZaxis()->SetLabelSize(0.05); hframe__1->GetZaxis()->SetTitleSize(0.05); hframe__1->GetZaxis()->SetTitleFont(42); hframe__1->Draw(" "); TGraphAsymmErrors *grae = new TGraphAsymmErrors(20); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(2); grae->SetFillStyle(3001); grae->SetLineColor(2); grae->SetMarkerColor(2); grae->SetMarkerStyle(24); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.85); grae->SetPointError(0,0.157,0.157,0.08880476,0.06673108); grae->SetPoint(1,-2.669,0.75); grae->SetPointError(1,0.157,0.157,0.0796096,0.06967231); grae->SetPoint(2,-2.355,0.9444444); grae->SetPointError(2,0.157,0.157,0.04729073,0.03056507); grae->SetPoint(3,-2.041,0.5384615); grae->SetPointError(3,0.157,0.157,0.09518808,0.09334129); grae->SetPoint(4,-1.727,0.7307692); grae->SetPointError(4,0.157,0.157,0.08982372,0.07867201); grae->SetPoint(5,-1.413,0.7666667); grae->SetPointError(5,0.157,0.157,0.08088596,0.06959982); grae->SetPoint(6,-1.099,0.7297297); grae->SetPointError(6,0.157,0.157,0.07534857,0.06740925); grae->SetPoint(7,-0.785,0.8421053); grae->SetPointError(7,0.157,0.157,0.06409927,0.05245843); grae->SetPoint(8,-0.471,0.7857143); grae->SetPointError(8,0.157,0.157,0.08199163,0.06905537); grae->SetPoint(9,-0.157,0.9117647); grae->SetPointError(9,0.157,0.157,0.05658174,0.0406302); grae->SetPoint(10,0.157,0.875); grae->SetPointError(10,0.157,0.157,0.07645406,0.05640078); grae->SetPoint(11,0.471,0.7419355); grae->SetPointError(11,0.157,0.157,0.08149459,0.0715882); grae->SetPoint(12,0.785,0.7777778); grae->SetPointError(12,0.157,0.157,0.08430382,0.07129671); grae->SetPoint(13,1.099,0.7857143); grae->SetPointError(13,0.157,0.157,0.08199163,0.06905537); grae->SetPoint(14,1.413,0.9333333); grae->SetPointError(14,0.157,0.157,0.0557771,0.03643846); grae->SetPoint(15,1.727,0.8076923); grae->SetPointError(15,0.157,0.157,0.08278035,0.06779015); grae->SetPoint(16,2.041,0.72); grae->SetPointError(16,0.157,0.157,0.09232483,0.08130262); grae->SetPoint(17,2.355,0.8125); grae->SetPointError(17,0.157,0.157,0.07381374,0.06131749); grae->SetPoint(18,2.669,0.85); grae->SetPointError(18,0.157,0.157,0.08880476,0.06673108); grae->SetPoint(19,2.983,1); grae->SetPointError(19,0.157,0.157,0.1337716,0); TH1F *Graph1 = new TH1F("Graph1","",100,-3.768,3.768); Graph1->SetMinimum(0.3876008); Graph1->SetMaximum(1.055673); Graph1->SetDirectory(0); Graph1->SetStats(0); Graph1->SetLineWidth(2); Graph1->SetMarkerStyle(20); Graph1->SetMarkerSize(1.2); 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()->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("e3"); grae = new TGraphAsymmErrors(20); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(3); grae->SetFillStyle(3001); grae->SetLineColor(2); grae->SetMarkerColor(2); grae->SetMarkerStyle(24); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.8679907); grae->SetPointError(0,0.157,0.157,0.008327407,0.008040618); grae->SetPoint(1,-2.669,0.8242188); grae->SetPointError(1,0.157,0.157,0.007610269,0.007441282); grae->SetPoint(2,-2.355,0.8958258); grae->SetPointError(2,0.157,0.157,0.005919192,0.005727425); grae->SetPoint(3,-2.041,0.7577339); grae->SetPointError(3,0.157,0.157,0.008338504,0.008210322); grae->SetPoint(4,-1.727,0.8055556); grae->SetPointError(4,0.157,0.157,0.007800637,0.007645505); grae->SetPoint(5,-1.413,0.794702); grae->SetPointError(5,0.157,0.157,0.008051599,0.007898416); grae->SetPoint(6,-1.099,0.7746171); grae->SetPointError(6,0.157,0.157,0.008048982,0.007915359); grae->SetPoint(7,-0.785,0.8867384); grae->SetPointError(7,0.157,0.157,0.006095429,0.005910426); grae->SetPoint(8,-0.471,0.8218263); grae->SetPointError(8,0.157,0.157,0.006896793,0.006760152); grae->SetPoint(9,-0.157,0.8861993); grae->SetPointError(9,0.157,0.157,0.005714649,0.005552608); grae->SetPoint(10,0.157,0.8840049); grae->SetPointError(10,0.157,0.157,0.005675877,0.005519432); grae->SetPoint(11,0.471,0.8343797); grae->SetPointError(11,0.157,0.157,0.006497077,0.006363667); grae->SetPoint(12,0.785,0.8751226); grae->SetPointError(12,0.157,0.157,0.006061877,0.005898217); grae->SetPoint(13,1.099,0.7981021); grae->SetPointError(13,0.157,0.157,0.007329317,0.007199151); grae->SetPoint(14,1.413,0.8269611); grae->SetPointError(14,0.157,0.157,0.006942426,0.006798616); grae->SetPoint(15,1.727,0.8553676); grae->SetPointError(15,0.157,0.157,0.006619654,0.006455948); grae->SetPoint(16,2.041,0.8237254); grae->SetPointError(16,0.157,0.157,0.007030763,0.006886807); grae->SetPoint(17,2.355,0.8546492); grae->SetPointError(17,0.157,0.157,0.006539928,0.006381065); grae->SetPoint(18,2.669,0.8322072); grae->SetPointError(18,0.157,0.157,0.007326028,0.007159628); grae->SetPoint(19,2.983,0.8865639); grae->SetPointError(19,0.157,0.157,0.007587118,0.007303074); TH1F *Graph2 = new TH1F("Graph2","",100,-3.768,3.768); Graph2->SetMinimum(0.7341796); Graph2->SetMaximum(0.916769); Graph2->SetDirectory(0); Graph2->SetStats(0); Graph2->SetLineWidth(2); Graph2->SetMarkerStyle(20); Graph2->SetMarkerSize(1.2); 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()->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("p"); TLatex * tex = new TLatex(0.65,0.55,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.77,0.55,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.5,"CB muons"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.676,0.45,24); marker->SetMarkerColor(2); marker->SetMarkerStyle(24); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.7,0.45,"Data 2010"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.38,"#sqrt{s}= 7 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }