void PlotPointingResVrhoRat() { //=========Macro generated from canvas: c/c //========= (Thu May 19 10:19:04 2022) by ROOT version 6.20/06 TCanvas *c = new TCanvas("c", "c",0,0,1600,1200); gStyle->SetOptStat(0); c->Range(-87.50001,-0.375,787.5,3.375); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); THStack *hs_rat = new THStack(); hs_rat->SetName("hs_rat"); hs_rat->SetTitle(";#rho [mm];Ratio;"); hs_rat->SetMinimum(0); hs_rat->SetMaximum(3); Double_t xAxis11[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_rat_stack_3 = new TH1F("hs_rat_stack_3","",11, xAxis11); hs_rat_stack_3->SetMinimum(0); hs_rat_stack_3->SetMaximum(3); hs_rat_stack_3->SetDirectory(0); hs_rat_stack_3->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_rat_stack_3->SetLineColor(ci); hs_rat_stack_3->GetXaxis()->SetTitle("#rho [mm]"); hs_rat_stack_3->GetXaxis()->SetLabelFont(42); hs_rat_stack_3->GetXaxis()->SetTitleOffset(1); hs_rat_stack_3->GetXaxis()->SetTitleFont(42); hs_rat_stack_3->GetYaxis()->SetTitle("Ratio"); hs_rat_stack_3->GetYaxis()->SetLabelFont(42); hs_rat_stack_3->GetYaxis()->SetTitleFont(42); hs_rat_stack_3->GetZaxis()->SetLabelFont(42); hs_rat_stack_3->GetZaxis()->SetTitleOffset(1); hs_rat_stack_3->GetZaxis()->SetTitleFont(42); hs_rat->SetHistogram(hs_rat_stack_3); Double_t xAxis12[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_135_2ns_stack_1 = new TH1F("hsig_Hino_135_2ns_stack_1","",11, xAxis12); hsig_Hino_135_2ns_stack_1->SetBinContent(1,1); hsig_Hino_135_2ns_stack_1->SetBinContent(2,1); hsig_Hino_135_2ns_stack_1->SetBinContent(3,1); hsig_Hino_135_2ns_stack_1->SetBinContent(4,1); hsig_Hino_135_2ns_stack_1->SetBinContent(5,1); hsig_Hino_135_2ns_stack_1->SetBinContent(6,1); hsig_Hino_135_2ns_stack_1->SetBinContent(7,1); hsig_Hino_135_2ns_stack_1->SetBinContent(8,1); hsig_Hino_135_2ns_stack_1->SetBinContent(9,1); hsig_Hino_135_2ns_stack_1->SetBinContent(10,1); hsig_Hino_135_2ns_stack_1->SetBinContent(11,1); hsig_Hino_135_2ns_stack_1->SetBinError(1,0.1686547); hsig_Hino_135_2ns_stack_1->SetBinError(2,0.05349244); hsig_Hino_135_2ns_stack_1->SetBinError(3,0.05224362); hsig_Hino_135_2ns_stack_1->SetBinError(4,0.04527157); hsig_Hino_135_2ns_stack_1->SetBinError(5,0.04640891); hsig_Hino_135_2ns_stack_1->SetBinError(6,0.05701704); hsig_Hino_135_2ns_stack_1->SetBinError(7,0.03759122); hsig_Hino_135_2ns_stack_1->SetBinError(8,0.03719847); hsig_Hino_135_2ns_stack_1->SetBinError(9,0.04123785); hsig_Hino_135_2ns_stack_1->SetBinError(10,0.02899269); hsig_Hino_135_2ns_stack_1->SetBinError(11,0.02581857); hsig_Hino_135_2ns_stack_1->SetEntries(2547.688); ci = TColor::GetColor("#00ff00"); hsig_Hino_135_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hsig_Hino_135_2ns_stack_1->SetMarkerColor(ci); hsig_Hino_135_2ns_stack_1->SetMarkerStyle(20); hsig_Hino_135_2ns_stack_1->SetMarkerSize(2); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitleFont(42); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetTitle(" #rho - ||SV|| [mm]"); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetTitleFont(42); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs_rat->Add(hsig_Hino_135_2ns_stack_1,""); Double_t xAxis13[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_525_Zee_stack_2 = new TH1F("hsig_Hino_525_Zee_stack_2","",11, xAxis13); hsig_Hino_525_Zee_stack_2->SetBinContent(1,1.691478); hsig_Hino_525_Zee_stack_2->SetBinContent(2,0.9295374); hsig_Hino_525_Zee_stack_2->SetBinContent(3,1.300533); hsig_Hino_525_Zee_stack_2->SetBinContent(4,1.128489); hsig_Hino_525_Zee_stack_2->SetBinContent(5,1.151257); hsig_Hino_525_Zee_stack_2->SetBinContent(6,1.053237); hsig_Hino_525_Zee_stack_2->SetBinContent(7,1.194312); hsig_Hino_525_Zee_stack_2->SetBinContent(8,1.188688); hsig_Hino_525_Zee_stack_2->SetBinContent(9,1.174251); hsig_Hino_525_Zee_stack_2->SetBinContent(10,1.289567); hsig_Hino_525_Zee_stack_2->SetBinContent(11,1.234914); hsig_Hino_525_Zee_stack_2->SetBinError(1,0.2963139); hsig_Hino_525_Zee_stack_2->SetBinError(2,0.04444016); hsig_Hino_525_Zee_stack_2->SetBinError(3,0.07751052); hsig_Hino_525_Zee_stack_2->SetBinError(4,0.05505217); hsig_Hino_525_Zee_stack_2->SetBinError(5,0.05589371); hsig_Hino_525_Zee_stack_2->SetBinError(6,0.05533359); hsig_Hino_525_Zee_stack_2->SetBinError(7,0.04256368); hsig_Hino_525_Zee_stack_2->SetBinError(8,0.04533062); hsig_Hino_525_Zee_stack_2->SetBinError(9,0.04858464); hsig_Hino_525_Zee_stack_2->SetBinError(10,0.04042903); hsig_Hino_525_Zee_stack_2->SetBinError(11,0.03266603); hsig_Hino_525_Zee_stack_2->SetEntries(1561.099); ci = TColor::GetColor("#ffcc00"); hsig_Hino_525_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hsig_Hino_525_Zee_stack_2->SetMarkerColor(ci); hsig_Hino_525_Zee_stack_2->SetMarkerStyle(20); hsig_Hino_525_Zee_stack_2->SetMarkerSize(2); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitleFont(42); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetTitle(" #rho - ||SV|| [mm]"); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetTitleFont(42); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_rat->Add(hsig_Hino_525_Zee_stack_2,""); Double_t xAxis14[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_925_Zee_stack_3 = new TH1F("hsig_Hino_925_Zee_stack_3","",11, xAxis14); hsig_Hino_925_Zee_stack_3->SetBinContent(1,0.8201691); hsig_Hino_925_Zee_stack_3->SetBinContent(2,0.9532565); hsig_Hino_925_Zee_stack_3->SetBinContent(3,1.220976); hsig_Hino_925_Zee_stack_3->SetBinContent(4,1.05659); hsig_Hino_925_Zee_stack_3->SetBinContent(5,1.157323); hsig_Hino_925_Zee_stack_3->SetBinContent(6,1.119805); hsig_Hino_925_Zee_stack_3->SetBinContent(7,1.501149); hsig_Hino_925_Zee_stack_3->SetBinContent(8,1.401251); hsig_Hino_925_Zee_stack_3->SetBinContent(9,1.395791); hsig_Hino_925_Zee_stack_3->SetBinContent(10,1.206182); hsig_Hino_925_Zee_stack_3->SetBinContent(11,1.320959); hsig_Hino_925_Zee_stack_3->SetBinError(1,0.1550412); hsig_Hino_925_Zee_stack_3->SetBinError(2,0.09250749); hsig_Hino_925_Zee_stack_3->SetBinError(3,0.1218745); hsig_Hino_925_Zee_stack_3->SetBinError(4,0.07632617); hsig_Hino_925_Zee_stack_3->SetBinError(5,0.06087493); hsig_Hino_925_Zee_stack_3->SetBinError(6,0.06959268); hsig_Hino_925_Zee_stack_3->SetBinError(7,0.08900266); hsig_Hino_925_Zee_stack_3->SetBinError(8,0.09959909); hsig_Hino_925_Zee_stack_3->SetBinError(9,0.09700783); hsig_Hino_925_Zee_stack_3->SetBinError(10,0.06888007); hsig_Hino_925_Zee_stack_3->SetBinError(11,0.05093447); hsig_Hino_925_Zee_stack_3->SetEntries(1794.48); ci = TColor::GetColor("#ff0000"); hsig_Hino_925_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hsig_Hino_925_Zee_stack_3->SetMarkerColor(ci); hsig_Hino_925_Zee_stack_3->SetMarkerStyle(20); hsig_Hino_925_Zee_stack_3->SetMarkerSize(2); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitleFont(42); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetTitle(" #rho - ||SV|| [mm]"); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetTitleFont(42); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_rat->Add(hsig_Hino_925_Zee_stack_3,""); Double_t xAxis15[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Zee_stack_4 = new TH1F("hsig_Zee_stack_4","",11, xAxis15); hsig_Zee_stack_4->SetBinContent(1,0.6108447); hsig_Zee_stack_4->SetBinContent(2,0.4260588); hsig_Zee_stack_4->SetBinContent(3,0.3618046); hsig_Zee_stack_4->SetBinContent(4,0.362821); hsig_Zee_stack_4->SetBinContent(5,0.4587789); hsig_Zee_stack_4->SetBinContent(6,0.3415324); hsig_Zee_stack_4->SetBinContent(7,0.4611429); hsig_Zee_stack_4->SetBinError(1,0.07298464); hsig_Zee_stack_4->SetBinError(2,0.01639676); hsig_Zee_stack_4->SetBinError(3,0.01382496); hsig_Zee_stack_4->SetBinError(4,0.01480473); hsig_Zee_stack_4->SetBinError(5,0.02171004); hsig_Zee_stack_4->SetBinError(6,0.02620155); hsig_Zee_stack_4->SetBinError(7,0.08383323); hsig_Zee_stack_4->SetEntries(643.9241); hsig_Zee_stack_4->SetMarkerStyle(20); hsig_Zee_stack_4->SetMarkerSize(2); hsig_Zee_stack_4->GetXaxis()->SetTitle("#rho [mm]"); hsig_Zee_stack_4->GetXaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hsig_Zee_stack_4->GetXaxis()->SetTitleFont(42); hsig_Zee_stack_4->GetYaxis()->SetTitle(" #rho - ||SV|| [mm]"); hsig_Zee_stack_4->GetYaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetYaxis()->SetTitleFont(42); hsig_Zee_stack_4->GetZaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hsig_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_rat->Add(hsig_Zee_stack_4,""); hs_rat->Draw("nostack p"); TLegend *leg = new TLegend(0.55,0.7,0.72,0.88,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.03); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("hsig_Hino_135_2ns_stack_1","Hino_135_2ns","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#00ff00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#00ff00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hsig_Hino_525_Zee_stack_2","Hino_525_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#ffcc00"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ffcc00"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hsig_Hino_925_Zee_stack_3","Hino_925_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#ff0000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hsig_Zee_stack_4","Zee","lpf"); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.14,0.84,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.25,0.84,"Internal"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.045); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.14,0.8,"#sqrt{s} = 13 TeV"); tex->SetNDC(); tex->SetTextFont(42); tex->SetTextSize(0.03375); tex->SetLineWidth(2); tex->Draw(); c->Modified(); c->cd(); c->SetSelected(c); }