{ //=========Macro generated from canvas: c1/ //========= (Tue May 31 19:40:02 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.6741573); grae->SetPointError(0,0.1016667,0.1016667,0.05047788,0.04791481); grae->SetPoint(1,-0.915,0.683908); grae->SetPointError(1,0.1016667,0.1016667,0.02056154,0.02009271); grae->SetPoint(2,-0.7116667,0.691358); grae->SetPointError(2,0.1016667,0.1016667,0.02323023,0.02260206); grae->SetPoint(3,-0.5083333,0.7060932); grae->SetPointError(3,0.1016667,0.1016667,0.0276922,0.0267119); grae->SetPoint(4,-0.305,0.7657993); grae->SetPointError(4,0.1016667,0.1016667,0.02641466,0.02510307); grae->SetPoint(5,-0.1016667,0.5530726); grae->SetPointError(5,0.1016667,0.1016667,0.03717526,0.03678335); grae->SetPoint(6,0.1016667,0.6486486); grae->SetPointError(6,0.1016667,0.1016667,0.03236716,0.03148017); grae->SetPoint(7,0.305,0.7101449); grae->SetPointError(7,0.1016667,0.1016667,0.03208944,0.03074494); grae->SetPoint(8,0.5083333,0.6875); grae->SetPointError(8,0.1016667,0.1016667,0.03548252,0.03407382); grae->SetPoint(9,0.7116667,0.591133); grae->SetPointError(9,0.1016667,0.1016667,0.03465808,0.03406395); grae->SetPoint(10,0.915,0.4246575); grae->SetPointError(10,0.1016667,0.1016667,0.03304459,0.03350017); grae->SetPoint(11,1.118333,0.3333333); grae->SetPointError(11,0.1016667,0.1016667,0.07368149,0.07957984); TH1F *Graph1 = new TH1F("Graph1","",100,-1.464,1.464); Graph1->SetMinimum(0.2065268); Graph1->SetMaximum(0.8440274); 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.4848485); grae->SetPointError(0,0.1016667,0.1016667,0.08423175,0.08481292); grae->SetPoint(1,-0.915,0.4741784); grae->SetPointError(1,0.1016667,0.1016667,0.03399588,0.03415636); grae->SetPoint(2,-0.7116667,0.6444444); grae->SetPointError(2,0.1016667,0.1016667,0.03604329,0.03498224); grae->SetPoint(3,-0.5083333,0.6340206); grae->SetPointError(3,0.1016667,0.1016667,0.03489243,0.03397841); grae->SetPoint(4,-0.305,0.6696833); grae->SetPointError(4,0.1016667,0.1016667,0.03203233,0.0310152); grae->SetPoint(5,-0.1016667,0.745098); grae->SetPointError(5,0.1016667,0.1016667,0.03120007,0.02960857); grae->SetPoint(6,0.1016667,0.5135135); grae->SetPointError(6,0.1016667,0.1016667,0.03662188,0.0365253); grae->SetPoint(7,0.305,0.7491857); grae->SetPointError(7,0.1016667,0.1016667,0.0252265,0.02414848); grae->SetPoint(8,0.5083333,0.757377); grae->SetPointError(8,0.1016667,0.1016667,0.02505433,0.02393353); grae->SetPoint(9,0.7116667,0.7241379); grae->SetPointError(9,0.1016667,0.1016667,0.0225145,0.02178044); grae->SetPoint(10,0.915,0.7113402); grae->SetPointError(10,0.1016667,0.1016667,0.01900789,0.01852447); grae->SetPoint(11,1.118333,0.6477273); grae->SetPointError(11,0.1016667,0.1016667,0.05150617,0.0493085); TH1F *Graph2 = new TH1F("Graph2","",100,-1.464,1.464); Graph2->SetMinimum(0.3625473); Graph2->SetMaximum(0.81938); 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.5,0.4,"CB muons |#eta| < 1.05"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.5,0.35,"Data 2010 #sqrt{s}= 7 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); TMarker *marker = new TMarker(0.526,0.3,20); marker->SetMarkerColor(2); marker->SetMarkerStyle(20); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.3,"L1_MU6 #mu+"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); marker = new TMarker(0.526,0.25,22); marker->SetMarkerColor(4); marker->SetMarkerStyle(22); marker->SetMarkerSize(1.3); marker->Draw(); tex = new TLatex(0.55,0.25,"L1_MU6 #mu-"); tex->SetNDC(); tex->SetTextAlign(12); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }