void PlotPointingRes() { //=========Macro generated from canvas: c/c //========= (Mon May 23 16:07:20 2022) by ROOT version 6.20/06 TCanvas *c = new TCanvas("c", "c",0,0,1600,1200); gStyle->SetOptStat(0); c->Range(-937.5,-18.75,937.5,168.75); 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(150); Double_t xAxis1[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_stack_1 = new TH1F("hs_stack_1","",22, xAxis1); hs_stack_1->SetMinimum(0); hs_stack_1->SetMaximum(150); 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[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 *hsig_Hino_135_Hyy_stack_1 = new TH1F("hsig_Hino_135_Hyy_stack_1","",22, xAxis2); hsig_Hino_135_Hyy_stack_1->SetBinContent(1,117.1669); hsig_Hino_135_Hyy_stack_1->SetBinContent(2,78.2872); hsig_Hino_135_Hyy_stack_1->SetBinContent(3,59.66663); hsig_Hino_135_Hyy_stack_1->SetBinContent(4,56.78925); hsig_Hino_135_Hyy_stack_1->SetBinContent(5,37.94453); hsig_Hino_135_Hyy_stack_1->SetBinContent(6,32.25954); hsig_Hino_135_Hyy_stack_1->SetBinContent(7,21.37521); hsig_Hino_135_Hyy_stack_1->SetBinContent(8,20.55993); hsig_Hino_135_Hyy_stack_1->SetBinContent(9,14.41903); hsig_Hino_135_Hyy_stack_1->SetBinContent(10,12.06624); hsig_Hino_135_Hyy_stack_1->SetBinContent(11,10.60718); hsig_Hino_135_Hyy_stack_1->SetBinContent(12,11.36693); hsig_Hino_135_Hyy_stack_1->SetBinContent(13,13.42599); hsig_Hino_135_Hyy_stack_1->SetBinContent(14,13.69516); hsig_Hino_135_Hyy_stack_1->SetBinContent(15,19.44765); hsig_Hino_135_Hyy_stack_1->SetBinContent(16,23.11915); hsig_Hino_135_Hyy_stack_1->SetBinContent(17,29.41118); hsig_Hino_135_Hyy_stack_1->SetBinContent(18,39.33747); hsig_Hino_135_Hyy_stack_1->SetBinContent(19,50.86983); hsig_Hino_135_Hyy_stack_1->SetBinContent(20,58.61795); hsig_Hino_135_Hyy_stack_1->SetBinContent(21,80.11814); hsig_Hino_135_Hyy_stack_1->SetBinContent(22,115.1189); hsig_Hino_135_Hyy_stack_1->SetBinError(1,4.11565); hsig_Hino_135_Hyy_stack_1->SetBinError(2,2.597498); hsig_Hino_135_Hyy_stack_1->SetBinError(3,2.619554); hsig_Hino_135_Hyy_stack_1->SetBinError(4,2.232627); hsig_Hino_135_Hyy_stack_1->SetBinError(5,1.342077); hsig_Hino_135_Hyy_stack_1->SetBinError(6,1.221247); hsig_Hino_135_Hyy_stack_1->SetBinError(7,0.940135); hsig_Hino_135_Hyy_stack_1->SetBinError(8,0.9959568); hsig_Hino_135_Hyy_stack_1->SetBinError(9,0.6401559); hsig_Hino_135_Hyy_stack_1->SetBinError(10,0.4926191); hsig_Hino_135_Hyy_stack_1->SetBinError(11,0.3957441); hsig_Hino_135_Hyy_stack_1->SetBinError(12,0.4997292); hsig_Hino_135_Hyy_stack_1->SetBinError(13,0.49107); hsig_Hino_135_Hyy_stack_1->SetBinError(14,0.5947833); hsig_Hino_135_Hyy_stack_1->SetBinError(15,0.951398); hsig_Hino_135_Hyy_stack_1->SetBinError(16,1.055551); hsig_Hino_135_Hyy_stack_1->SetBinError(17,1.245611); hsig_Hino_135_Hyy_stack_1->SetBinError(18,1.746389); hsig_Hino_135_Hyy_stack_1->SetBinError(19,1.6313); hsig_Hino_135_Hyy_stack_1->SetBinError(20,2.554957); hsig_Hino_135_Hyy_stack_1->SetBinError(21,2.979527); hsig_Hino_135_Hyy_stack_1->SetBinError(22,3.718953); hsig_Hino_135_Hyy_stack_1->SetEntries(22); 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[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 *hsig_Hino_135_Zee_stack_2 = new TH1F("hsig_Hino_135_Zee_stack_2","",22, xAxis3); hsig_Hino_135_Zee_stack_2->SetBinContent(1,102.2161); hsig_Hino_135_Zee_stack_2->SetBinContent(2,67.011); hsig_Hino_135_Zee_stack_2->SetBinContent(3,59.72073); hsig_Hino_135_Zee_stack_2->SetBinContent(4,46.91726); hsig_Hino_135_Zee_stack_2->SetBinContent(5,38.9304); hsig_Hino_135_Zee_stack_2->SetBinContent(6,29.64933); hsig_Hino_135_Zee_stack_2->SetBinContent(7,24.31414); hsig_Hino_135_Zee_stack_2->SetBinContent(8,18.06743); hsig_Hino_135_Zee_stack_2->SetBinContent(9,16.05525); hsig_Hino_135_Zee_stack_2->SetBinContent(10,11.94417); hsig_Hino_135_Zee_stack_2->SetBinContent(11,10.25827); hsig_Hino_135_Zee_stack_2->SetBinContent(12,11.54923); hsig_Hino_135_Zee_stack_2->SetBinContent(13,12.08659); hsig_Hino_135_Zee_stack_2->SetBinContent(14,15.51038); hsig_Hino_135_Zee_stack_2->SetBinContent(15,19.3585); hsig_Hino_135_Zee_stack_2->SetBinContent(16,22.55127); hsig_Hino_135_Zee_stack_2->SetBinContent(17,31.3643); hsig_Hino_135_Zee_stack_2->SetBinContent(18,36.17428); hsig_Hino_135_Zee_stack_2->SetBinContent(19,51.69871); hsig_Hino_135_Zee_stack_2->SetBinContent(20,58.41327); hsig_Hino_135_Zee_stack_2->SetBinContent(21,70.85199); hsig_Hino_135_Zee_stack_2->SetBinContent(22,108.3842); hsig_Hino_135_Zee_stack_2->SetBinError(1,3.613992); hsig_Hino_135_Zee_stack_2->SetBinError(2,2.43112); hsig_Hino_135_Zee_stack_2->SetBinError(3,2.629566); hsig_Hino_135_Zee_stack_2->SetBinError(4,1.77809); hsig_Hino_135_Zee_stack_2->SetBinError(5,1.418679); hsig_Hino_135_Zee_stack_2->SetBinError(6,1.647685); hsig_Hino_135_Zee_stack_2->SetBinError(7,1.085132); hsig_Hino_135_Zee_stack_2->SetBinError(8,0.9146587); hsig_Hino_135_Zee_stack_2->SetBinError(9,0.7672322); hsig_Hino_135_Zee_stack_2->SetBinError(10,0.5568552); hsig_Hino_135_Zee_stack_2->SetBinError(11,0.4061045); hsig_Hino_135_Zee_stack_2->SetBinError(12,0.6279816); hsig_Hino_135_Zee_stack_2->SetBinError(13,0.559722); hsig_Hino_135_Zee_stack_2->SetBinError(14,0.7051574); hsig_Hino_135_Zee_stack_2->SetBinError(15,0.9474497); hsig_Hino_135_Zee_stack_2->SetBinError(16,1.070257); hsig_Hino_135_Zee_stack_2->SetBinError(17,1.538389); hsig_Hino_135_Zee_stack_2->SetBinError(18,1.163518); hsig_Hino_135_Zee_stack_2->SetBinError(19,2.11255); hsig_Hino_135_Zee_stack_2->SetBinError(20,2.572908); hsig_Hino_135_Zee_stack_2->SetBinError(21,2.298729); hsig_Hino_135_Zee_stack_2->SetBinError(22,3.443412); hsig_Hino_135_Zee_stack_2->SetEntries(22); 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[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 *hsig_Zee_stack_3 = new TH1F("hsig_Zee_stack_3","",22, xAxis4); hsig_Zee_stack_3->SetEntries(12); 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.55,0.7,0.72,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); }