void ThePTEvolutionRelRECO() { //=========Macro generated from canvas: ThePTEvolutionRelRECO/ThePTEvolutionRelRECO //========= (Tue May 10 10:54:30 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_fx32[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy32[10] = { 0.2525253, 1.244745, 1.195755, 1.121239, 1.093006, 1.067855, 1.058413, 1.046456, 1.042892, 1.038212}; TGraph *graph = new TGraph(10,Graph_fx32,Graph_fy32); 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_Graph32 = new TH1F("Graph_Graph32","AK4",100,0,550); Graph_Graph32->SetMinimum(0.1533032); Graph_Graph32->SetMaximum(1.343967); Graph_Graph32->SetDirectory(0); Graph_Graph32->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph32->SetLineColor(ci); Graph_Graph32->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph32->GetXaxis()->SetLabelFont(42); Graph_Graph32->GetXaxis()->SetLabelOffset(0.014); Graph_Graph32->GetXaxis()->SetLabelSize(0.05); Graph_Graph32->GetXaxis()->SetTitleSize(0.055); Graph_Graph32->GetXaxis()->SetTitleOffset(1.3); Graph_Graph32->GetXaxis()->SetTitleFont(42); Graph_Graph32->GetYaxis()->SetTitle("Efficiency"); Graph_Graph32->GetYaxis()->SetLabelFont(42); Graph_Graph32->GetYaxis()->SetLabelOffset(0.014); Graph_Graph32->GetYaxis()->SetLabelSize(0.05); Graph_Graph32->GetYaxis()->SetTitleSize(0.055); Graph_Graph32->GetYaxis()->SetTitleOffset(1.6); Graph_Graph32->GetYaxis()->SetTitleFont(42); Graph_Graph32->GetZaxis()->SetLabelFont(42); Graph_Graph32->GetZaxis()->SetLabelSize(0.035); Graph_Graph32->GetZaxis()->SetTitleSize(0.035); Graph_Graph32->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph32); multigraph->Add(graph,"LP"); Double_t Graph_fx33[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy33[10] = { 0.2525253, 1.636812, 1.569108, 1.342841, 1.23896, 1.183895, 1.133535, 1.103359, 1.089353, 1.078898}; graph = new TGraph(10,Graph_fx33,Graph_fy33); 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_Graph33 = new TH1F("Graph_Graph33","AK8",100,0,550); Graph_Graph33->SetMinimum(0.1140966); Graph_Graph33->SetMaximum(1.77524); Graph_Graph33->SetDirectory(0); Graph_Graph33->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph33->SetLineColor(ci); Graph_Graph33->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph33->GetXaxis()->SetLabelFont(42); Graph_Graph33->GetXaxis()->SetLabelOffset(0.014); Graph_Graph33->GetXaxis()->SetLabelSize(0.05); Graph_Graph33->GetXaxis()->SetTitleSize(0.055); Graph_Graph33->GetXaxis()->SetTitleOffset(1.3); Graph_Graph33->GetXaxis()->SetTitleFont(42); Graph_Graph33->GetYaxis()->SetTitle("Efficiency"); Graph_Graph33->GetYaxis()->SetLabelFont(42); Graph_Graph33->GetYaxis()->SetLabelOffset(0.014); Graph_Graph33->GetYaxis()->SetLabelSize(0.05); Graph_Graph33->GetYaxis()->SetTitleSize(0.055); Graph_Graph33->GetYaxis()->SetTitleOffset(1.6); Graph_Graph33->GetYaxis()->SetTitleFont(42); Graph_Graph33->GetZaxis()->SetLabelFont(42); Graph_Graph33->GetZaxis()->SetLabelSize(0.035); Graph_Graph33->GetZaxis()->SetTitleSize(0.035); Graph_Graph33->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph33); multigraph->Add(graph,"LP"); Double_t Graph_fx34[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy34[10] = { 0.2525253, 1.920389, 1.774787, 1.57972, 1.50028, 1.446973, 1.416851, 1.399554, 1.386743, 1.371751}; graph = new TGraph(10,Graph_fx34,Graph_fy34); 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_Graph34 = new TH1F("Graph_Graph34","AK4-AK8",100,0,550); Graph_Graph34->SetMinimum(0.08573885); Graph_Graph34->SetMaximum(2.087176); Graph_Graph34->SetDirectory(0); Graph_Graph34->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph34->SetLineColor(ci); Graph_Graph34->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph34->GetXaxis()->SetLabelFont(42); Graph_Graph34->GetXaxis()->SetLabelOffset(0.014); Graph_Graph34->GetXaxis()->SetLabelSize(0.05); Graph_Graph34->GetXaxis()->SetTitleSize(0.055); Graph_Graph34->GetXaxis()->SetTitleOffset(1.3); Graph_Graph34->GetXaxis()->SetTitleFont(42); Graph_Graph34->GetYaxis()->SetTitle("Efficiency"); Graph_Graph34->GetYaxis()->SetLabelFont(42); Graph_Graph34->GetYaxis()->SetLabelOffset(0.014); Graph_Graph34->GetYaxis()->SetLabelSize(0.05); Graph_Graph34->GetYaxis()->SetTitleSize(0.055); Graph_Graph34->GetYaxis()->SetTitleOffset(1.6); Graph_Graph34->GetYaxis()->SetTitleFont(42); Graph_Graph34->GetZaxis()->SetLabelFont(42); Graph_Graph34->GetZaxis()->SetLabelSize(0.035); Graph_Graph34->GetZaxis()->SetTitleSize(0.035); Graph_Graph34->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph34); 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); }