void ThePTEvolutionRelGEN() { //=========Macro generated from canvas: ThePTEvolutionRelGEN/ThePTEvolutionRelGEN //========= (Tue May 10 13:02:57 2016) by ROOT version6.06/01 TCanvas *ThePTEvolutionRelGEN = new TCanvas("ThePTEvolutionRelGEN", "ThePTEvolutionRelGEN",0,0,600,600); ThePTEvolutionRelGEN->Range(-101.2857,0.7272727,555.8571,2.545455); ThePTEvolutionRelGEN->SetFillColor(0); ThePTEvolutionRelGEN->SetBorderMode(0); ThePTEvolutionRelGEN->SetBorderSize(10); ThePTEvolutionRelGEN->SetGridx(); ThePTEvolutionRelGEN->SetGridy(); ThePTEvolutionRelGEN->SetLeftMargin(0.18); ThePTEvolutionRelGEN->SetRightMargin(0.05); ThePTEvolutionRelGEN->SetTopMargin(0.08); ThePTEvolutionRelGEN->SetBottomMargin(0.15); ThePTEvolutionRelGEN->SetFrameFillStyle(0); ThePTEvolutionRelGEN->SetFrameLineStyle(0); ThePTEvolutionRelGEN->SetFrameBorderMode(0); ThePTEvolutionRelGEN->SetFrameBorderSize(10); ThePTEvolutionRelGEN->SetFrameFillStyle(0); ThePTEvolutionRelGEN->SetFrameLineStyle(0); ThePTEvolutionRelGEN->SetFrameBorderMode(0); ThePTEvolutionRelGEN->SetFrameBorderSize(10); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle("P_{T}/(HLT Threshold) for 99% efficiency (GEN)"); Double_t Graph_fx269[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy269[10] = { 0.2525253, 1.389628, 1.344596, 1.272791, 1.250851, 1.234477, 1.223265, 1.222088, 1.216596, 1.212138}; TGraph *graph = new TGraph(10,Graph_fx269,Graph_fy269); 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_Graph269 = new TH1F("Graph_Graph269","AK4",100,0,550); Graph_Graph269->SetMinimum(0.138815); Graph_Graph269->SetMaximum(1.503338); Graph_Graph269->SetDirectory(0); Graph_Graph269->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph269->SetLineColor(ci); Graph_Graph269->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph269->GetXaxis()->SetLabelFont(42); Graph_Graph269->GetXaxis()->SetLabelOffset(0.014); Graph_Graph269->GetXaxis()->SetLabelSize(0.05); Graph_Graph269->GetXaxis()->SetTitleSize(0.055); Graph_Graph269->GetXaxis()->SetTitleOffset(1.3); Graph_Graph269->GetXaxis()->SetTitleFont(42); Graph_Graph269->GetYaxis()->SetTitle("Efficiency"); Graph_Graph269->GetYaxis()->SetLabelFont(42); Graph_Graph269->GetYaxis()->SetLabelOffset(0.014); Graph_Graph269->GetYaxis()->SetLabelSize(0.05); Graph_Graph269->GetYaxis()->SetTitleSize(0.055); Graph_Graph269->GetYaxis()->SetTitleOffset(1.6); Graph_Graph269->GetYaxis()->SetTitleFont(42); Graph_Graph269->GetZaxis()->SetLabelFont(42); Graph_Graph269->GetZaxis()->SetLabelSize(0.035); Graph_Graph269->GetZaxis()->SetTitleSize(0.035); Graph_Graph269->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph269); multigraph->Add(graph,"LP"); Double_t Graph_fx270[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy270[10] = { 0.2525253, 1.439452, 1.444567, 1.275309, 1.236184, 1.229344, 1.200661, 1.190308, 1.184218, 1.180708}; graph = new TGraph(10,Graph_fx270,Graph_fy270); 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_Graph270 = new TH1F("Graph_Graph270","AK8",100,0,550); Graph_Graph270->SetMinimum(0.1333211); Graph_Graph270->SetMaximum(1.563771); Graph_Graph270->SetDirectory(0); Graph_Graph270->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph270->SetLineColor(ci); Graph_Graph270->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph270->GetXaxis()->SetLabelFont(42); Graph_Graph270->GetXaxis()->SetLabelOffset(0.014); Graph_Graph270->GetXaxis()->SetLabelSize(0.05); Graph_Graph270->GetXaxis()->SetTitleSize(0.055); Graph_Graph270->GetXaxis()->SetTitleOffset(1.3); Graph_Graph270->GetXaxis()->SetTitleFont(42); Graph_Graph270->GetYaxis()->SetTitle("Efficiency"); Graph_Graph270->GetYaxis()->SetLabelFont(42); Graph_Graph270->GetYaxis()->SetLabelOffset(0.014); Graph_Graph270->GetYaxis()->SetLabelSize(0.05); Graph_Graph270->GetYaxis()->SetTitleSize(0.055); Graph_Graph270->GetYaxis()->SetTitleOffset(1.6); Graph_Graph270->GetYaxis()->SetTitleFont(42); Graph_Graph270->GetZaxis()->SetLabelFont(42); Graph_Graph270->GetZaxis()->SetLabelSize(0.035); Graph_Graph270->GetZaxis()->SetTitleSize(0.035); Graph_Graph270->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph270); multigraph->Add(graph,"LP"); Double_t Graph_fx271[10] = { 40, 60, 80, 140, 200, 260, 320, 400, 450, 500}; Double_t Graph_fy271[10] = { 0.2525253, 1.758065, 1.693932, 1.617747, 1.573492, 1.571759, 1.558175, 1.533742, 1.536072, 1.536906}; graph = new TGraph(10,Graph_fx271,Graph_fy271); 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_Graph271 = new TH1F("Graph_Graph271","AK4-AK8",100,0,550); Graph_Graph271->SetMinimum(0.1019713); Graph_Graph271->SetMaximum(1.908619); Graph_Graph271->SetDirectory(0); Graph_Graph271->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph271->SetLineColor(ci); Graph_Graph271->GetXaxis()->SetTitle("PF Jet P_{T} Threshold"); Graph_Graph271->GetXaxis()->SetLabelFont(42); Graph_Graph271->GetXaxis()->SetLabelOffset(0.014); Graph_Graph271->GetXaxis()->SetLabelSize(0.05); Graph_Graph271->GetXaxis()->SetTitleSize(0.055); Graph_Graph271->GetXaxis()->SetTitleOffset(1.3); Graph_Graph271->GetXaxis()->SetTitleFont(42); Graph_Graph271->GetYaxis()->SetTitle("Efficiency"); Graph_Graph271->GetYaxis()->SetLabelFont(42); Graph_Graph271->GetYaxis()->SetLabelOffset(0.014); Graph_Graph271->GetYaxis()->SetLabelSize(0.05); Graph_Graph271->GetYaxis()->SetTitleSize(0.055); Graph_Graph271->GetYaxis()->SetTitleOffset(1.6); Graph_Graph271->GetYaxis()->SetTitleFont(42); Graph_Graph271->GetZaxis()->SetLabelFont(42); Graph_Graph271->GetZaxis()->SetLabelSize(0.035); Graph_Graph271->GetZaxis()->SetTitleSize(0.035); Graph_Graph271->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph271); 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 (GEN)"); 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(); ThePTEvolutionRelGEN->Modified(); ThePTEvolutionRelGEN->cd(); ThePTEvolutionRelGEN->SetSelected(ThePTEvolutionRelGEN); }