void PlotPointingRes() { //=========Macro generated from canvas: c/c //========= (Mon May 9 09:53:19 2022) by ROOT version 6.20/06 TCanvas *c = new TCanvas("c", "c",0,0,1600,1200); gStyle->SetOptStat(0); c->Range(-87.50001,-37.5,787.5,337.5); c->SetFillColor(0); c->SetBorderMode(0); c->SetBorderSize(2); c->SetFrameBorderMode(0); c->SetFrameBorderMode(0); THStack *hs = new THStack(); hs->SetName("hs"); hs->SetTitle(";|z_{origin}| [mm]; Pointing Resolution [mm];"); hs->SetMinimum(0); hs->SetMaximum(300); Double_t xAxis1[8] = {0, 25, 50, 75, 100, 150, 300, 700}; TH1F *hs_stack_1 = new TH1F("hs_stack_1","",7, xAxis1); hs_stack_1->SetMinimum(0); hs_stack_1->SetMaximum(300); hs_stack_1->SetDirectory(0); hs_stack_1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_stack_1->SetLineColor(ci); hs_stack_1->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hs_stack_1->GetXaxis()->SetLabelFont(42); hs_stack_1->GetXaxis()->SetTitleOffset(1); hs_stack_1->GetXaxis()->SetTitleFont(42); hs_stack_1->GetYaxis()->SetTitle(" Pointing Resolution [mm]"); hs_stack_1->GetYaxis()->SetLabelFont(42); hs_stack_1->GetYaxis()->SetTitleFont(42); hs_stack_1->GetZaxis()->SetLabelFont(42); hs_stack_1->GetZaxis()->SetTitleOffset(1); hs_stack_1->GetZaxis()->SetTitleFont(42); hs->SetHistogram(hs_stack_1); Double_t xAxis2[8] = {0, 25, 50, 75, 100, 150, 300, 700}; TH1F *hsig_Hino_135_Hyy_stack_1 = new TH1F("hsig_Hino_135_Hyy_stack_1","",7, xAxis2); hsig_Hino_135_Hyy_stack_1->SetBinContent(1,22.78088); hsig_Hino_135_Hyy_stack_1->SetBinContent(2,24.76855); hsig_Hino_135_Hyy_stack_1->SetBinContent(3,33.8768); hsig_Hino_135_Hyy_stack_1->SetBinContent(4,40.85102); hsig_Hino_135_Hyy_stack_1->SetBinContent(5,49.34782); hsig_Hino_135_Hyy_stack_1->SetBinContent(6,81.32999); hsig_Hino_135_Hyy_stack_1->SetBinContent(7,151.6509); hsig_Hino_135_Hyy_stack_1->SetBinError(1,1.352541); hsig_Hino_135_Hyy_stack_1->SetBinError(2,1.852958); hsig_Hino_135_Hyy_stack_1->SetBinError(3,2.446504); hsig_Hino_135_Hyy_stack_1->SetBinError(4,3.447317); hsig_Hino_135_Hyy_stack_1->SetBinError(5,3.344736); hsig_Hino_135_Hyy_stack_1->SetBinError(6,3.315424); hsig_Hino_135_Hyy_stack_1->SetBinError(7,6.663772); hsig_Hino_135_Hyy_stack_1->SetEntries(7); ci = TColor::GetColor("#ff00ff"); hsig_Hino_135_Hyy_stack_1->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); hsig_Hino_135_Hyy_stack_1->SetMarkerColor(ci); hsig_Hino_135_Hyy_stack_1->SetMarkerStyle(26); hsig_Hino_135_Hyy_stack_1->SetMarkerSize(2); hsig_Hino_135_Hyy_stack_1->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hsig_Hino_135_Hyy_stack_1->GetXaxis()->SetLabelFont(42); hsig_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleOffset(1); hsig_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleFont(42); hsig_Hino_135_Hyy_stack_1->GetYaxis()->SetTitle(" Pointing Resolution [mm]"); hsig_Hino_135_Hyy_stack_1->GetYaxis()->SetLabelFont(42); hsig_Hino_135_Hyy_stack_1->GetYaxis()->SetTitleFont(42); hsig_Hino_135_Hyy_stack_1->GetZaxis()->SetLabelFont(42); hsig_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleOffset(1); hsig_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Hino_135_Hyy_stack_1,""); Double_t xAxis3[8] = {0, 25, 50, 75, 100, 150, 300, 700}; TH1F *hsig_Hino_135_Zee_stack_2 = new TH1F("hsig_Hino_135_Zee_stack_2","",7, xAxis3); hsig_Hino_135_Zee_stack_2->SetBinContent(1,20.20393); hsig_Hino_135_Zee_stack_2->SetBinContent(2,30.43164); hsig_Hino_135_Zee_stack_2->SetBinContent(3,35.68896); hsig_Hino_135_Zee_stack_2->SetBinContent(4,31.59366); hsig_Hino_135_Zee_stack_2->SetBinContent(5,48.37561); hsig_Hino_135_Zee_stack_2->SetBinContent(6,70.46107); hsig_Hino_135_Zee_stack_2->SetBinContent(7,133.0342); hsig_Hino_135_Zee_stack_2->SetBinError(1,1.937308); hsig_Hino_135_Zee_stack_2->SetBinError(2,3.276786); hsig_Hino_135_Zee_stack_2->SetBinError(3,3.25652); hsig_Hino_135_Zee_stack_2->SetBinError(4,2.867336); hsig_Hino_135_Zee_stack_2->SetBinError(5,3.574697); hsig_Hino_135_Zee_stack_2->SetBinError(6,3.418091); hsig_Hino_135_Zee_stack_2->SetBinError(7,8.460546); hsig_Hino_135_Zee_stack_2->SetEntries(7); ci = TColor::GetColor("#0000ff"); hsig_Hino_135_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); hsig_Hino_135_Zee_stack_2->SetMarkerColor(ci); hsig_Hino_135_Zee_stack_2->SetMarkerStyle(26); hsig_Hino_135_Zee_stack_2->SetMarkerSize(2); hsig_Hino_135_Zee_stack_2->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hsig_Hino_135_Zee_stack_2->GetXaxis()->SetLabelFont(42); hsig_Hino_135_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hsig_Hino_135_Zee_stack_2->GetXaxis()->SetTitleFont(42); hsig_Hino_135_Zee_stack_2->GetYaxis()->SetTitle(" Pointing Resolution [mm]"); hsig_Hino_135_Zee_stack_2->GetYaxis()->SetLabelFont(42); hsig_Hino_135_Zee_stack_2->GetYaxis()->SetTitleFont(42); hsig_Hino_135_Zee_stack_2->GetZaxis()->SetLabelFont(42); hsig_Hino_135_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hsig_Hino_135_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Hino_135_Zee_stack_2,""); Double_t xAxis4[8] = {0, 25, 50, 75, 100, 150, 300, 700}; TH1F *hsig_Zee_stack_3 = new TH1F("hsig_Zee_stack_3","",7, xAxis4); hsig_Zee_stack_3->SetBinContent(1,18.20965); hsig_Zee_stack_3->SetBinContent(2,19.04363); hsig_Zee_stack_3->SetBinContent(3,20.0123); hsig_Zee_stack_3->SetBinContent(4,21.72505); hsig_Zee_stack_3->SetBinContent(5,24.65697); hsig_Zee_stack_3->SetBinError(1,0.239472); hsig_Zee_stack_3->SetBinError(2,0.3193714); hsig_Zee_stack_3->SetBinError(3,0.525068); hsig_Zee_stack_3->SetBinError(4,0.9966684); hsig_Zee_stack_3->SetBinError(5,2.040079); hsig_Zee_stack_3->SetEntries(5); ci = TColor::GetColor("#ff0000"); hsig_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hsig_Zee_stack_3->SetMarkerColor(ci); hsig_Zee_stack_3->SetMarkerStyle(24); hsig_Zee_stack_3->SetMarkerSize(2); hsig_Zee_stack_3->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hsig_Zee_stack_3->GetXaxis()->SetLabelFont(42); hsig_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hsig_Zee_stack_3->GetXaxis()->SetTitleFont(42); hsig_Zee_stack_3->GetYaxis()->SetTitle(" Pointing Resolution [mm]"); hsig_Zee_stack_3->GetYaxis()->SetLabelFont(42); hsig_Zee_stack_3->GetYaxis()->SetTitleFont(42); hsig_Zee_stack_3->GetZaxis()->SetLabelFont(42); hsig_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hsig_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Zee_stack_3,""); hs->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("hsig_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("hsig_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("hsig_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->Modified(); c->cd(); c->SetSelected(c); }