{ //=========Macro generated from canvas: c2/ //========= (Thu May 26 19:53: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.7439024); grae->SetPointError(0,0.05083333,0.05083333,0.01998597,0.01932628); grae->SetPoint(1,-0.9658333,0.7040478); grae->SetPointError(1,0.05083333,0.05083333,0.0118493,0.01166875); grae->SetPoint(2,-0.8641667,0.7082228); grae->SetPointError(2,0.05083333,0.05083333,0.01179857,0.01161445); grae->SetPoint(3,-0.7625,0.6352854); grae->SetPointError(3,0.05083333,0.05083333,0.01317144,0.01303773); grae->SetPoint(4,-0.6608333,0.7518574); grae->SetPointError(4,0.05083333,0.05083333,0.01189812,0.01164862); grae->SetPoint(5,-0.5591667,0.8351279); grae->SetPointError(5,0.05083333,0.05083333,0.00977835,0.00947752); grae->SetPoint(6,-0.4575,0.7329721); grae->SetPointError(6,0.05083333,0.05083333,0.01242786,0.01218742); grae->SetPoint(7,-0.3558333,0.7332229); grae->SetPointError(7,0.05083333,0.05083333,0.01285804,0.01260042); grae->SetPoint(8,-0.2541667,0.7486549); grae->SetPointError(8,0.05083333,0.05083333,0.0121537,0.01189885); grae->SetPoint(9,-0.1525,0.6795539); grae->SetPointError(9,0.05083333,0.05083333,0.01281246,0.01263447); grae->SetPoint(10,-0.05083333,0.5496278); grae->SetPointError(10,0.05083333,0.05083333,0.01755541,0.01747339); grae->SetPoint(11,0.05083333,0.5160051); grae->SetPointError(11,0.05083333,0.05083333,0.0178845,0.0178572); grae->SetPoint(12,0.1525,0.6218487); grae->SetPointError(12,0.05083333,0.05083333,0.01346381,0.0133397); grae->SetPoint(13,0.2541667,0.7264286); grae->SetPointError(13,0.05083333,0.05083333,0.01202223,0.01180656); grae->SetPoint(14,0.3558333,0.7717391); grae->SetPointError(14,0.05083333,0.05083333,0.01228728,0.01198434); grae->SetPoint(15,0.4575,0.752809); grae->SetPointError(15,0.05083333,0.05083333,0.01193276,0.01168024); grae->SetPoint(16,0.5591667,0.9069091); grae->SetPointError(16,0.05083333,0.05083333,0.008037573,0.007642657); grae->SetPoint(17,0.6608333,0.7900662); grae->SetPointError(17,0.05083333,0.05083333,0.01061001,0.01035381); grae->SetPoint(18,0.7625,0.658604); grae->SetPointError(18,0.05083333,0.05083333,0.01253832,0.01239216); grae->SetPoint(19,0.8641667,0.7358846); grae->SetPointError(19,0.05083333,0.05083333,0.01114197,0.01094461); grae->SetPoint(20,0.9658333,0.7118855); grae->SetPointError(20,0.05083333,0.05083333,0.01138626,0.01121041); grae->SetPoint(21,1.0675,0.718638); grae->SetPointError(21,0.05083333,0.05083333,0.0192783,0.01875674); TH1F *Graph3 = new TH1F("Graph3","",100,-1.342,1.342); Graph3->SetMinimum(0.4564775); Graph3->SetMaximum(0.9561949); 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(1); grae->SetFillStyle(3001); grae->SetMarkerStyle(20); grae->SetMarkerSize(1.2); grae->SetPoint(0,-1.0675,0.5); grae->SetPointError(0,0.05083333,0.05083333,0.1250148,0.1250148); grae->SetPoint(1,-0.9658333,0.8292683); grae->SetPointError(1,0.05083333,0.05083333,0.06308353,0.05269366); grae->SetPoint(2,-0.8641667,0.7567568); grae->SetPointError(2,0.05083333,0.05083333,0.07347642,0.06458949); grae->SetPoint(3,-0.7625,0.5454545); grae->SetPointError(3,0.05083333,0.05083333,0.0665304,0.06546199); grae->SetPoint(4,-0.6608333,0.6885246); grae->SetPointError(4,0.05083333,0.05083333,0.06045732,0.05644296); grae->SetPoint(5,-0.5591667,0.754717); grae->SetPointError(5,0.05083333,0.05083333,0.06133518,0.05510451); grae->SetPoint(6,-0.4575,0.7454545); grae->SetPointError(6,0.05083333,0.05083333,0.06077409,0.05498441); grae->SetPoint(7,-0.3558333,0.74); grae->SetPointError(7,0.05083333,0.05083333,0.06412867,0.05792046); grae->SetPoint(8,-0.2541667,0.7924528); grae->SetPointError(8,0.05083333,0.05083333,0.05853864,0.05137063); grae->SetPoint(9,-0.1525,0.8852459); grae->SetPointError(9,0.05083333,0.05083333,0.04476403,0.03645177); grae->SetPoint(10,-0.05083333,0.5454545); grae->SetPointError(10,0.05083333,0.05083333,0.08509121,0.08334746); grae->SetPoint(11,0.05083333,0.6086957); grae->SetPointError(11,0.05083333,0.05083333,0.1006707,0.09481348); grae->SetPoint(12,0.1525,0.7291667); grae->SetPointError(12,0.05083333,0.05083333,0.06611912,0.05995483); grae->SetPoint(13,0.2541667,0.7234043); grae->SetPointError(13,0.05083333,0.05083333,0.06715503,0.06102351); grae->SetPoint(14,0.3558333,0.75); grae->SetPointError(14,0.05083333,0.05083333,0.06224172,0.05601357); grae->SetPoint(15,0.4575,0.7777778); grae->SetPointError(15,0.05083333,0.05083333,0.05913202,0.05245212); grae->SetPoint(16,0.5591667,0.8823529); grae->SetPointError(16,0.05083333,0.05083333,0.04974324,0.03990879); grae->SetPoint(17,0.6608333,0.8545455); grae->SetPointError(17,0.05083333,0.05083333,0.05132114,0.04289237); grae->SetPoint(18,0.7625,0.5652174); grae->SetPointError(18,0.05083333,0.05083333,0.07251652,0.07069476); grae->SetPoint(19,0.8641667,0.8392857); grae->SetPointError(19,0.05083333,0.05083333,0.05253509,0.04462411); grae->SetPoint(20,0.9658333,0.6666667); grae->SetPointError(20,0.05083333,0.05083333,0.0712666,0.06650438); grae->SetPoint(21,1.0675,0.8125); grae->SetPointError(21,0.05083333,0.05083333,0.1056392,0.08162414); TH1F *Graph4 = new TH1F("Graph4","",100,-1.342,1.342); Graph4->SetMinimum(0.3202576); Graph4->SetMaximum(0.9769894); 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.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(); c2->Modified(); c2->cd(); c2->SetSelected(c2); }