void PlotPointingBias() { //=========Macro generated from canvas: c_m/c //========= (Mon May 23 16:07:20 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,146.4404); hmean_Hino_135_Hyy_stack_1->SetBinContent(2,91.84196); hmean_Hino_135_Hyy_stack_1->SetBinContent(3,62.88198); hmean_Hino_135_Hyy_stack_1->SetBinContent(4,52.0285); hmean_Hino_135_Hyy_stack_1->SetBinContent(5,36.02713); hmean_Hino_135_Hyy_stack_1->SetBinContent(6,28.76594); hmean_Hino_135_Hyy_stack_1->SetBinContent(7,24.04825); hmean_Hino_135_Hyy_stack_1->SetBinContent(8,18.30638); hmean_Hino_135_Hyy_stack_1->SetBinContent(9,13.7289); hmean_Hino_135_Hyy_stack_1->SetBinContent(10,8.830354); hmean_Hino_135_Hyy_stack_1->SetBinContent(11,3.623405); hmean_Hino_135_Hyy_stack_1->SetBinContent(12,-1.827565); hmean_Hino_135_Hyy_stack_1->SetBinContent(13,-5.487633); hmean_Hino_135_Hyy_stack_1->SetBinContent(14,-11.65855); hmean_Hino_135_Hyy_stack_1->SetBinContent(15,-16.18352); hmean_Hino_135_Hyy_stack_1->SetBinContent(16,-21.30691); hmean_Hino_135_Hyy_stack_1->SetBinContent(17,-25.90401); hmean_Hino_135_Hyy_stack_1->SetBinContent(18,-33.0583); hmean_Hino_135_Hyy_stack_1->SetBinContent(19,-47.59587); hmean_Hino_135_Hyy_stack_1->SetBinContent(20,-63.91447); hmean_Hino_135_Hyy_stack_1->SetBinContent(21,-85.0158); hmean_Hino_135_Hyy_stack_1->SetBinContent(22,-131.9666); hmean_Hino_135_Hyy_stack_1->SetBinError(1,3.100127); hmean_Hino_135_Hyy_stack_1->SetBinError(2,2.190618); hmean_Hino_135_Hyy_stack_1->SetBinError(3,2.109112); hmean_Hino_135_Hyy_stack_1->SetBinError(4,1.769486); hmean_Hino_135_Hyy_stack_1->SetBinError(5,1.061027); hmean_Hino_135_Hyy_stack_1->SetBinError(6,1.094866); hmean_Hino_135_Hyy_stack_1->SetBinError(7,0.7926358); hmean_Hino_135_Hyy_stack_1->SetBinError(8,0.7181105); hmean_Hino_135_Hyy_stack_1->SetBinError(9,0.466945); hmean_Hino_135_Hyy_stack_1->SetBinError(10,0.3719476); hmean_Hino_135_Hyy_stack_1->SetBinError(11,0.3077597); hmean_Hino_135_Hyy_stack_1->SetBinError(12,0.3445281); hmean_Hino_135_Hyy_stack_1->SetBinError(13,0.3893657); hmean_Hino_135_Hyy_stack_1->SetBinError(14,0.4489199); hmean_Hino_135_Hyy_stack_1->SetBinError(15,0.6923801); hmean_Hino_135_Hyy_stack_1->SetBinError(16,0.858083); hmean_Hino_135_Hyy_stack_1->SetBinError(17,1.055235); hmean_Hino_135_Hyy_stack_1->SetBinError(18,1.247349); hmean_Hino_135_Hyy_stack_1->SetBinError(19,1.495163); hmean_Hino_135_Hyy_stack_1->SetBinError(20,2.079467); hmean_Hino_135_Hyy_stack_1->SetBinError(21,2.255378); hmean_Hino_135_Hyy_stack_1->SetBinError(22,2.857063); 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,144.2678); hmean_Hino_135_Zee_stack_2->SetBinContent(2,86.58865); hmean_Hino_135_Zee_stack_2->SetBinContent(3,65.07334); hmean_Hino_135_Zee_stack_2->SetBinContent(4,52.01574); hmean_Hino_135_Zee_stack_2->SetBinContent(5,36.1062); hmean_Hino_135_Zee_stack_2->SetBinContent(6,26.86169); hmean_Hino_135_Zee_stack_2->SetBinContent(7,23.74308); hmean_Hino_135_Zee_stack_2->SetBinContent(8,18.35398); hmean_Hino_135_Zee_stack_2->SetBinContent(9,14.88863); hmean_Hino_135_Zee_stack_2->SetBinContent(10,9.328522); hmean_Hino_135_Zee_stack_2->SetBinContent(11,4.114743); hmean_Hino_135_Zee_stack_2->SetBinContent(12,-1.370324); hmean_Hino_135_Zee_stack_2->SetBinContent(13,-6.533093); hmean_Hino_135_Zee_stack_2->SetBinContent(14,-11.50272); hmean_Hino_135_Zee_stack_2->SetBinContent(15,-17.18579); hmean_Hino_135_Zee_stack_2->SetBinContent(16,-22.16945); hmean_Hino_135_Zee_stack_2->SetBinContent(17,-26.25365); hmean_Hino_135_Zee_stack_2->SetBinContent(18,-35.89526); hmean_Hino_135_Zee_stack_2->SetBinContent(19,-44.61732); hmean_Hino_135_Zee_stack_2->SetBinContent(20,-62.55636); hmean_Hino_135_Zee_stack_2->SetBinContent(21,-80.06875); hmean_Hino_135_Zee_stack_2->SetBinContent(22,-131.5363); hmean_Hino_135_Zee_stack_2->SetBinError(1,2.793425); hmean_Hino_135_Zee_stack_2->SetBinError(2,1.999353); hmean_Hino_135_Zee_stack_2->SetBinError(3,2.130058); hmean_Hino_135_Zee_stack_2->SetBinError(4,1.495566); hmean_Hino_135_Zee_stack_2->SetBinError(5,1.123697); hmean_Hino_135_Zee_stack_2->SetBinError(6,1.26681); hmean_Hino_135_Zee_stack_2->SetBinError(7,0.9126322); hmean_Hino_135_Zee_stack_2->SetBinError(8,0.680985); hmean_Hino_135_Zee_stack_2->SetBinError(9,0.57794); hmean_Hino_135_Zee_stack_2->SetBinError(10,0.4306032); hmean_Hino_135_Zee_stack_2->SetBinError(11,0.3419084); hmean_Hino_135_Zee_stack_2->SetBinError(12,0.4269357); hmean_Hino_135_Zee_stack_2->SetBinError(13,0.4235283); hmean_Hino_135_Zee_stack_2->SetBinError(14,0.5545378); hmean_Hino_135_Zee_stack_2->SetBinError(15,0.7434337); hmean_Hino_135_Zee_stack_2->SetBinError(16,0.8671532); hmean_Hino_135_Zee_stack_2->SetBinError(17,1.188796); hmean_Hino_135_Zee_stack_2->SetBinError(18,0.9878159); hmean_Hino_135_Zee_stack_2->SetBinError(19,1.660904); hmean_Hino_135_Zee_stack_2->SetBinError(20,2.126823); hmean_Hino_135_Zee_stack_2->SetBinError(21,2.010417); hmean_Hino_135_Zee_stack_2->SetBinError(22,2.73297); 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->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); }