void PlotPointingResVrhoRat() { //=========Macro generated from canvas: c/c //========= (Thu May 19 10:19:46 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 xAxis31[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_rat_stack_7 = new TH1F("hs_rat_stack_7","",11, xAxis31); hs_rat_stack_7->SetMinimum(0); hs_rat_stack_7->SetMaximum(3); hs_rat_stack_7->SetDirectory(0); hs_rat_stack_7->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_rat_stack_7->SetLineColor(ci); hs_rat_stack_7->GetXaxis()->SetTitle("#rho [mm]"); hs_rat_stack_7->GetXaxis()->SetLabelFont(42); hs_rat_stack_7->GetXaxis()->SetTitleOffset(1); hs_rat_stack_7->GetXaxis()->SetTitleFont(42); hs_rat_stack_7->GetYaxis()->SetTitle("Ratio"); hs_rat_stack_7->GetYaxis()->SetLabelFont(42); hs_rat_stack_7->GetYaxis()->SetTitleFont(42); hs_rat_stack_7->GetZaxis()->SetLabelFont(42); hs_rat_stack_7->GetZaxis()->SetTitleOffset(1); hs_rat_stack_7->GetZaxis()->SetTitleFont(42); hs_rat->SetHistogram(hs_rat_stack_7); Double_t xAxis32[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, xAxis32); 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.06525862); hsig_Hino_135_2ns_stack_1->SetBinError(2,0.06160372); hsig_Hino_135_2ns_stack_1->SetBinError(3,0.05288731); hsig_Hino_135_2ns_stack_1->SetBinError(4,0.05027145); hsig_Hino_135_2ns_stack_1->SetBinError(5,0.04492319); hsig_Hino_135_2ns_stack_1->SetBinError(6,0.04628685); hsig_Hino_135_2ns_stack_1->SetBinError(7,0.03632776); hsig_Hino_135_2ns_stack_1->SetBinError(8,0.03850072); hsig_Hino_135_2ns_stack_1->SetBinError(9,0.03477732); hsig_Hino_135_2ns_stack_1->SetBinError(10,0.02882026); hsig_Hino_135_2ns_stack_1->SetBinError(11,0.02415058); hsig_Hino_135_2ns_stack_1->SetEntries(5269.142); hsig_Hino_135_2ns_stack_1->SetStats(0); 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(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [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 xAxis33[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, xAxis33); hsig_Hino_525_Zee_stack_2->SetBinContent(1,1.576801); hsig_Hino_525_Zee_stack_2->SetBinContent(2,1.130809); hsig_Hino_525_Zee_stack_2->SetBinContent(3,1.118474); hsig_Hino_525_Zee_stack_2->SetBinContent(4,1.058668); hsig_Hino_525_Zee_stack_2->SetBinContent(5,1.141815); hsig_Hino_525_Zee_stack_2->SetBinContent(6,1.088579); hsig_Hino_525_Zee_stack_2->SetBinContent(7,1.27552); hsig_Hino_525_Zee_stack_2->SetBinContent(8,1.334903); hsig_Hino_525_Zee_stack_2->SetBinContent(9,1.378913); hsig_Hino_525_Zee_stack_2->SetBinContent(10,1.229723); hsig_Hino_525_Zee_stack_2->SetBinContent(11,1.224873); hsig_Hino_525_Zee_stack_2->SetBinError(1,0.1361924); hsig_Hino_525_Zee_stack_2->SetBinError(2,0.09005782); hsig_Hino_525_Zee_stack_2->SetBinError(3,0.06496942); hsig_Hino_525_Zee_stack_2->SetBinError(4,0.05384231); hsig_Hino_525_Zee_stack_2->SetBinError(5,0.05709406); hsig_Hino_525_Zee_stack_2->SetBinError(6,0.05163073); hsig_Hino_525_Zee_stack_2->SetBinError(7,0.04577558); hsig_Hino_525_Zee_stack_2->SetBinError(8,0.05141007); hsig_Hino_525_Zee_stack_2->SetBinError(9,0.05399134); hsig_Hino_525_Zee_stack_2->SetBinError(10,0.03753724); hsig_Hino_525_Zee_stack_2->SetBinError(11,0.03246943); hsig_Hino_525_Zee_stack_2->SetEntries(3690.18); 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(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [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 xAxis34[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, xAxis34); hsig_Hino_925_Zee_stack_3->SetBinContent(1,1.111211); hsig_Hino_925_Zee_stack_3->SetBinContent(2,1.149763); hsig_Hino_925_Zee_stack_3->SetBinContent(3,1.520518); hsig_Hino_925_Zee_stack_3->SetBinContent(4,1.310335); hsig_Hino_925_Zee_stack_3->SetBinContent(5,1.413461); hsig_Hino_925_Zee_stack_3->SetBinContent(6,1.46708); hsig_Hino_925_Zee_stack_3->SetBinContent(7,1.707355); hsig_Hino_925_Zee_stack_3->SetBinContent(8,1.693442); hsig_Hino_925_Zee_stack_3->SetBinContent(9,1.35623); hsig_Hino_925_Zee_stack_3->SetBinContent(10,1.553071); hsig_Hino_925_Zee_stack_3->SetBinContent(11,1.615431); hsig_Hino_925_Zee_stack_3->SetBinError(1,0.1470985); hsig_Hino_925_Zee_stack_3->SetBinError(2,0.08980801); hsig_Hino_925_Zee_stack_3->SetBinError(3,0.2246213); hsig_Hino_925_Zee_stack_3->SetBinError(4,0.09088537); hsig_Hino_925_Zee_stack_3->SetBinError(5,0.0840562); hsig_Hino_925_Zee_stack_3->SetBinError(6,0.1315014); hsig_Hino_925_Zee_stack_3->SetBinError(7,0.1105547); hsig_Hino_925_Zee_stack_3->SetBinError(8,0.1189327); hsig_Hino_925_Zee_stack_3->SetBinError(9,0.07661085); hsig_Hino_925_Zee_stack_3->SetBinError(10,0.09752272); hsig_Hino_925_Zee_stack_3->SetBinError(11,0.08702337); hsig_Hino_925_Zee_stack_3->SetEntries(1559.212); 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(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [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 xAxis35[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, xAxis35); hsig_Zee_stack_4->SetBinContent(1,1.217291); hsig_Zee_stack_4->SetBinContent(2,0.8653643); hsig_Zee_stack_4->SetBinContent(3,0.7756106); hsig_Zee_stack_4->SetBinContent(4,0.7129444); hsig_Zee_stack_4->SetBinContent(5,0.7783006); hsig_Zee_stack_4->SetBinContent(6,1.071331); hsig_Zee_stack_4->SetBinContent(7,4.28124); hsig_Zee_stack_4->SetBinError(1,0.0566769); hsig_Zee_stack_4->SetBinError(2,0.03830253); hsig_Zee_stack_4->SetBinError(3,0.03051054); hsig_Zee_stack_4->SetBinError(4,0.02754611); hsig_Zee_stack_4->SetBinError(5,0.03747005); hsig_Zee_stack_4->SetBinError(6,0.1191414); hsig_Zee_stack_4->SetBinError(7,2.825166); hsig_Zee_stack_4->SetEntries(11.76111); 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(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [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); }