{ //=========Macro generated from canvas: c1/ //========= (Mon May 30 19:35: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(24); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.8066751); grae->SetPointError(0,0.157,0.157,0.004269841,0.004222574); grae->SetPoint(1,-2.669,0.7395506); grae->SetPointError(1,0.157,0.157,0.004672617,0.004636681); grae->SetPoint(2,-2.355,0.8922606); grae->SetPointError(2,0.157,0.157,0.00339542,0.003333826); grae->SetPoint(3,-2.041,0.3547661); grae->SetPointError(3,0.157,0.157,0.00519758,0.005220535); grae->SetPoint(4,-1.727,0.4855758); grae->SetPointError(4,0.157,0.157,0.005307262,0.00530943); grae->SetPoint(5,-1.413,0.4906254); grae->SetPointError(5,0.157,0.157,0.00529907,0.005300489); grae->SetPoint(6,-1.099,0.3544772); grae->SetPointError(6,0.157,0.157,0.005133321,0.005155768); grae->SetPoint(7,-0.785,0.835673); grae->SetPointError(7,0.157,0.157,0.004053575,0.004000722); grae->SetPoint(8,-0.471,0.7437718); grae->SetPointError(8,0.157,0.157,0.004655834,0.004619157); grae->SetPoint(9,-0.157,0.8190498); grae->SetPointError(9,0.157,0.157,0.004181328,0.004131755); grae->SetPoint(10,0.157,0.8139883); grae->SetPointError(10,0.157,0.157,0.004199886,0.004151672); grae->SetPoint(11,0.471,0.7023028); grae->SetPointError(11,0.157,0.157,0.004840357,0.004810334); grae->SetPoint(12,0.785,0.8372259); grae->SetPointError(12,0.157,0.157,0.004058879,0.004005247); grae->SetPoint(13,1.099,0.6878823); grae->SetPointError(13,0.157,0.157,0.005305363,0.005272723); grae->SetPoint(14,1.413,0.7755614); grae->SetPointError(14,0.157,0.157,0.004822085,0.004773496); grae->SetPoint(15,1.727,0.7805433); grae->SetPointError(15,0.157,0.157,0.004815296,0.004765197); grae->SetPoint(16,2.041,0.7246568); grae->SetPointError(16,0.157,0.157,0.005154438,0.005114869); grae->SetPoint(17,2.355,0.8735183); grae->SetPointError(17,0.157,0.157,0.003766243,0.003703367); grae->SetPoint(18,2.669,0.6998044); grae->SetPointError(18,0.157,0.157,0.004934475,0.00490379); grae->SetPoint(19,2.983,0.7855156); grae->SetPointError(19,0.157,0.157,0.004442964,0.004398801); TH1F *Graph1 = new TH1F("Graph1","",100,-3.768,3.768); Graph1->SetMinimum(0.2947188); Graph1->SetMaximum(0.9502195); 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->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,-2.983,0.8156146); grae->SetPointError(0,0.157,0.157,0.01614628,0.01544796); grae->SetPoint(1,-2.669,0.6993769); grae->SetPointError(1,0.157,0.157,0.01828928,0.01787576); grae->SetPoint(2,-2.355,0.8278805); grae->SetPointError(2,0.157,0.157,0.01454353,0.01392203); grae->SetPoint(3,-2.041,0.3729642); grae->SetPointError(3,0.157,0.157,0.01936025,0.01963569); grae->SetPoint(4,-1.727,0.4938272); grae->SetPointError(4,0.157,0.157,0.01961635,0.01962904); grae->SetPoint(5,-1.413,0.4769939); grae->SetPointError(5,0.157,0.157,0.0195199,0.01956687); grae->SetPoint(6,-1.099,0.3861066); grae->SetPointError(6,0.157,0.157,0.01942766,0.0196726); grae->SetPoint(7,-0.785,0.8305648); grae->SetPointError(7,0.157,0.157,0.01564835,0.01491686); grae->SetPoint(8,-0.471,0.6833333); grae->SetPointError(8,0.157,0.157,0.01827802,0.01790812); grae->SetPoint(9,-0.157,0.7816794); grae->SetPointError(9,0.157,0.157,0.01641863,0.01584582); grae->SetPoint(10,0.157,0.7725806); grae->SetPointError(10,0.157,0.157,0.01711563,0.01653013); grae->SetPoint(11,0.471,0.6945338); grae->SetPointError(11,0.157,0.157,0.01866132,0.0182449); grae->SetPoint(12,0.785,0.7919877); grae->SetPointError(12,0.157,0.157,0.01622339,0.01562411); grae->SetPoint(13,1.099,0.5843072); grae->SetPointError(13,0.157,0.157,0.0202104,0.02002305); grae->SetPoint(14,1.413,0.5688406); grae->SetPointError(14,0.157,0.157,0.02113745,0.02097149); grae->SetPoint(15,1.727,0.5976431); grae->SetPointError(15,0.157,0.157,0.02020934,0.01999053); grae->SetPoint(16,2.041,0.6452906); grae->SetPointError(16,0.157,0.157,0.02158359,0.02119623); grae->SetPoint(17,2.355,0.7474403); grae->SetPointError(17,0.157,0.157,0.01821467,0.01765247); grae->SetPoint(18,2.669,0.6671851); grae->SetPointError(18,0.157,0.157,0.01874091,0.01839472); grae->SetPoint(19,2.983,0.7669903); grae->SetPointError(19,0.157,0.157,0.0172814,0.01670607); TH1F *Graph2 = new TH1F("Graph2","",100,-3.768,3.768); Graph2->SetMinimum(0.3044161); Graph2->SetMaximum(0.8946694); 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.4,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.62,0.4,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.5,0.35,"CB muons"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.526,0.3,20); marker->SetMarkerStyle(20); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.3,"Data 2010"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); marker = new TMarker(0.526,0.25,21); marker->SetMarkerColor(2); marker->SetMarkerStyle(21); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.25,"MC"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }