void ThePTEvolutionRelRECO() { //=========Macro generated from canvas: ThePTEvolutionRelRECO/ThePTEvolutionRelRECO //========= (Tue May 10 13:02:57 2016) by ROOT version6.06/01 TCanvas *ThePTEvolutionRelRECO = new TCanvas("ThePTEvolutionRelRECO", "ThePTEvolutionRelRECO",0,0,600,600); ThePTEvolutionRelRECO->Range(-101.2857,0.7272727,555.8571,2.545455); ThePTEvolutionRelRECO->SetFillColor(0); ThePTEvolutionRelRECO->SetBorderMode(0); ThePTEvolutionRelRECO->SetBorderSize(10); ThePTEvolutionRelRECO->SetGridx(); ThePTEvolutionRelRECO->SetGridy(); ThePTEvolutionRelRECO->SetLeftMargin(0.18); ThePTEvolutionRelRECO->SetRightMargin(0.05); ThePTEvolutionRelRECO->SetTopMargin(0.08); ThePTEvolutionRelRECO->SetBottomMargin(0.15); ThePTEvolutionRelRECO->SetFrameFillStyle(0); ThePTEvolutionRelRECO->SetFrameLineStyle(0); ThePTEvolutionRelRECO->SetFrameBorderMode(0); ThePTEvolutionRelRECO->SetFrameBorderSize(10); ThePTEvolutionRelRECO->SetFrameFillStyle(0); ThePTEvolutionRelRECO->SetFrameLineStyle(0); ThePTEvolutionRelRECO->SetFrameBorderMode(0); ThePTEvolutionRelRECO->SetFrameBorderSize(10); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle("P_{T}/(HLT Threshold) for 99% efficiency (RECO)"); Double_t Graph_fx272[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy272[10] = { 0.2525253, 1.262317, 1.20733, 1.138592, 1.1082, 1.084914, 1.074437, 1.057063, 1.053122, 1.046739}; TGraph *graph = new TGraph(10,Graph_fx272,Graph_fy272); graph->SetName("Graph"); graph->SetTitle("AK4"); graph->SetFillColor(1); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); graph->SetLineColor(ci); graph->SetLineWidth(3); ci = TColor::GetColor("#ff0000"); graph->SetMarkerColor(ci); graph->SetMarkerStyle(20); graph->SetMarkerSize(0.9); TH1F *Graph_Graph272 = new TH1F("Graph_Graph272","AK4",100,0,550); Graph_Graph272->SetMinimum(0.151546); Graph_Graph272->SetMaximum(1.363297); Graph_Graph272->SetDirectory(0); Graph_Graph272->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph272->SetLineColor(ci); Graph_Graph272->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph272->GetXaxis()->SetLabelFont(42); Graph_Graph272->GetXaxis()->SetLabelOffset(0.014); Graph_Graph272->GetXaxis()->SetLabelSize(0.05); Graph_Graph272->GetXaxis()->SetTitleSize(0.055); Graph_Graph272->GetXaxis()->SetTitleOffset(1.3); Graph_Graph272->GetXaxis()->SetTitleFont(42); Graph_Graph272->GetYaxis()->SetTitle("Efficiency"); Graph_Graph272->GetYaxis()->SetLabelFont(42); Graph_Graph272->GetYaxis()->SetLabelOffset(0.014); Graph_Graph272->GetYaxis()->SetLabelSize(0.05); Graph_Graph272->GetYaxis()->SetTitleSize(0.055); Graph_Graph272->GetYaxis()->SetTitleOffset(1.6); Graph_Graph272->GetYaxis()->SetTitleFont(42); Graph_Graph272->GetZaxis()->SetLabelFont(42); Graph_Graph272->GetZaxis()->SetLabelSize(0.035); Graph_Graph272->GetZaxis()->SetTitleSize(0.035); Graph_Graph272->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph272); multigraph->Add(graph,"LP"); Double_t Graph_fx273[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy273[10] = { 0.2525253, 1.729773, 1.637545, 1.399249, 1.28106, 1.22122, 1.158972, 1.121428, 1.100995, 1.090547}; graph = new TGraph(10,Graph_fx273,Graph_fy273); graph->SetName("Graph"); graph->SetTitle("AK8"); graph->SetFillColor(1); ci = TColor::GetColor("#00ff00"); graph->SetLineColor(ci); graph->SetLineWidth(3); ci = TColor::GetColor("#00ff00"); graph->SetMarkerColor(ci); graph->SetMarkerStyle(20); graph->SetMarkerSize(0.9); TH1F *Graph_Graph273 = new TH1F("Graph_Graph273","AK8",100,0,550); Graph_Graph273->SetMinimum(0.1048005); Graph_Graph273->SetMaximum(1.877498); Graph_Graph273->SetDirectory(0); Graph_Graph273->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph273->SetLineColor(ci); Graph_Graph273->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph273->GetXaxis()->SetLabelFont(42); Graph_Graph273->GetXaxis()->SetLabelOffset(0.014); Graph_Graph273->GetXaxis()->SetLabelSize(0.05); Graph_Graph273->GetXaxis()->SetTitleSize(0.055); Graph_Graph273->GetXaxis()->SetTitleOffset(1.3); Graph_Graph273->GetXaxis()->SetTitleFont(42); Graph_Graph273->GetYaxis()->SetTitle("Efficiency"); Graph_Graph273->GetYaxis()->SetLabelFont(42); Graph_Graph273->GetYaxis()->SetLabelOffset(0.014); Graph_Graph273->GetYaxis()->SetLabelSize(0.05); Graph_Graph273->GetYaxis()->SetTitleSize(0.055); Graph_Graph273->GetYaxis()->SetTitleOffset(1.6); Graph_Graph273->GetYaxis()->SetTitleFont(42); Graph_Graph273->GetZaxis()->SetLabelFont(42); Graph_Graph273->GetZaxis()->SetLabelSize(0.035); Graph_Graph273->GetZaxis()->SetTitleSize(0.035); Graph_Graph273->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph273); multigraph->Add(graph,"LP"); Double_t Graph_fx274[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy274[10] = { 0.2525253, 2.031496, 1.867538, 1.632455, 1.558039, 1.504903, 1.496254, 1.450689, 1.449866, 1.440507}; graph = new TGraph(10,Graph_fx274,Graph_fy274); graph->SetName("Graph"); graph->SetTitle("AK4-AK8"); graph->SetFillColor(1); ci = TColor::GetColor("#0000ff"); graph->SetLineColor(ci); graph->SetLineWidth(3); ci = TColor::GetColor("#0000ff"); graph->SetMarkerColor(ci); graph->SetMarkerStyle(20); graph->SetMarkerSize(0.9); TH1F *Graph_Graph274 = new TH1F("Graph_Graph274","AK4-AK8",100,0,550); Graph_Graph274->SetMinimum(0.07462814); Graph_Graph274->SetMaximum(2.209393); Graph_Graph274->SetDirectory(0); Graph_Graph274->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph274->SetLineColor(ci); Graph_Graph274->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph274->GetXaxis()->SetLabelFont(42); Graph_Graph274->GetXaxis()->SetLabelOffset(0.014); Graph_Graph274->GetXaxis()->SetLabelSize(0.05); Graph_Graph274->GetXaxis()->SetTitleSize(0.055); Graph_Graph274->GetXaxis()->SetTitleOffset(1.3); Graph_Graph274->GetXaxis()->SetTitleFont(42); Graph_Graph274->GetYaxis()->SetTitle("Efficiency"); Graph_Graph274->GetYaxis()->SetLabelFont(42); Graph_Graph274->GetYaxis()->SetLabelOffset(0.014); Graph_Graph274->GetYaxis()->SetLabelSize(0.05); Graph_Graph274->GetYaxis()->SetTitleSize(0.055); Graph_Graph274->GetYaxis()->SetTitleOffset(1.6); Graph_Graph274->GetYaxis()->SetTitleFont(42); Graph_Graph274->GetZaxis()->SetLabelFont(42); Graph_Graph274->GetZaxis()->SetLabelSize(0.035); Graph_Graph274->GetZaxis()->SetTitleSize(0.035); Graph_Graph274->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph274); multigraph->Add(graph,"LP"); multigraph->Draw("APL"); multigraph->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); multigraph->GetXaxis()->SetLabelFont(42); multigraph->GetXaxis()->SetLabelOffset(0.014); multigraph->GetXaxis()->SetLabelSize(0.05); multigraph->GetXaxis()->SetTitleSize(0.055); multigraph->GetXaxis()->SetTitleOffset(1.3); multigraph->GetXaxis()->SetTitleFont(42); multigraph->GetYaxis()->SetTitle("Efficiency"); multigraph->GetYaxis()->SetLabelFont(42); multigraph->GetYaxis()->SetLabelOffset(0.014); multigraph->GetYaxis()->SetLabelSize(0.05); multigraph->GetYaxis()->SetTitleSize(0.055); multigraph->GetYaxis()->SetTitleOffset(1.6); multigraph->GetYaxis()->SetTitleFont(42); TPaveText *pt = new TPaveText(0.15,0.929965,0.85,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *AText = pt->AddText("P_{T}/(HLT Threshold) for 99% efficiency (RECO)"); pt->Draw(); TLegend *leg = new TLegend(0.74,0.75,0.94,0.91,NULL,"brNDC"); leg->SetBorderSize(1); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph","AK4","LP"); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(0.9); entry->SetTextFont(42); entry=leg->AddEntry("Graph","AK8","LP"); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#00ff00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(0.9); entry->SetTextFont(42); entry=leg->AddEntry("Graph","AK4-AK8","LP"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(3); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(0.9); entry->SetTextFont(42); leg->Draw(); ThePTEvolutionRelRECO->Modified(); ThePTEvolutionRelRECO->cd(); ThePTEvolutionRelRECO->SetSelected(ThePTEvolutionRelRECO); }