{ //=========Macro generated from canvas: c1/ //========= (Tue May 31 18:48:47 2011) by ROOT version5.28/00b TCanvas *c1 = new TCanvas("c1", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-1.617647,-0.2025316,1.617647,1.063291); 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,-1.1,1.1); hframe__1->SetMinimum(0); hframe__1->SetMaximum(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]{#eta}"); 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("#font[42]{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(12); 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,-1.118333,0.2307692); grae->SetPointError(0,0.1016667,0.1016667,0.04186162,0.04574559); grae->SetPoint(1,-0.915,0.2685714); grae->SetPointError(1,0.1016667,0.1016667,0.0190303,0.01961698); grae->SetPoint(2,-0.7116667,0.3034483); grae->SetPointError(2,0.1016667,0.1016667,0.02171043,0.02231133); grae->SetPoint(3,-0.5083333,0.3386076); grae->SetPointError(3,0.1016667,0.1016667,0.02622001,0.02689815); grae->SetPoint(4,-0.305,0.3633218); grae->SetPointError(4,0.1016667,0.1016667,0.02790189,0.02852948); grae->SetPoint(5,-0.1016667,0.3557692); grae->SetPointError(5,0.1016667,0.1016667,0.03260503,0.03352308); grae->SetPoint(6,0.1016667,0.3293651); grae->SetPointError(6,0.1016667,0.1016667,0.02906609,0.02996395); grae->SetPoint(7,0.305,0.3719008); grae->SetPointError(7,0.1016667,0.1016667,0.03061383,0.03131543); grae->SetPoint(8,0.5083333,0.427907); grae->SetPointError(8,0.1016667,0.1016667,0.03338844,0.03383241); grae->SetPoint(9,0.7116667,0.3448276); grae->SetPointError(9,0.1016667,0.1016667,0.03065513,0.03154145); grae->SetPoint(10,0.915,0.340081); grae->SetPointError(10,0.1016667,0.1016667,0.02961795,0.03047631); grae->SetPoint(11,1.118333,0.3409091); grae->SetPointError(11,0.1016667,0.1016667,0.06768669,0.07233104); TH1F *Graph1 = new TH1F("Graph1","",100,-1.464,1.464); Graph1->SetMinimum(0.1616244); Graph1->SetMaximum(0.4890226); 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("p"); grae = new TGraphAsymmErrors(12); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(4); grae->SetFillStyle(3001); grae->SetLineColor(4); grae->SetMarkerColor(4); grae->SetMarkerStyle(22); grae->SetMarkerSize(1.2); grae->SetPoint(0,-1.118333,0.2777778); grae->SetPointError(0,0.1016667,0.1016667,0.06897778,0.07685882); grae->SetPoint(1,-0.915,0.3430962); grae->SetPointError(1,0.1016667,0.1016667,0.03017156,0.03104171); grae->SetPoint(2,-0.7116667,0.3287671); grae->SetPointError(2,0.1016667,0.1016667,0.03111063,0.03214636); grae->SetPoint(3,-0.5083333,0.4094828); grae->SetPointError(3,0.1016667,0.1016667,0.03191009,0.032427); grae->SetPoint(4,-0.305,0.4389313); grae->SetPointError(4,0.1016667,0.1016667,0.03040825,0.03071731); grae->SetPoint(5,-0.1016667,0.3632479); grae->SetPointError(5,0.1016667,0.1016667,0.0309438,0.03171822); grae->SetPoint(6,0.1016667,0.32); grae->SetPointError(6,0.1016667,0.1016667,0.03225723,0.0334486); grae->SetPoint(7,0.305,0.3343558); grae->SetPointError(7,0.1016667,0.1016667,0.0257325,0.02640728); grae->SetPoint(8,0.5083333,0.3674699); grae->SetPointError(8,0.1016667,0.1016667,0.02613469,0.02666482); grae->SetPoint(9,0.7116667,0.3175355); grae->SetPointError(9,0.1016667,0.1016667,0.02233821,0.02291314); grae->SetPoint(10,0.915,0.2956081); grae->SetPointError(10,0.1016667,0.1016667,0.01850787,0.01896749); grae->SetPoint(11,1.118333,0.2954545); grae->SetPointError(11,0.1016667,0.1016667,0.04664869,0.04969388); TH1F *Graph2 = new TH1F("Graph2","",100,-1.464,1.464); Graph2->SetMinimum(0.1827151); Graph2->SetMaximum(0.4957335); 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.9,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.62,0.9,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.5,0.85,"CB muons |#eta| < 1.05"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.5,0.8,"Data 2010 #sqrt{s}= 7 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.526,0.75,20); marker->SetMarkerColor(2); marker->SetMarkerStyle(20); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.75,"L1_MU6 #mu+"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); marker = new TMarker(0.526,0.7,22); marker->SetMarkerColor(4); marker->SetMarkerStyle(22); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.7,"L1_MU6 #mu-"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }