void ThePTEvolutionRelRECO() { //=========Macro generated from canvas: ThePTEvolutionRelRECO/ThePTEvolutionRelRECO //========= (Tue Apr 19 16:33:16 2016) by ROOT version6.06/01 TCanvas *ThePTEvolutionRelRECO = new TCanvas("ThePTEvolutionRelRECO", "ThePTEvolutionRelRECO",3,54,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_fx4[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy4[10] = { 1.428306, 1.36282, 1.279537, 1.202957, 1.169709, 1.154675, 1.137547, 1.124191, 1.118685, 1.112097}; TGraph *graph = new TGraph(10,Graph_fx4,Graph_fy4); 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_Graph4 = new TH1F("Graph_Graph4","AK4",100,0,550); Graph_Graph4->SetMinimum(1.080476); Graph_Graph4->SetMaximum(1.459926); Graph_Graph4->SetDirectory(0); Graph_Graph4->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph4->SetLineColor(ci); Graph_Graph4->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph4->GetXaxis()->SetLabelFont(42); Graph_Graph4->GetXaxis()->SetLabelOffset(0.014); Graph_Graph4->GetXaxis()->SetLabelSize(0.05); Graph_Graph4->GetXaxis()->SetTitleSize(0.055); Graph_Graph4->GetXaxis()->SetTitleOffset(1.3); Graph_Graph4->GetXaxis()->SetTitleFont(42); Graph_Graph4->GetYaxis()->SetTitle("Efficiency"); Graph_Graph4->GetYaxis()->SetLabelFont(42); Graph_Graph4->GetYaxis()->SetLabelOffset(0.014); Graph_Graph4->GetYaxis()->SetLabelSize(0.05); Graph_Graph4->GetYaxis()->SetTitleSize(0.055); Graph_Graph4->GetYaxis()->SetTitleOffset(1.6); Graph_Graph4->GetYaxis()->SetTitleFont(42); Graph_Graph4->GetZaxis()->SetLabelFont(42); Graph_Graph4->GetZaxis()->SetLabelSize(0.035); Graph_Graph4->GetZaxis()->SetTitleSize(0.035); Graph_Graph4->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph4); multigraph->Add(graph,"LP"); Double_t Graph_fx5[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy5[10] = { 1.994211, 1.997079, 1.815753, 1.52012, 1.388338, 1.305662, 1.25481, 1.208488, 1.187396, 1.177191}; graph = new TGraph(10,Graph_fx5,Graph_fy5); 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_Graph5 = new TH1F("Graph_Graph5","AK8",100,0,550); Graph_Graph5->SetMinimum(1.095203); Graph_Graph5->SetMaximum(2.079068); Graph_Graph5->SetDirectory(0); Graph_Graph5->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph5->SetLineColor(ci); Graph_Graph5->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph5->GetXaxis()->SetLabelFont(42); Graph_Graph5->GetXaxis()->SetLabelOffset(0.014); Graph_Graph5->GetXaxis()->SetLabelSize(0.05); Graph_Graph5->GetXaxis()->SetTitleSize(0.055); Graph_Graph5->GetXaxis()->SetTitleOffset(1.3); Graph_Graph5->GetXaxis()->SetTitleFont(42); Graph_Graph5->GetYaxis()->SetTitle("Efficiency"); Graph_Graph5->GetYaxis()->SetLabelFont(42); Graph_Graph5->GetYaxis()->SetLabelOffset(0.014); Graph_Graph5->GetYaxis()->SetLabelSize(0.05); Graph_Graph5->GetYaxis()->SetTitleSize(0.055); Graph_Graph5->GetYaxis()->SetTitleOffset(1.6); Graph_Graph5->GetYaxis()->SetTitleFont(42); Graph_Graph5->GetZaxis()->SetLabelFont(42); Graph_Graph5->GetZaxis()->SetLabelSize(0.035); Graph_Graph5->GetZaxis()->SetTitleSize(0.035); Graph_Graph5->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph5); multigraph->Add(graph,"LP"); Double_t Graph_fx6[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy6[10] = { 2.468869, 2.19087, 2.019563, 1.777828, 1.673433, 1.622485, 1.593477, 1.552028, 1.52954, 1.514155}; graph = new TGraph(10,Graph_fx6,Graph_fy6); 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_Graph6 = new TH1F("Graph_Graph6","AK4-AK8",100,0,550); Graph_Graph6->SetMinimum(1.418683); Graph_Graph6->SetMaximum(2.56434); Graph_Graph6->SetDirectory(0); Graph_Graph6->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph6->SetLineColor(ci); Graph_Graph6->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph6->GetXaxis()->SetLabelFont(42); Graph_Graph6->GetXaxis()->SetLabelOffset(0.014); Graph_Graph6->GetXaxis()->SetLabelSize(0.05); Graph_Graph6->GetXaxis()->SetTitleSize(0.055); Graph_Graph6->GetXaxis()->SetTitleOffset(1.3); Graph_Graph6->GetXaxis()->SetTitleFont(42); Graph_Graph6->GetYaxis()->SetTitle("Efficiency"); Graph_Graph6->GetYaxis()->SetLabelFont(42); Graph_Graph6->GetYaxis()->SetLabelOffset(0.014); Graph_Graph6->GetYaxis()->SetLabelSize(0.05); Graph_Graph6->GetYaxis()->SetTitleSize(0.055); Graph_Graph6->GetYaxis()->SetTitleOffset(1.6); Graph_Graph6->GetYaxis()->SetTitleFont(42); Graph_Graph6->GetZaxis()->SetLabelFont(42); Graph_Graph6->GetZaxis()->SetLabelSize(0.035); Graph_Graph6->GetZaxis()->SetTitleSize(0.035); Graph_Graph6->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph6); 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.9301916,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); }