{ //=========Macro generated from canvas: OutputCanvasEtaEfficiency/Output Summary: electron electron //========= (Tue Oct 13 18:15:56 2009) by ROOT version5.18/00f TCanvas *OutputCanvasEtaEfficiency = new TCanvas("OutputCanvasEtaEfficiency", "Output Summary: electron electron",5,24,600,600); gStyle->SetOptStat(0); OutputCanvasEtaEfficiency->Range(0,0,1,1); OutputCanvasEtaEfficiency->SetFillColor(0); OutputCanvasEtaEfficiency->SetBorderMode(0); OutputCanvasEtaEfficiency->SetBorderSize(2); OutputCanvasEtaEfficiency->SetFrameBorderMode(0); TGraphAsymmErrors *grae = new TGraphAsymmErrors(50); grae->SetName("Graph"); grae->SetTitle(""); grae->SetFillColor(1); grae->SetMarkerColor(4); grae->SetMarkerStyle(21); grae->SetMarkerSize(0.3); grae->SetPoint(0,0.05,0.9305707); grae->SetPointError(0,0.05,0.05,0.003426776,0.003426776); grae->SetPoint(1,0.15,0.9421296); grae->SetPointError(1,0.05,0.05,0.003115803,0.003115803); grae->SetPoint(2,0.25,0.9403951); grae->SetPointError(2,0.05,0.05,0.003130115,0.003130115); grae->SetPoint(3,0.35,0.9403502); grae->SetPointError(3,0.05,0.05,0.003198745,0.003198745); grae->SetPoint(4,0.45,0.9429253); grae->SetPointError(4,0.05,0.05,0.003142693,0.003142693); grae->SetPoint(5,0.55,0.9463308); grae->SetPointError(5,0.05,0.05,0.0030449,0.0030449); grae->SetPoint(6,0.65,0.936375); grae->SetPointError(6,0.05,0.05,0.003258508,0.003258508); grae->SetPoint(7,0.75,0.9334059); grae->SetPointError(7,0.05,0.05,0.003358442,0.003358442); grae->SetPoint(8,0.85,0.9397525); grae->SetPointError(8,0.05,0.05,0.0032102,0.0032102); grae->SetPoint(9,0.95,0.9353513); grae->SetPointError(9,0.05,0.05,0.003361316,0.003361316); grae->SetPoint(10,1.05,0.9239089); grae->SetPointError(10,0.05,0.05,0.003652382,0.003652382); grae->SetPoint(11,1.15,0.9256291); grae->SetPointError(11,0.05,0.05,0.003582079,0.003582079); grae->SetPoint(12,1.25,0.9162418); grae->SetPointError(12,0.05,0.05,0.003738121,0.003738121); grae->SetPoint(13,1.35,0.8854962); grae->SetPointError(13,0.05,0.05,0.004398835,0.004398835); grae->SetPoint(14,1.45,0.8497132); grae->SetPointError(14,0.05,0.05,0.004941352,0.004941352); grae->SetPoint(15,1.55,0.8609857); grae->SetPointError(15,0.05,0.05,0.004847757,0.004847757); grae->SetPoint(16,1.65,0.8445525); grae->SetPointError(16,0.05,0.05,0.005053865,0.005053865); grae->SetPoint(17,1.75,0.8285996); grae->SetPointError(17,0.05,0.05,0.005292663,0.005292663); grae->SetPoint(18,1.85,0.8118148); grae->SetPointError(18,0.05,0.05,0.005568958,0.005568958); grae->SetPoint(19,1.95,0.8039331); grae->SetPointError(19,0.05,0.05,0.005567581,0.005567581); grae->SetPoint(20,2.05,0.811282); grae->SetPointError(20,0.05,0.05,0.005604092,0.005604092); grae->SetPoint(21,2.15,0.7790032); grae->SetPointError(21,0.05,0.05,0.006042571,0.006042571); grae->SetPoint(22,2.25,0.7834013); grae->SetPointError(22,0.05,0.05,0.006032362,0.006032362); grae->SetPoint(23,2.35,0.7779273); grae->SetPointError(23,0.05,0.05,0.00622511,0.00622511); grae->SetPoint(24,2.45,0.6283892); grae->SetPointError(24,0.05,0.05,0.007294168,0.007294168); grae->SetPoint(25,2.55,0); grae->SetPointError(25,0.05,0.05,0,0); grae->SetPoint(26,2.65,0); grae->SetPointError(26,0.05,0.05,0,0); grae->SetPoint(27,2.75,0); grae->SetPointError(27,0.05,0.05,0,0); grae->SetPoint(28,2.85,0); grae->SetPointError(28,0.05,0.05,0,0); grae->SetPoint(29,2.95,0); grae->SetPointError(29,0.05,0.05,0,0); grae->SetPoint(30,3.05,0); grae->SetPointError(30,0.05,0.05,0,0); grae->SetPoint(31,3.15,0); grae->SetPointError(31,0.05,0.05,0,0); grae->SetPoint(32,3.25,0); grae->SetPointError(32,0.05,0.05,0,0); grae->SetPoint(33,3.35,0); grae->SetPointError(33,0.05,0.05,0,0); grae->SetPoint(34,3.45,0); grae->SetPointError(34,0.05,0.05,0,0); grae->SetPoint(35,3.55,0); grae->SetPointError(35,0.05,0.05,0,0); grae->SetPoint(36,3.65,0); grae->SetPointError(36,0.05,0.05,0,0); grae->SetPoint(37,3.75,0); grae->SetPointError(37,0.05,0.05,0,0); grae->SetPoint(38,3.85,0); grae->SetPointError(38,0.05,0.05,0,0); grae->SetPoint(39,3.95,0); grae->SetPointError(39,0.05,0.05,0,0); grae->SetPoint(40,4.05,0); grae->SetPointError(40,0.05,0.05,0,0); grae->SetPoint(41,4.15,0); grae->SetPointError(41,0.05,0.05,0,0); grae->SetPoint(42,4.25,0); grae->SetPointError(42,0.05,0.05,0,0); grae->SetPoint(43,4.35,0); grae->SetPointError(43,0.05,0.05,0,0); grae->SetPoint(44,4.45,0); grae->SetPointError(44,0.05,0.05,0,0); grae->SetPoint(45,4.55,0); grae->SetPointError(45,0.05,0.05,0,0); grae->SetPoint(46,4.65,0); grae->SetPointError(46,0.05,0.05,0,0); grae->SetPoint(47,4.75,0); grae->SetPointError(47,0.05,0.05,0,0); grae->SetPoint(48,4.85,0); grae->SetPointError(48,0.05,0.05,0,0); grae->SetPoint(49,4.95,0); grae->SetPointError(49,0.05,0.05,0,0); TH1 *Graph5 = new TH1F("Graph5","Loose Electron Efficiencies",100,0,5.5); Graph5->SetMinimum(0); Graph5->SetMaximum(1); Graph5->SetDirectory(0); Graph5->SetStats(0); grae->SetLineColor(2); Graph5->GetXaxis()->SetTitle("#eta"); Graph5->GetYaxis()->SetTitle("#xi_{ee}"); Graph5->GetXaxis()->SetNdivisions(6); Graph5->GetYaxis()->SetNdivisions(4); grae->SetHistogram(Graph5); grae->Draw("APSL"); //V15 grae = new TGraphAsymmErrors(50); grae->SetName("Graph"); grae->SetTitle(""); grae->SetFillColor(1); grae->SetMarkerColor(4); grae->SetMarkerStyle(21); grae->SetMarkerSize(0.3); grae->SetPoint(0,0.05,0.9663461); grae->SetPointError(0,0.05,0.05,0.00721924,0.00721924); grae->SetPoint(1,0.15,0.957265); grae->SetPointError(1,0.05,0.05,0.008362386,0.008362386); grae->SetPoint(2,0.25,0.9722675); grae->SetPointError(2,0.05,0.05,0.006632192,0.006632192); grae->SetPoint(3,0.35,0.9520426); grae->SetPointError(3,0.05,0.05,0.009005372,0.009005372); grae->SetPoint(4,0.45,0.9681021); grae->SetPointError(4,0.05,0.05,0.007017911,0.007017911); grae->SetPoint(5,0.55,0.9629057); grae->SetPointError(5,0.05,0.05,0.007430077,0.007430077); grae->SetPoint(6,0.65,0.9566613); grae->SetPointError(6,0.05,0.05,0.008157795,0.008157795); grae->SetPoint(7,0.75,0.9609236); grae->SetPointError(7,0.05,0.05,0.008166716,0.008166716); grae->SetPoint(8,0.85,0.9424084); grae->SetPointError(8,0.05,0.05,0.009732444,0.009732444); grae->SetPoint(9,0.95,0.9641638); grae->SetPointError(9,0.05,0.05,0.007678694,0.007678694); grae->SetPoint(10,1.05,0.9499217); grae->SetPointError(10,0.05,0.05,0.008628159,0.008628159); grae->SetPoint(11,1.15,0.9597198); grae->SetPointError(11,0.05,0.05,0.00822811,0.00822811); grae->SetPoint(12,1.25,0.9414802); grae->SetPointError(12,0.05,0.05,0.00973798,0.00973798); grae->SetPoint(13,1.35,0.9397163); grae->SetPointError(13,0.05,0.05,0.0100221,0.0100221); grae->SetPoint(14,1.45,0.9300341); grae->SetPointError(14,0.05,0.05,0.01053765,0.01053765); grae->SetPoint(15,1.55,0.9443508); grae->SetPointError(15,0.05,0.05,0.009413885,0.009413885); grae->SetPoint(16,1.65,0.9512195); grae->SetPointError(16,0.05,0.05,0.009330392,0.009330392); grae->SetPoint(17,1.75,0.9713262); grae->SetPointError(17,0.05,0.05,0.007064937,0.007064937); grae->SetPoint(18,1.85,0.9625468); grae->SetPointError(18,0.05,0.05,0.008216458,0.008216458); grae->SetPoint(19,1.95,0.9329609); grae->SetPointError(19,0.05,0.05,0.01079217,0.01079217); grae->SetPoint(20,2.05,0.9393346); grae->SetPointError(20,0.05,0.05,0.01056015,0.01056015); grae->SetPoint(21,2.15,0.9522901); grae->SetPointError(21,0.05,0.05,0.009311581,0.009311581); grae->SetPoint(22,2.25,0.9327902); grae->SetPointError(22,0.05,0.05,0.01129971,0.01129971); grae->SetPoint(23,2.35,0.9589041); grae->SetPointError(23,0.05,0.05,0.008781657,0.008781657); grae->SetPoint(24,2.45,0.7515658); grae->SetPointError(24,0.05,0.05,0.01974338,0.01974338); grae->SetPoint(25,2.55,0); grae->SetPointError(25,0.05,0.05,0,0); grae->SetPoint(26,2.65,0); grae->SetPointError(26,0.05,0.05,0,0); grae->SetPoint(27,2.75,0); grae->SetPointError(27,0.05,0.05,0,0); grae->SetPoint(28,2.85,0); grae->SetPointError(28,0.05,0.05,0,0); grae->SetPoint(29,2.95,0); grae->SetPointError(29,0.05,0.05,0,0); grae->SetPoint(30,3.05,0); grae->SetPointError(30,0.05,0.05,0,0); grae->SetPoint(31,3.15,0); grae->SetPointError(31,0.05,0.05,0,0); grae->SetPoint(32,3.25,0); grae->SetPointError(32,0.05,0.05,0,0); grae->SetPoint(33,3.35,0); grae->SetPointError(33,0.05,0.05,0,0); grae->SetPoint(34,3.45,0); grae->SetPointError(34,0.05,0.05,0,0); grae->SetPoint(35,3.55,0); grae->SetPointError(35,0.05,0.05,0,0); grae->SetPoint(36,3.65,0); grae->SetPointError(36,0.05,0.05,0,0); grae->SetPoint(37,3.75,0); grae->SetPointError(37,0.05,0.05,0,0); grae->SetPoint(38,3.85,0); grae->SetPointError(38,0.05,0.05,0,0); grae->SetPoint(39,3.95,0); grae->SetPointError(39,0.05,0.05,0,0); grae->SetPoint(40,4.05,0); grae->SetPointError(40,0.05,0.05,0,0); grae->SetPoint(41,4.15,0); grae->SetPointError(41,0.05,0.05,0,0); grae->SetPoint(42,4.25,0); grae->SetPointError(42,0.05,0.05,0,0); grae->SetPoint(43,4.35,0); grae->SetPointError(43,0.05,0.05,0,0); grae->SetPoint(44,4.45,0); grae->SetPointError(44,0.05,0.05,0,0); grae->SetPoint(45,4.55,0); grae->SetPointError(45,0.05,0.05,0,0); grae->SetPoint(46,4.65,0); grae->SetPointError(46,0.05,0.05,0,0); grae->SetPoint(47,4.75,0); grae->SetPointError(47,0.05,0.05,0,0); grae->SetPoint(48,4.85,0); grae->SetPointError(48,0.05,0.05,0,0); grae->SetPoint(49,4.95,0); grae->SetPointError(49,0.05,0.05,0,0); TH1 *Graph5 = new TH1F("Graph5","",100,0,5.5); Graph5->SetMinimum(0); Graph5->SetMaximum(1); Graph5->SetDirectory(0); Graph5->SetStats(0); Graph5->GetXaxis()->SetNdivisions(6); Graph5->GetXaxis()->SetLabelFont(42); Graph5->GetYaxis()->SetNdivisions(4); Graph5->GetYaxis()->SetLabelFont(42); grae->SetLineColor(4); grae->SetHistogram(Graph5); grae->Draw("same"); TLegend *leg = new TLegend(0.7030201,0.6258741,0.8909396,0.715035,NULL,"brNDC"); leg->SetTextFont(12); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph5","V14.5.0","l"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry=leg->AddEntry("Graph5","V15.6.1.2","l"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); leg->Draw(); TPaveText *pt = new TPaveText(0.238255,0.9090909,0.7030201,0.9597902,"blNDC"); pt->SetName("title"); pt->SetBorderSize(2); pt->SetLineColor(0); TText *text = pt->AddText("Loose Electron Efficiencies"); pt->Draw(); OutputCanvasEtaEfficiency->Modified(); OutputCanvasEtaEfficiency->cd(); OutputCanvasEtaEfficiency->SetSelected(OutputCanvasEtaEfficiency); OutputCanvasEtaEfficiency->Print("LooseElecElecEta.jpg"); }