{ //=========Macro generated from canvas: c2/ //========= (Mon May 30 19:35:40 2011) by ROOT version5.28/00b TCanvas *c2 = new TCanvas("c2", "",10,32,700,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c2->Range(-1.617647,-0.2227848,1.617647,1.16962); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetTickx(1); c2->SetTicky(1); c2->SetLeftMargin(0.16); c2->SetRightMargin(0.16); c2->SetTopMargin(0.05); c2->SetBottomMargin(0.16); c2->SetFrameBorderMode(0); c2->SetFrameBorderMode(0); TH1F *hframe__2 = new TH1F("hframe__2","",1000,-1.1,1.1); hframe__2->SetMinimum(0); hframe__2->SetMaximum(1.1); hframe__2->SetDirectory(0); hframe__2->SetStats(0); hframe__2->SetLineWidth(2); hframe__2->SetMarkerStyle(20); hframe__2->SetMarkerSize(1.2); hframe__2->GetXaxis()->SetTitle("#font[42]{#eta}"); hframe__2->GetXaxis()->SetLabelFont(42); hframe__2->GetXaxis()->SetLabelSize(0.05); hframe__2->GetXaxis()->SetTitleSize(0.05); hframe__2->GetXaxis()->SetTitleOffset(1.4); hframe__2->GetXaxis()->SetTitleFont(42); hframe__2->GetYaxis()->SetTitle("efficiency"); hframe__2->GetYaxis()->SetLabelFont(42); hframe__2->GetYaxis()->SetLabelSize(0.05); hframe__2->GetYaxis()->SetTitleSize(0.05); hframe__2->GetYaxis()->SetTitleOffset(1.4); hframe__2->GetYaxis()->SetTitleFont(42); hframe__2->GetZaxis()->SetLabelFont(42); hframe__2->GetZaxis()->SetLabelSize(0.05); hframe__2->GetZaxis()->SetTitleSize(0.05); hframe__2->GetZaxis()->SetTitleFont(42); hframe__2->Draw(" "); TGraphAsymmErrors *grae = new TGraphAsymmErrors(22); 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,-1.0675,0.3555018); grae->SetPointError(0,0.05083333,0.05083333,0.009573487,0.009651191); grae->SetPoint(1,-0.9658333,0.5640178); grae->SetPointError(1,0.05083333,0.05083333,0.005599859,0.005588985); grae->SetPoint(2,-0.8641667,0.7994368); grae->SetPointError(2,0.05083333,0.05083333,0.004457749,0.00440881); grae->SetPoint(3,-0.7625,0.5982345); grae->SetPointError(3,0.05083333,0.05083333,0.005365165,0.005349536); grae->SetPoint(4,-0.6608333,0.7438951); grae->SetPointError(4,0.05083333,0.05083333,0.004809403,0.004770245); grae->SetPoint(5,-0.5591667,0.7696141); grae->SetPointError(5,0.05083333,0.05083333,0.004556309,0.004514619); grae->SetPoint(6,-0.4575,0.6737274); grae->SetPointError(6,0.05083333,0.05083333,0.005019235,0.004992806); grae->SetPoint(7,-0.3558333,0.7463835); grae->SetPointError(7,0.05083333,0.05083333,0.004683286,0.004645532); grae->SetPoint(8,-0.2541667,0.7521396); grae->SetPointError(8,0.05083333,0.05083333,0.00457321,0.004535809); grae->SetPoint(9,-0.1525,0.7857874); grae->SetPointError(9,0.05083333,0.05083333,0.004398896,0.004355518); grae->SetPoint(10,-0.05083333,0.5363366); grae->SetPointError(10,0.05083333,0.05083333,0.007277602,0.007267298); grae->SetPoint(11,0.05083333,0.6230182); grae->SetPointError(11,0.05083333,0.05083333,0.006799323,0.006767203); grae->SetPoint(12,0.1525,0.771403); grae->SetPointError(12,0.05083333,0.05083333,0.004467997,0.004427397); grae->SetPoint(13,0.2541667,0.7565198); grae->SetPointError(13,0.05083333,0.05083333,0.004542693,0.004504703); grae->SetPoint(14,0.3558333,0.7928547); grae->SetPointError(14,0.05083333,0.05083333,0.004326701,0.004282645); grae->SetPoint(15,0.4575,0.6988034); grae->SetPointError(15,0.05083333,0.05083333,0.004915306,0.004885058); grae->SetPoint(16,0.5591667,0.8075617); grae->SetPointError(16,0.05083333,0.05083333,0.004291495,0.004243434); grae->SetPoint(17,0.6608333,0.7677859); grae->SetPointError(17,0.05083333,0.05083333,0.00459852,0.004556564); grae->SetPoint(18,0.7625,0.6120317); grae->SetPointError(18,0.05083333,0.05083333,0.005351457,0.005333492); grae->SetPoint(19,0.8641667,0.8111398); grae->SetPointError(19,0.05083333,0.05083333,0.004367966,0.004316897); grae->SetPoint(20,0.9658333,0.6074056); grae->SetPointError(20,0.05083333,0.05083333,0.005464291,0.005446415); grae->SetPoint(21,1.0675,0.3956349); grae->SetPointError(21,0.05083333,0.05083333,0.009715683,0.009770938); TH1F *Graph3 = new TH1F("Graph3","",100,-1.342,1.342); Graph3->SetMinimum(0.2989755); Graph3->SetMaximum(0.8624095); Graph3->SetDirectory(0); Graph3->SetStats(0); Graph3->SetLineWidth(2); Graph3->SetMarkerStyle(20); Graph3->SetMarkerSize(1.2); Graph3->GetXaxis()->SetLabelFont(42); Graph3->GetXaxis()->SetLabelSize(0.05); Graph3->GetXaxis()->SetTitleSize(0.05); Graph3->GetXaxis()->SetTitleOffset(1.4); Graph3->GetXaxis()->SetTitleFont(42); Graph3->GetYaxis()->SetLabelFont(42); Graph3->GetYaxis()->SetLabelSize(0.05); Graph3->GetYaxis()->SetTitleSize(0.05); Graph3->GetYaxis()->SetTitleOffset(1.4); Graph3->GetYaxis()->SetTitleFont(42); Graph3->GetZaxis()->SetLabelFont(42); Graph3->GetZaxis()->SetLabelSize(0.05); Graph3->GetZaxis()->SetTitleSize(0.05); Graph3->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph3); grae->Draw("e3"); grae = new TGraphAsymmErrors(22); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(3); grae->SetFillStyle(3001); grae->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,-1.0675,0.3383838); grae->SetPointError(0,0.05083333,0.05083333,0.03294738,0.03402767); grae->SetPoint(1,-0.9658333,0.5701754); grae->SetPointError(1,0.05083333,0.05083333,0.02079464,0.02063078); grae->SetPoint(2,-0.8641667,0.7676282); grae->SetPointError(2,0.05083333,0.05083333,0.01718153,0.01661036); grae->SetPoint(3,-0.7625,0.4788274); grae->SetPointError(3,0.05083333,0.05083333,0.02011748,0.02016338); grae->SetPoint(4,-0.6608333,0.7068404); grae->SetPointError(4,0.05083333,0.05083333,0.01857973,0.01813121); grae->SetPoint(5,-0.5591667,0.7481371); grae->SetPointError(5,0.05083333,0.05083333,0.01699328,0.01650075); grae->SetPoint(6,-0.4575,0.6179604); grae->SetPointError(6,0.05083333,0.05083333,0.01905986,0.01882079); grae->SetPoint(7,-0.3558333,0.6936236); grae->SetPointError(7,0.05083333,0.05083333,0.01836571,0.01796475); grae->SetPoint(8,-0.2541667,0.7152104); grae->SetPointError(8,0.05083333,0.05083333,0.01837163,0.01790796); grae->SetPoint(9,-0.1525,0.7391304); grae->SetPointError(9,0.05083333,0.05083333,0.01722991,0.01675243); grae->SetPoint(10,-0.05083333,0.4890966); grae->SetPointError(10,0.05083333,0.05083333,0.02780939,0.02785449); grae->SetPoint(11,0.05083333,0.6145251); grae->SetPointError(11,0.05083333,0.05083333,0.0258824,0.02545741); grae->SetPoint(12,0.1525,0.7340426); grae->SetPointError(12,0.05083333,0.05083333,0.0174498,0.01697611); grae->SetPoint(13,0.2541667,0.6656299); grae->SetPointError(13,0.05083333,0.05083333,0.0187609,0.01841792); grae->SetPoint(14,0.3558333,0.7313433); grae->SetPointError(14,0.05083333,0.05083333,0.01734314,0.01688329); grae->SetPoint(15,0.4575,0.6633499); grae->SetPointError(15,0.05083333,0.05083333,0.01940678,0.01904616); grae->SetPoint(16,0.5591667,0.7687596); grae->SetPointError(16,0.05083333,0.05083333,0.01676349,0.01621531); grae->SetPoint(17,0.6608333,0.7162791); grae->SetPointError(17,0.05083333,0.05083333,0.01796033,0.01751381); grae->SetPoint(18,0.7625,0.5472973); grae->SetPointError(18,0.05083333,0.05083333,0.02048965,0.02038331); grae->SetPoint(19,0.8641667,0.7420436); grae->SetPointError(19,0.05083333,0.05083333,0.01816161,0.01762179); grae->SetPoint(20,0.9658333,0.5699115); grae->SetPointError(20,0.05083333,0.05083333,0.02088774,0.02072307); grae->SetPoint(21,1.0675,0.3623188); grae->SetPointError(21,0.05083333,0.05083333,0.03283543,0.03371597); TH1F *Graph4 = new TH1F("Graph4","",100,-1.342,1.342); Graph4->SetMinimum(0.2574826); Graph4->SetMaximum(0.8329287); Graph4->SetDirectory(0); Graph4->SetStats(0); Graph4->SetLineWidth(2); Graph4->SetMarkerStyle(20); Graph4->SetMarkerSize(1.2); Graph4->GetXaxis()->SetLabelFont(42); Graph4->GetXaxis()->SetLabelSize(0.05); Graph4->GetXaxis()->SetTitleSize(0.05); Graph4->GetXaxis()->SetTitleOffset(1.4); Graph4->GetXaxis()->SetTitleFont(42); Graph4->GetYaxis()->SetLabelFont(42); Graph4->GetYaxis()->SetLabelSize(0.05); Graph4->GetYaxis()->SetTitleSize(0.05); Graph4->GetYaxis()->SetTitleOffset(1.4); Graph4->GetYaxis()->SetTitleFont(42); Graph4->GetZaxis()->SetLabelFont(42); Graph4->GetZaxis()->SetLabelSize(0.05); Graph4->GetZaxis()->SetTitleSize(0.05); Graph4->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph4); 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(); c2->Modified(); c2->cd(); c2->SetSelected(c2); }