void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 10:20:30 2022) by ROOT version 6.20/06 TCanvas *c_m = new TCanvas("c_m", "c",0,0,1600,1200); gStyle->SetOptStat(0); c_m->Range(-87.50001,-0.375,787.5,3.375); c_m->SetFillColor(0); c_m->SetBorderMode(0); c_m->SetBorderSize(2); c_m->SetFrameBorderMode(0); c_m->SetFrameBorderMode(0); THStack *hs_m_rat = new THStack(); hs_m_rat->SetName("hs_m_rat"); hs_m_rat->SetTitle(";#rho [mm];Ratio;"); hs_m_rat->SetMinimum(0); hs_m_rat->SetMaximum(3); Double_t xAxis56[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_m_rat_stack_12 = new TH1F("hs_m_rat_stack_12","",11, xAxis56); hs_m_rat_stack_12->SetMinimum(0); hs_m_rat_stack_12->SetMaximum(3); hs_m_rat_stack_12->SetDirectory(0); hs_m_rat_stack_12->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_rat_stack_12->SetLineColor(ci); hs_m_rat_stack_12->GetXaxis()->SetTitle("#rho [mm]"); hs_m_rat_stack_12->GetXaxis()->SetLabelFont(42); hs_m_rat_stack_12->GetXaxis()->SetTitleOffset(1); hs_m_rat_stack_12->GetXaxis()->SetTitleFont(42); hs_m_rat_stack_12->GetYaxis()->SetTitle("Ratio"); hs_m_rat_stack_12->GetYaxis()->SetLabelFont(42); hs_m_rat_stack_12->GetYaxis()->SetTitleFont(42); hs_m_rat_stack_12->GetZaxis()->SetLabelFont(42); hs_m_rat_stack_12->GetZaxis()->SetTitleOffset(1); hs_m_rat_stack_12->GetZaxis()->SetTitleFont(42); hs_m_rat->SetHistogram(hs_m_rat_stack_12); Double_t xAxis57[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_135_2ns_stack_1 = new TH1F("hmean_Hino_135_2ns_stack_1","",11, xAxis57); hmean_Hino_135_2ns_stack_1->SetBinContent(1,1); hmean_Hino_135_2ns_stack_1->SetBinContent(2,1); hmean_Hino_135_2ns_stack_1->SetBinContent(3,1); hmean_Hino_135_2ns_stack_1->SetBinContent(4,1); hmean_Hino_135_2ns_stack_1->SetBinContent(5,1); hmean_Hino_135_2ns_stack_1->SetBinContent(6,1); hmean_Hino_135_2ns_stack_1->SetBinContent(7,1); hmean_Hino_135_2ns_stack_1->SetBinContent(8,1); hmean_Hino_135_2ns_stack_1->SetBinContent(9,1); hmean_Hino_135_2ns_stack_1->SetBinContent(10,1); hmean_Hino_135_2ns_stack_1->SetBinContent(11,1); hmean_Hino_135_2ns_stack_1->SetBinError(1,9893.217); hmean_Hino_135_2ns_stack_1->SetBinError(2,1.203745); hmean_Hino_135_2ns_stack_1->SetBinError(3,26.40413); hmean_Hino_135_2ns_stack_1->SetBinError(4,8.78493); hmean_Hino_135_2ns_stack_1->SetBinError(5,0.9510607); hmean_Hino_135_2ns_stack_1->SetBinError(6,4.932781); hmean_Hino_135_2ns_stack_1->SetBinError(7,1.222919); hmean_Hino_135_2ns_stack_1->SetBinError(8,15.21728); hmean_Hino_135_2ns_stack_1->SetBinError(9,0.8778143); hmean_Hino_135_2ns_stack_1->SetBinError(10,0.6650459); hmean_Hino_135_2ns_stack_1->SetBinError(11,93.32327); hmean_Hino_135_2ns_stack_1->SetEntries(1.236138e-06); hmean_Hino_135_2ns_stack_1->SetStats(0); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetMarkerColor(ci); hmean_Hino_135_2ns_stack_1->SetMarkerStyle(20); hmean_Hino_135_2ns_stack_1->SetMarkerSize(2); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Hino_135_2ns_stack_1,""); Double_t xAxis58[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_525_Zee_stack_2 = new TH1F("hmean_Hino_525_Zee_stack_2","",11, xAxis58); hmean_Hino_525_Zee_stack_2->SetBinContent(1,5412.247); hmean_Hino_525_Zee_stack_2->SetBinContent(2,1.797163); hmean_Hino_525_Zee_stack_2->SetBinContent(3,-40.72046); hmean_Hino_525_Zee_stack_2->SetBinContent(4,0.2130585); hmean_Hino_525_Zee_stack_2->SetBinContent(5,0.1911703); hmean_Hino_525_Zee_stack_2->SetBinContent(6,0.7434464); hmean_Hino_525_Zee_stack_2->SetBinContent(7,-2.754553); hmean_Hino_525_Zee_stack_2->SetBinContent(8,-23.92956); hmean_Hino_525_Zee_stack_2->SetBinContent(9,0.1697729); hmean_Hino_525_Zee_stack_2->SetBinContent(10,1.175118); hmean_Hino_525_Zee_stack_2->SetBinContent(11,-49.85787); hmean_Hino_525_Zee_stack_2->SetBinError(1,3.786171e+07); hmean_Hino_525_Zee_stack_2->SetBinError(2,1.893265); hmean_Hino_525_Zee_stack_2->SetBinError(3,760.6634); hmean_Hino_525_Zee_stack_2->SetBinError(4,8.275557); hmean_Hino_525_Zee_stack_2->SetBinError(5,0.8401027); hmean_Hino_525_Zee_stack_2->SetBinError(6,4.894679); hmean_Hino_525_Zee_stack_2->SetBinError(7,2.554684); hmean_Hino_525_Zee_stack_2->SetBinError(8,257.7834); hmean_Hino_525_Zee_stack_2->SetBinError(9,0.737847); hmean_Hino_525_Zee_stack_2->SetBinError(10,0.8096776); hmean_Hino_525_Zee_stack_2->SetBinError(11,3291.474); hmean_Hino_525_Zee_stack_2->SetEntries(1.958991e-08); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetMarkerColor(ci); hmean_Hino_525_Zee_stack_2->SetMarkerStyle(20); hmean_Hino_525_Zee_stack_2->SetMarkerSize(2); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Hino_525_Zee_stack_2,""); Double_t xAxis59[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_925_Zee_stack_3 = new TH1F("hmean_Hino_925_Zee_stack_3","",11, xAxis59); hmean_Hino_925_Zee_stack_3->SetBinContent(1,-42993.52); hmean_Hino_925_Zee_stack_3->SetBinContent(2,-0.7582999); hmean_Hino_925_Zee_stack_3->SetBinContent(3,6.639009); hmean_Hino_925_Zee_stack_3->SetBinContent(4,-5.454415); hmean_Hino_925_Zee_stack_3->SetBinContent(5,3.136412); hmean_Hino_925_Zee_stack_3->SetBinContent(6,-15.08132); hmean_Hino_925_Zee_stack_3->SetBinContent(7,-2.665791); hmean_Hino_925_Zee_stack_3->SetBinContent(8,48.34357); hmean_Hino_925_Zee_stack_3->SetBinContent(9,-2.636315); hmean_Hino_925_Zee_stack_3->SetBinContent(10,-1.157399); hmean_Hino_925_Zee_stack_3->SetBinContent(11,283.3539); hmean_Hino_925_Zee_stack_3->SetBinError(1,3.007638e+08); hmean_Hino_925_Zee_stack_3->SetBinError(2,1.976667); hmean_Hino_925_Zee_stack_3->SetBinError(3,133.1333); hmean_Hino_925_Zee_stack_3->SetBinError(4,38.66857); hmean_Hino_925_Zee_stack_3->SetBinError(5,2.820533); hmean_Hino_925_Zee_stack_3->SetBinError(6,53.84984); hmean_Hino_925_Zee_stack_3->SetBinError(7,3.333583); hmean_Hino_925_Zee_stack_3->SetBinError(8,521.2742); hmean_Hino_925_Zee_stack_3->SetBinError(9,2.720193); hmean_Hino_925_Zee_stack_3->SetBinError(10,1.893431); hmean_Hino_925_Zee_stack_3->SetBinError(11,18700.04); hmean_Hino_925_Zee_stack_3->SetEntries(42679.8); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetMarkerColor(ci); hmean_Hino_925_Zee_stack_3->SetMarkerStyle(20); hmean_Hino_925_Zee_stack_3->SetMarkerSize(2); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Hino_925_Zee_stack_3,""); Double_t xAxis60[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Zee_stack_4 = new TH1F("hmean_Zee_stack_4","",11, xAxis60); hmean_Zee_stack_4->SetBinContent(1,-4055.187); hmean_Zee_stack_4->SetBinContent(2,0.9589443); hmean_Zee_stack_4->SetBinContent(3,-27.43085); hmean_Zee_stack_4->SetBinContent(4,8.538048); hmean_Zee_stack_4->SetBinContent(5,0.0564464); hmean_Zee_stack_4->SetBinContent(6,-2.769122); hmean_Zee_stack_4->SetBinContent(7,-3.516705); hmean_Zee_stack_4->SetBinError(1,2.836831e+07); hmean_Zee_stack_4->SetBinError(2,0.8189574); hmean_Zee_stack_4->SetBinError(3,512.1555); hmean_Zee_stack_4->SetBinError(4,53.06601); hmean_Zee_stack_4->SetBinError(5,0.5202447); hmean_Zee_stack_4->SetBinError(6,12.05466); hmean_Zee_stack_4->SetBinError(7,9.674792); hmean_Zee_stack_4->SetEntries(4079.35); hmean_Zee_stack_4->SetMarkerStyle(20); hmean_Zee_stack_4->SetMarkerSize(2); hmean_Zee_stack_4->GetXaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetXaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetYaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetYaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetZaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Zee_stack_4,""); hs_m_rat->Draw("nostack p"); TLegend *leg = new TLegend(0.65,0.7,0.82,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("hmean_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("hmean_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("hmean_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("hmean_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_m->Modified(); c_m->cd(); c_m->SetSelected(c_m); }