void PlotPointingBiasVrho() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 08:25:18 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,-250,2250,250); c_m->SetFillColor(0); c_m->SetBorderMode(0); c_m->SetBorderSize(2); c_m->SetFrameBorderMode(0); c_m->SetFrameBorderMode(0); THStack *hs_m = new THStack(); hs_m->SetName("hs_m"); hs_m->SetTitle(";#rho [mm]; V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis36[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hs_m_stack_6 = new TH1F("hs_m_stack_6","",5, xAxis36); hs_m_stack_6->SetMinimum(-200); hs_m_stack_6->SetMaximum(200); hs_m_stack_6->SetDirectory(0); hs_m_stack_6->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_6->SetLineColor(ci); hs_m_stack_6->GetXaxis()->SetTitle("#rho [mm]"); hs_m_stack_6->GetXaxis()->SetLabelFont(42); hs_m_stack_6->GetXaxis()->SetTitleOffset(1); hs_m_stack_6->GetXaxis()->SetTitleFont(42); hs_m_stack_6->GetYaxis()->SetTitle(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [mm]"); hs_m_stack_6->GetYaxis()->SetLabelFont(42); hs_m_stack_6->GetYaxis()->SetTitleFont(42); hs_m_stack_6->GetZaxis()->SetLabelFont(42); hs_m_stack_6->GetZaxis()->SetTitleOffset(1); hs_m_stack_6->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_6); 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,-22.62085); hmean_Hino_135_2ns_stack_1->SetBinContent(2,-38.05278); hmean_Hino_135_2ns_stack_1->SetBinContent(3,-59.78154); hmean_Hino_135_2ns_stack_1->SetBinContent(4,-81.57519); hmean_Hino_135_2ns_stack_1->SetBinContent(5,-58.59761); hmean_Hino_135_2ns_stack_1->SetBinError(1,0.5566314); hmean_Hino_135_2ns_stack_1->SetBinError(2,0.64551); hmean_Hino_135_2ns_stack_1->SetBinError(3,0.7230847); hmean_Hino_135_2ns_stack_1->SetBinError(4,0.995943); hmean_Hino_135_2ns_stack_1->SetBinError(5,1.314373); hmean_Hino_135_2ns_stack_1->SetEntries(5); 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->Add(hmean_Hino_135_2ns_stack_1,""); Double_t xAxis38[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_135_10ns_stack_2 = new TH1F("hmean_Hino_135_10ns_stack_2","",5, xAxis38); hmean_Hino_135_10ns_stack_2->SetBinContent(1,-22.6194); hmean_Hino_135_10ns_stack_2->SetBinContent(2,-42.30209); hmean_Hino_135_10ns_stack_2->SetBinContent(3,-72.08625); hmean_Hino_135_10ns_stack_2->SetBinContent(4,-101.3587); hmean_Hino_135_10ns_stack_2->SetBinContent(5,-72.24535); hmean_Hino_135_10ns_stack_2->SetBinError(1,1.273144); hmean_Hino_135_10ns_stack_2->SetBinError(2,1.414971); hmean_Hino_135_10ns_stack_2->SetBinError(3,1.624941); hmean_Hino_135_10ns_stack_2->SetBinError(4,2.061655); hmean_Hino_135_10ns_stack_2->SetBinError(5,2.162766); hmean_Hino_135_10ns_stack_2->SetEntries(5); ci = TColor::GetColor("#ffcc00"); hmean_Hino_135_10ns_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_135_10ns_stack_2->SetMarkerColor(ci); hmean_Hino_135_10ns_stack_2->SetMarkerStyle(20); hmean_Hino_135_10ns_stack_2->SetMarkerSize(2); hmean_Hino_135_10ns_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_135_10ns_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_10ns_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_135_10ns_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_135_10ns_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_135_10ns_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_135_10ns_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_10ns_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_10ns_stack_2,""); Double_t xAxis39[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_135_50ns_stack_3 = new TH1F("hmean_Hino_135_50ns_stack_3","",5, xAxis39); hmean_Hino_135_50ns_stack_3->SetBinContent(1,-25.60327); hmean_Hino_135_50ns_stack_3->SetBinContent(2,-51.59929); hmean_Hino_135_50ns_stack_3->SetBinContent(3,-57.52468); hmean_Hino_135_50ns_stack_3->SetBinContent(4,-119.7791); hmean_Hino_135_50ns_stack_3->SetBinContent(5,-94.74031); hmean_Hino_135_50ns_stack_3->SetBinError(1,3.168765); hmean_Hino_135_50ns_stack_3->SetBinError(2,3.626249); hmean_Hino_135_50ns_stack_3->SetBinError(3,2.94517); hmean_Hino_135_50ns_stack_3->SetBinError(4,4.090815); hmean_Hino_135_50ns_stack_3->SetBinError(5,5.24812); hmean_Hino_135_50ns_stack_3->SetEntries(5); ci = TColor::GetColor("#ff0000"); hmean_Hino_135_50ns_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Hino_135_50ns_stack_3->SetMarkerColor(ci); hmean_Hino_135_50ns_stack_3->SetMarkerStyle(20); hmean_Hino_135_50ns_stack_3->SetMarkerSize(2); hmean_Hino_135_50ns_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_135_50ns_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_50ns_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_135_50ns_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_135_50ns_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_135_50ns_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_135_50ns_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_50ns_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_50ns_stack_3,""); Double_t xAxis40[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_525_Zee_stack_4 = new TH1F("hmean_Hino_525_Zee_stack_4","",5, xAxis40); hmean_Hino_525_Zee_stack_4->SetBinContent(1,-41.97925); hmean_Hino_525_Zee_stack_4->SetBinContent(2,-44.84802); hmean_Hino_525_Zee_stack_4->SetBinContent(3,-54.33335); hmean_Hino_525_Zee_stack_4->SetBinContent(4,-56.76526); hmean_Hino_525_Zee_stack_4->SetBinContent(5,25.35151); hmean_Hino_525_Zee_stack_4->SetBinError(1,0.7477635); hmean_Hino_525_Zee_stack_4->SetBinError(2,0.7841286); hmean_Hino_525_Zee_stack_4->SetBinError(3,0.951654); hmean_Hino_525_Zee_stack_4->SetBinError(4,1.32005); hmean_Hino_525_Zee_stack_4->SetBinError(5,2.27309); hmean_Hino_525_Zee_stack_4->SetEntries(5); hmean_Hino_525_Zee_stack_4->SetMarkerStyle(20); hmean_Hino_525_Zee_stack_4->SetMarkerSize(2); hmean_Hino_525_Zee_stack_4->GetXaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_4->GetXaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_4->GetYaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_4->GetYaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_4->GetZaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_525_Zee_stack_4,""); Double_t xAxis41[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_525_Hyy_stack_5 = new TH1F("hmean_Hino_525_Hyy_stack_5","",5, xAxis41); hmean_Hino_525_Hyy_stack_5->SetBinContent(1,-8.022978); hmean_Hino_525_Hyy_stack_5->SetBinContent(2,-24.02984); hmean_Hino_525_Hyy_stack_5->SetBinContent(3,-46.38299); hmean_Hino_525_Hyy_stack_5->SetBinContent(4,-52.67162); hmean_Hino_525_Hyy_stack_5->SetBinContent(5,-28.34987); hmean_Hino_525_Hyy_stack_5->SetBinError(1,1.006009); hmean_Hino_525_Hyy_stack_5->SetBinError(2,1.278416); hmean_Hino_525_Hyy_stack_5->SetBinError(3,1.836641); hmean_Hino_525_Hyy_stack_5->SetBinError(4,2.923879); hmean_Hino_525_Hyy_stack_5->SetBinError(5,4.093556); hmean_Hino_525_Hyy_stack_5->SetEntries(5); ci = TColor::GetColor("#ff00ff"); hmean_Hino_525_Hyy_stack_5->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); hmean_Hino_525_Hyy_stack_5->SetMarkerColor(ci); hmean_Hino_525_Hyy_stack_5->SetMarkerStyle(20); hmean_Hino_525_Hyy_stack_5->SetMarkerSize(2); hmean_Hino_525_Hyy_stack_5->GetXaxis()->SetLabelFont(42); hmean_Hino_525_Hyy_stack_5->GetXaxis()->SetTitleOffset(1); hmean_Hino_525_Hyy_stack_5->GetXaxis()->SetTitleFont(42); hmean_Hino_525_Hyy_stack_5->GetYaxis()->SetLabelFont(42); hmean_Hino_525_Hyy_stack_5->GetYaxis()->SetTitleFont(42); hmean_Hino_525_Hyy_stack_5->GetZaxis()->SetLabelFont(42); hmean_Hino_525_Hyy_stack_5->GetZaxis()->SetTitleOffset(1); hmean_Hino_525_Hyy_stack_5->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_525_Hyy_stack_5,""); Double_t xAxis42[6] = {0, 80, 160, 300, 520, 2000}; TH1F *hmean_Hino_925_Zee_stack_6 = new TH1F("hmean_Hino_925_Zee_stack_6","",5, xAxis42); hmean_Hino_925_Zee_stack_6->SetBinContent(1,-38.3994); hmean_Hino_925_Zee_stack_6->SetBinContent(2,-45.32369); hmean_Hino_925_Zee_stack_6->SetBinContent(3,-55.29725); hmean_Hino_925_Zee_stack_6->SetBinContent(4,-30.77245); hmean_Hino_925_Zee_stack_6->SetBinContent(5,68.593); hmean_Hino_925_Zee_stack_6->SetBinError(1,1.523899); hmean_Hino_925_Zee_stack_6->SetBinError(2,2.166042); hmean_Hino_925_Zee_stack_6->SetBinError(3,2.506884); hmean_Hino_925_Zee_stack_6->SetBinError(4,4.172408); hmean_Hino_925_Zee_stack_6->SetBinError(5,6.998487); hmean_Hino_925_Zee_stack_6->SetEntries(5); ci = TColor::GetColor("#0000ff"); hmean_Hino_925_Zee_stack_6->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); hmean_Hino_925_Zee_stack_6->SetMarkerColor(ci); hmean_Hino_925_Zee_stack_6->SetMarkerStyle(20); hmean_Hino_925_Zee_stack_6->SetMarkerSize(2); hmean_Hino_925_Zee_stack_6->GetXaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_6->GetXaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_6->GetXaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_6->GetYaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_6->GetYaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_6->GetZaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_6->GetZaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_6->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_925_Zee_stack_6,""); hs_m->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_135_10ns_stack_2","Hino_135_10ns","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_135_50ns_stack_3","Hino_135_50ns","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_Hino_525_Zee_stack_4","Hino_525_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); entry=leg->AddEntry("hmean_Hino_525_Hyy_stack_5","Hino_525_Hyy","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#ff00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff00ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_925_Zee_stack_6","Hino_925_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); 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); }