void PlotPointingBias() { //=========Macro generated from canvas: c_m/c //========= (Mon May 16 10:17:38 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(-937.5,-250,937.5,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(";|z_{origin}| [mm]; Pointing Bias [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis5[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hs_m_stack_2 = new TH1F("hs_m_stack_2","",22, xAxis5); hs_m_stack_2->SetMinimum(-200); hs_m_stack_2->SetMaximum(200); hs_m_stack_2->SetDirectory(0); hs_m_stack_2->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_2->SetLineColor(ci); hs_m_stack_2->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hs_m_stack_2->GetXaxis()->SetLabelFont(42); hs_m_stack_2->GetXaxis()->SetTitleOffset(1); hs_m_stack_2->GetXaxis()->SetTitleFont(42); hs_m_stack_2->GetYaxis()->SetTitle(" Pointing Bias [mm]"); hs_m_stack_2->GetYaxis()->SetLabelFont(42); hs_m_stack_2->GetYaxis()->SetTitleFont(42); hs_m_stack_2->GetZaxis()->SetLabelFont(42); hs_m_stack_2->GetZaxis()->SetTitleOffset(1); hs_m_stack_2->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_2); Double_t xAxis6[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_135_Hyy_stack_1 = new TH1F("hmean_Hino_135_Hyy_stack_1","",22, xAxis6); hmean_Hino_135_Hyy_stack_1->SetBinContent(1,156.3031); hmean_Hino_135_Hyy_stack_1->SetBinContent(2,96.87268); hmean_Hino_135_Hyy_stack_1->SetBinContent(3,67.25469); hmean_Hino_135_Hyy_stack_1->SetBinContent(4,56.04451); hmean_Hino_135_Hyy_stack_1->SetBinContent(5,39.53936); hmean_Hino_135_Hyy_stack_1->SetBinContent(6,30.60176); hmean_Hino_135_Hyy_stack_1->SetBinContent(7,24.46712); hmean_Hino_135_Hyy_stack_1->SetBinContent(8,19.41464); hmean_Hino_135_Hyy_stack_1->SetBinContent(9,15.05717); hmean_Hino_135_Hyy_stack_1->SetBinContent(10,8.66466); hmean_Hino_135_Hyy_stack_1->SetBinContent(11,3.309886); hmean_Hino_135_Hyy_stack_1->SetBinContent(12,-1.401247); hmean_Hino_135_Hyy_stack_1->SetBinContent(13,-6.122157); hmean_Hino_135_Hyy_stack_1->SetBinContent(14,-13.17439); hmean_Hino_135_Hyy_stack_1->SetBinContent(15,-16.63614); hmean_Hino_135_Hyy_stack_1->SetBinContent(16,-21.6947); hmean_Hino_135_Hyy_stack_1->SetBinContent(17,-27.51257); hmean_Hino_135_Hyy_stack_1->SetBinContent(18,-35.36848); hmean_Hino_135_Hyy_stack_1->SetBinContent(19,-47.99743); hmean_Hino_135_Hyy_stack_1->SetBinContent(20,-66.02992); hmean_Hino_135_Hyy_stack_1->SetBinContent(21,-89.56256); hmean_Hino_135_Hyy_stack_1->SetBinContent(22,-140.6226); hmean_Hino_135_Hyy_stack_1->SetBinError(1,3.268502); hmean_Hino_135_Hyy_stack_1->SetBinError(2,2.192368); hmean_Hino_135_Hyy_stack_1->SetBinError(3,2.241221); hmean_Hino_135_Hyy_stack_1->SetBinError(4,1.773958); hmean_Hino_135_Hyy_stack_1->SetBinError(5,1.204466); hmean_Hino_135_Hyy_stack_1->SetBinError(6,1.064702); hmean_Hino_135_Hyy_stack_1->SetBinError(7,0.8993468); hmean_Hino_135_Hyy_stack_1->SetBinError(8,0.6913051); hmean_Hino_135_Hyy_stack_1->SetBinError(9,0.4979877); hmean_Hino_135_Hyy_stack_1->SetBinError(10,0.4078974); hmean_Hino_135_Hyy_stack_1->SetBinError(11,0.3327524); hmean_Hino_135_Hyy_stack_1->SetBinError(12,0.3694245); hmean_Hino_135_Hyy_stack_1->SetBinError(13,0.413608); hmean_Hino_135_Hyy_stack_1->SetBinError(14,0.4492757); hmean_Hino_135_Hyy_stack_1->SetBinError(15,0.7127535); hmean_Hino_135_Hyy_stack_1->SetBinError(16,0.9001325); hmean_Hino_135_Hyy_stack_1->SetBinError(17,1.210981); hmean_Hino_135_Hyy_stack_1->SetBinError(18,1.102309); hmean_Hino_135_Hyy_stack_1->SetBinError(19,1.819579); hmean_Hino_135_Hyy_stack_1->SetBinError(20,2.14922); hmean_Hino_135_Hyy_stack_1->SetBinError(21,2.337767); hmean_Hino_135_Hyy_stack_1->SetBinError(22,2.973503); hmean_Hino_135_Hyy_stack_1->SetEntries(22); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Hyy_stack_1->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Hyy_stack_1->SetMarkerColor(ci); hmean_Hino_135_Hyy_stack_1->SetMarkerStyle(26); hmean_Hino_135_Hyy_stack_1->SetMarkerSize(2); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_135_Hyy_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_Hyy_stack_1,""); Double_t xAxis7[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_135_Zee_stack_2 = new TH1F("hmean_Hino_135_Zee_stack_2","",22, xAxis7); hmean_Hino_135_Zee_stack_2->SetBinContent(1,145.591); hmean_Hino_135_Zee_stack_2->SetBinContent(2,89.89901); hmean_Hino_135_Zee_stack_2->SetBinContent(3,66.70898); hmean_Hino_135_Zee_stack_2->SetBinContent(4,54.52169); hmean_Hino_135_Zee_stack_2->SetBinContent(5,39.88726); hmean_Hino_135_Zee_stack_2->SetBinContent(6,28.87922); hmean_Hino_135_Zee_stack_2->SetBinContent(7,25.01521); hmean_Hino_135_Zee_stack_2->SetBinContent(8,19.41119); hmean_Hino_135_Zee_stack_2->SetBinContent(9,16.1189); hmean_Hino_135_Zee_stack_2->SetBinContent(10,9.512382); hmean_Hino_135_Zee_stack_2->SetBinContent(11,4.664821); hmean_Hino_135_Zee_stack_2->SetBinContent(12,-1.241019); hmean_Hino_135_Zee_stack_2->SetBinContent(13,-7.156388); hmean_Hino_135_Zee_stack_2->SetBinContent(14,-12.50573); hmean_Hino_135_Zee_stack_2->SetBinContent(15,-18.67762); hmean_Hino_135_Zee_stack_2->SetBinContent(16,-23.38642); hmean_Hino_135_Zee_stack_2->SetBinContent(17,-30.67971); hmean_Hino_135_Zee_stack_2->SetBinContent(18,-36.16202); hmean_Hino_135_Zee_stack_2->SetBinContent(19,-47.77148); hmean_Hino_135_Zee_stack_2->SetBinContent(20,-64.20056); hmean_Hino_135_Zee_stack_2->SetBinContent(21,-82.56596); hmean_Hino_135_Zee_stack_2->SetBinContent(22,-136.7298); hmean_Hino_135_Zee_stack_2->SetBinError(1,2.669879); hmean_Hino_135_Zee_stack_2->SetBinError(2,1.97865); hmean_Hino_135_Zee_stack_2->SetBinError(3,2.1799); hmean_Hino_135_Zee_stack_2->SetBinError(4,1.455906); hmean_Hino_135_Zee_stack_2->SetBinError(5,1.326614); hmean_Hino_135_Zee_stack_2->SetBinError(6,1.263237); hmean_Hino_135_Zee_stack_2->SetBinError(7,1.046329); hmean_Hino_135_Zee_stack_2->SetBinError(8,0.7682675); hmean_Hino_135_Zee_stack_2->SetBinError(9,0.5460062); hmean_Hino_135_Zee_stack_2->SetBinError(10,0.4949166); hmean_Hino_135_Zee_stack_2->SetBinError(11,0.3783084); hmean_Hino_135_Zee_stack_2->SetBinError(12,0.477629); hmean_Hino_135_Zee_stack_2->SetBinError(13,0.4493248); hmean_Hino_135_Zee_stack_2->SetBinError(14,0.5857124); hmean_Hino_135_Zee_stack_2->SetBinError(15,0.7284544); hmean_Hino_135_Zee_stack_2->SetBinError(16,0.8431305); hmean_Hino_135_Zee_stack_2->SetBinError(17,1.285824); hmean_Hino_135_Zee_stack_2->SetBinError(18,1.14455); hmean_Hino_135_Zee_stack_2->SetBinError(19,1.719056); hmean_Hino_135_Zee_stack_2->SetBinError(20,2.130769); hmean_Hino_135_Zee_stack_2->SetBinError(21,1.964433); hmean_Hino_135_Zee_stack_2->SetBinError(22,2.723244); hmean_Hino_135_Zee_stack_2->SetEntries(22); ci = TColor::GetColor("#0000ff"); hmean_Hino_135_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); hmean_Hino_135_Zee_stack_2->SetMarkerColor(ci); hmean_Hino_135_Zee_stack_2->SetMarkerStyle(26); hmean_Hino_135_Zee_stack_2->SetMarkerSize(2); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_Zee_stack_2,""); Double_t xAxis8[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Zee_stack_3 = new TH1F("hmean_Zee_stack_3","",22, xAxis8); hmean_Zee_stack_3->SetBinContent(6,30.24095); hmean_Zee_stack_3->SetBinContent(7,22.26866); hmean_Zee_stack_3->SetBinContent(8,18.55489); hmean_Zee_stack_3->SetBinContent(9,13.96431); hmean_Zee_stack_3->SetBinContent(10,9.161098); hmean_Zee_stack_3->SetBinContent(11,4.119128); hmean_Zee_stack_3->SetBinContent(12,-1.182919); hmean_Zee_stack_3->SetBinContent(13,-5.765457); hmean_Zee_stack_3->SetBinContent(14,-10.55632); hmean_Zee_stack_3->SetBinContent(15,-15.37071); hmean_Zee_stack_3->SetBinContent(16,-20.74711); hmean_Zee_stack_3->SetBinContent(17,-25.39111); hmean_Zee_stack_3->SetBinError(6,2.545985); hmean_Zee_stack_3->SetBinError(7,0.6569771); hmean_Zee_stack_3->SetBinError(8,0.2702644); hmean_Zee_stack_3->SetBinError(9,0.1436171); hmean_Zee_stack_3->SetBinError(10,0.08729777); hmean_Zee_stack_3->SetBinError(11,0.07138032); hmean_Zee_stack_3->SetBinError(12,0.0684422); hmean_Zee_stack_3->SetBinError(13,0.08884597); hmean_Zee_stack_3->SetBinError(14,0.1364781); hmean_Zee_stack_3->SetBinError(15,0.2695203); hmean_Zee_stack_3->SetBinError(16,0.6242956); hmean_Zee_stack_3->SetBinError(17,1.780015); hmean_Zee_stack_3->SetEntries(12); ci = TColor::GetColor("#ff0000"); hmean_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Zee_stack_3->SetMarkerColor(ci); hmean_Zee_stack_3->SetMarkerStyle(24); hmean_Zee_stack_3->SetMarkerSize(2); hmean_Zee_stack_3->GetXaxis()->SetLabelFont(42); hmean_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Zee_stack_3->GetXaxis()->SetTitleFont(42); hmean_Zee_stack_3->GetYaxis()->SetLabelFont(42); hmean_Zee_stack_3->GetYaxis()->SetTitleFont(42); hmean_Zee_stack_3->GetZaxis()->SetLabelFont(42); hmean_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Zee_stack_3,""); hs_m->Draw("nostack p"); TLegend *leg = new TLegend(0.65,0.6,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_Hyy_stack_1","135GeV Hyy signal","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(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_135_Zee_stack_2","135GeV Zee signal","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(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Zee_stack_3","Zee MC","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(24); 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); }