{ //=========Macro generated from canvas: c1/ //========= (Thu May 26 19:53:40 2011) by ROOT version5.28/00b TCanvas *c1 = new TCanvas("c1", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-4.705882,-0.2227848,4.705882,1.16962); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetRightMargin(0.16); 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(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.7323162); grae->SetPointError(0,0.157,0.157,0.01176725,0.01155241); grae->SetPoint(1,-2.669,0.7421875); grae->SetPointError(1,0.157,0.157,0.01126728,0.01105701); grae->SetPoint(2,-2.355,0.8560916); grae->SetPointError(2,0.157,0.157,0.01023284,0.009844497); grae->SetPoint(3,-2.041,0.4653543); grae->SetPointError(3,0.157,0.157,0.01397642,0.01401279); grae->SetPoint(4,-1.727,0.6051423); grae->SetPointError(4,0.157,0.157,0.01487326,0.01474458); grae->SetPoint(5,-1.413,0.563654); grae->SetPointError(5,0.157,0.157,0.0154964,0.01541395); grae->SetPoint(6,-1.099,0.5498783); grae->SetPointError(6,0.157,0.157,0.01419289,0.01413896); grae->SetPoint(7,-0.785,0.8070767); grae->SetPointError(7,0.157,0.157,0.01162592,0.01128096); grae->SetPoint(8,-0.471,0.7200811); grae->SetPointError(8,0.157,0.157,0.01177374,0.01157531); grae->SetPoint(9,-0.157,0.8199234); grae->SetPointError(9,0.157,0.157,0.009848196,0.009575697); grae->SetPoint(10,0.157,0.8210526); grae->SetPointError(10,0.157,0.157,0.009974373,0.009692643); grae->SetPoint(11,0.471,0.7066327); grae->SetPointError(11,0.157,0.157,0.01158678,0.01141104); grae->SetPoint(12,0.785,0.7970909); grae->SetPointError(12,0.157,0.157,0.01099065,0.01070251); grae->SetPoint(13,1.099,0.6541502); grae->SetPointError(13,0.157,0.157,0.01227594,0.01214052); grae->SetPoint(14,1.413,0.7994705); grae->SetPointError(14,0.157,0.157,0.01043416,0.01016981); grae->SetPoint(15,1.727,0.793883); grae->SetPointError(15,0.157,0.157,0.01056235,0.01030172); grae->SetPoint(16,2.041,0.7090546); grae->SetPointError(16,0.157,0.157,0.0118128,0.01162719); grae->SetPoint(17,2.355,0.7623318); grae->SetPointError(17,0.157,0.157,0.01176765,0.01150621); grae->SetPoint(18,2.669,0.6824183); grae->SetPointError(18,0.157,0.157,0.01235666,0.01218761); grae->SetPoint(19,2.983,0.7512438); grae->SetPointError(19,0.157,0.157,0.01164421,0.0114061); TH1F *Graph1 = new TH1F("Graph1","",100,-3.768,3.768); Graph1->SetMinimum(0.4099221); Graph1->SetMaximum(0.9073919); 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(1); grae->SetFillStyle(3001); grae->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.7454545); grae->SetPointError(0,0.157,0.157,0.06077409,0.05498441); grae->SetPoint(1,-2.669,0.7755102); grae->SetPointError(1,0.157,0.157,0.06233065,0.0550504); grae->SetPoint(2,-2.355,0.85); grae->SetPointError(2,0.157,0.157,0.06138814,0.05004238); grae->SetPoint(3,-2.041,0.2903226); grae->SetPointError(3,0.157,0.157,0.07501126,0.08358082); grae->SetPoint(4,-1.727,0.5365854); grae->SetPointError(4,0.157,0.157,0.0766629,0.07552175); grae->SetPoint(5,-1.413,0.6904762); grae->SetPointError(5,0.157,0.157,0.0727679,0.06694806); grae->SetPoint(6,-1.099,0.5625); grae->SetPointError(6,0.157,0.157,0.0710452,0.0693695); grae->SetPoint(7,-0.785,0.9230769); grae->SetPointError(7,0.157,0.157,0.04247807,0.03166068); grae->SetPoint(8,-0.471,0.6885246); grae->SetPointError(8,0.157,0.157,0.06045732,0.05644296); grae->SetPoint(9,-0.157,0.7377049); grae->SetPointError(9,0.157,0.157,0.05810503,0.0530369); grae->SetPoint(10,0.157,0.8510638); grae->SetPointError(10,0.157,0.157,0.05622138,0.04649345); grae->SetPoint(11,0.471,0.8679245); grae->SetPointError(11,0.157,0.157,0.05067634,0.04158838); grae->SetPoint(12,0.785,0.8076923); grae->SetPointError(12,0.157,0.157,0.05778786,0.05009702); grae->SetPoint(13,1.099,0.6666667); grae->SetPointError(13,0.157,0.157,0.06509263,0.06109955); grae->SetPoint(14,1.413,0.7735849); grae->SetPointError(14,0.157,0.157,0.06001613,0.05331787); grae->SetPoint(15,1.727,0.7894737); grae->SetPointError(15,0.157,0.157,0.05661982,0.05001141); grae->SetPoint(16,2.041,0.7962963); grae->SetPointError(16,0.157,0.157,0.05765749,0.05052446); grae->SetPoint(17,2.355,0.745098); grae->SetPointError(17,0.157,0.157,0.06317263,0.05695178); grae->SetPoint(18,2.669,0.75); grae->SetPointError(18,0.157,0.157,0.06482646,0.05809588); grae->SetPoint(19,2.983,0.754386); grae->SetPointError(19,0.157,0.157,0.05912436,0.0533268); TH1F *Graph2 = new TH1F("Graph2","",100,-3.768,3.768); Graph2->SetMinimum(0.1413687); Graph2->SetMaximum(1.02868); 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.5,0.45,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.62,0.45,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.55,0.4,"CB muons"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.526,0.35,20); marker->SetMarkerStyle(20); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.35,"Data 2010"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); marker = new TMarker(0.526,0.3,21); marker->SetMarkerColor(2); marker->SetMarkerStyle(21); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.3,"MC"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }