void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 10:16:33 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(-250,-0.375,2250,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 xAxis36[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hs_m_rat_stack_8 = new TH1F("hs_m_rat_stack_8","",5, xAxis36); hs_m_rat_stack_8->SetMinimum(0); hs_m_rat_stack_8->SetMaximum(3); hs_m_rat_stack_8->SetDirectory(0); hs_m_rat_stack_8->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_rat_stack_8->SetLineColor(ci); hs_m_rat_stack_8->GetXaxis()->SetTitle("#rho [mm]"); hs_m_rat_stack_8->GetXaxis()->SetLabelFont(42); hs_m_rat_stack_8->GetXaxis()->SetTitleOffset(1); hs_m_rat_stack_8->GetXaxis()->SetTitleFont(42); hs_m_rat_stack_8->GetYaxis()->SetTitle("Ratio"); hs_m_rat_stack_8->GetYaxis()->SetLabelFont(42); hs_m_rat_stack_8->GetYaxis()->SetTitleFont(42); hs_m_rat_stack_8->GetZaxis()->SetLabelFont(42); hs_m_rat_stack_8->GetZaxis()->SetTitleOffset(1); hs_m_rat_stack_8->GetZaxis()->SetTitleFont(42); hs_m_rat->SetHistogram(hs_m_rat_stack_8); Double_t xAxis37[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_135_2ns_stack_1 = new TH1F("hmean_Hino_135_2ns_stack_1","",5, xAxis37); 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->SetBinError(1,0.03479957); hmean_Hino_135_2ns_stack_1->SetBinError(2,0.02399007); hmean_Hino_135_2ns_stack_1->SetBinError(3,0.01710555); hmean_Hino_135_2ns_stack_1->SetBinError(4,0.01726599); hmean_Hino_135_2ns_stack_1->SetBinError(5,0.03172151); hmean_Hino_135_2ns_stack_1->SetEntries(7388.794); 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 xAxis38[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_525_Zee_stack_2 = new TH1F("hmean_Hino_525_Zee_stack_2","",5, xAxis38); hmean_Hino_525_Zee_stack_2->SetBinContent(1,1.855777); hmean_Hino_525_Zee_stack_2->SetBinContent(2,1.178574); hmean_Hino_525_Zee_stack_2->SetBinContent(3,0.908865); hmean_Hino_525_Zee_stack_2->SetBinContent(4,0.6958643); hmean_Hino_525_Zee_stack_2->SetBinContent(5,-0.4326373); hmean_Hino_525_Zee_stack_2->SetBinError(1,0.05637401); hmean_Hino_525_Zee_stack_2->SetBinError(2,0.0287112); hmean_Hino_525_Zee_stack_2->SetBinError(3,0.01934578); hmean_Hino_525_Zee_stack_2->SetBinError(4,0.01827662); hmean_Hino_525_Zee_stack_2->SetBinError(5,0.03998692); hmean_Hino_525_Zee_stack_2->SetEntries(2804.32); 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 xAxis39[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_925_Zee_stack_3 = new TH1F("hmean_Hino_925_Zee_stack_3","",5, xAxis39); hmean_Hino_925_Zee_stack_3->SetBinContent(1,1.697523); hmean_Hino_925_Zee_stack_3->SetBinContent(2,1.191074); hmean_Hino_925_Zee_stack_3->SetBinContent(3,0.9249888); hmean_Hino_925_Zee_stack_3->SetBinContent(4,0.3772281); hmean_Hino_925_Zee_stack_3->SetBinContent(5,-1.170577); hmean_Hino_925_Zee_stack_3->SetBinError(1,0.07926618); hmean_Hino_925_Zee_stack_3->SetBinError(2,0.06040162); hmean_Hino_925_Zee_stack_3->SetBinError(3,0.04340094); hmean_Hino_925_Zee_stack_3->SetBinError(4,0.05135494); hmean_Hino_925_Zee_stack_3->SetBinError(5,0.1222851); hmean_Hino_925_Zee_stack_3->SetEntries(310.2022); 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 xAxis40[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Zee_stack_4 = new TH1F("hmean_Zee_stack_4","",5, xAxis40); hmean_Zee_stack_4->SetBinContent(1,-0.003376727); hmean_Zee_stack_4->SetBinContent(2,0.03185787); hmean_Zee_stack_4->SetBinContent(3,1.837688); hmean_Zee_stack_4->SetBinError(1,0.003564863); hmean_Zee_stack_4->SetBinError(2,0.01039619); hmean_Zee_stack_4->SetBinError(3,1.177608); hmean_Zee_stack_4->SetEntries(2.511092); 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); }