void PlotPointingResVrho() { //=========Macro generated from canvas: c/c //========= (Thu May 19 10:20:29 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(";#rho [mm]; V_{z} - SV_{z} [mm];"); hs->SetMinimum(0); hs->SetMaximum(300); Double_t xAxis41[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_stack_9 = new TH1F("hs_stack_9","",11, xAxis41); hs_stack_9->SetMinimum(0); hs_stack_9->SetMaximum(300); hs_stack_9->SetDirectory(0); hs_stack_9->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_stack_9->SetLineColor(ci); hs_stack_9->GetXaxis()->SetTitle("#rho [mm]"); hs_stack_9->GetXaxis()->SetLabelFont(42); hs_stack_9->GetXaxis()->SetTitleOffset(1); hs_stack_9->GetXaxis()->SetTitleFont(42); hs_stack_9->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hs_stack_9->GetYaxis()->SetLabelFont(42); hs_stack_9->GetYaxis()->SetTitleFont(42); hs_stack_9->GetZaxis()->SetLabelFont(42); hs_stack_9->GetZaxis()->SetTitleOffset(1); hs_stack_9->GetZaxis()->SetTitleFont(42); hs->SetHistogram(hs_stack_9); Double_t xAxis42[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_135_2ns_stack_1 = new TH1F("hsig_Hino_135_2ns_stack_1","",11, xAxis42); hsig_Hino_135_2ns_stack_1->SetBinContent(1,46.46953); hsig_Hino_135_2ns_stack_1->SetBinContent(2,46.24436); hsig_Hino_135_2ns_stack_1->SetBinContent(3,46.5429); hsig_Hino_135_2ns_stack_1->SetBinContent(4,48.54094); hsig_Hino_135_2ns_stack_1->SetBinContent(5,53.7346); hsig_Hino_135_2ns_stack_1->SetBinContent(6,54.50989); hsig_Hino_135_2ns_stack_1->SetBinContent(7,57.32266); hsig_Hino_135_2ns_stack_1->SetBinContent(8,60.89516); hsig_Hino_135_2ns_stack_1->SetBinContent(9,59.54902); hsig_Hino_135_2ns_stack_1->SetBinContent(10,66.85278); hsig_Hino_135_2ns_stack_1->SetBinContent(11,76.14331); hsig_Hino_135_2ns_stack_1->SetBinError(1,2.676751); hsig_Hino_135_2ns_stack_1->SetBinError(2,1.687059); hsig_Hino_135_2ns_stack_1->SetBinError(3,1.61218); hsig_Hino_135_2ns_stack_1->SetBinError(4,1.624418); hsig_Hino_135_2ns_stack_1->SetBinError(5,1.609417); hsig_Hino_135_2ns_stack_1->SetBinError(6,1.68361); hsig_Hino_135_2ns_stack_1->SetBinError(7,1.390223); hsig_Hino_135_2ns_stack_1->SetBinError(8,1.394753); hsig_Hino_135_2ns_stack_1->SetBinError(9,1.58295); hsig_Hino_135_2ns_stack_1->SetBinError(10,1.382596); hsig_Hino_135_2ns_stack_1->SetBinError(11,1.206738); hsig_Hino_135_2ns_stack_1->SetEntries(11); hsig_Hino_135_2ns_stack_1->SetStats(0); ci = TColor::GetColor("#00ff00"); hsig_Hino_135_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hsig_Hino_135_2ns_stack_1->SetMarkerColor(ci); hsig_Hino_135_2ns_stack_1->SetMarkerStyle(20); hsig_Hino_135_2ns_stack_1->SetMarkerSize(2); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hsig_Hino_135_2ns_stack_1->GetXaxis()->SetTitleFont(42); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetYaxis()->SetTitleFont(42); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetLabelFont(42); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hsig_Hino_135_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Hino_135_2ns_stack_1,""); Double_t xAxis43[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_525_Zee_stack_2 = new TH1F("hsig_Hino_525_Zee_stack_2","",11, xAxis43); hsig_Hino_525_Zee_stack_2->SetBinContent(1,44.41264); hsig_Hino_525_Zee_stack_2->SetBinContent(2,50.86731); hsig_Hino_525_Zee_stack_2->SetBinContent(3,50.88758); hsig_Hino_525_Zee_stack_2->SetBinContent(4,57.74685); hsig_Hino_525_Zee_stack_2->SetBinContent(5,56.96779); hsig_Hino_525_Zee_stack_2->SetBinContent(6,59.53601); hsig_Hino_525_Zee_stack_2->SetBinContent(7,59.75049); hsig_Hino_525_Zee_stack_2->SetBinContent(8,66.30472); hsig_Hino_525_Zee_stack_2->SetBinContent(9,64.84954); hsig_Hino_525_Zee_stack_2->SetBinContent(10,75.7496); hsig_Hino_525_Zee_stack_2->SetBinContent(11,88.20746); hsig_Hino_525_Zee_stack_2->SetBinError(1,4.492713); hsig_Hino_525_Zee_stack_2->SetBinError(2,2.327473); hsig_Hino_525_Zee_stack_2->SetBinError(3,2.215595); hsig_Hino_525_Zee_stack_2->SetBinError(4,2.334943); hsig_Hino_525_Zee_stack_2->SetBinError(5,2.125336); hsig_Hino_525_Zee_stack_2->SetBinError(6,2.190141); hsig_Hino_525_Zee_stack_2->SetBinError(7,1.544171); hsig_Hino_525_Zee_stack_2->SetBinError(8,1.680357); hsig_Hino_525_Zee_stack_2->SetBinError(9,2.039882); hsig_Hino_525_Zee_stack_2->SetBinError(10,1.746504); hsig_Hino_525_Zee_stack_2->SetBinError(11,1.838267); hsig_Hino_525_Zee_stack_2->SetEntries(11); ci = TColor::GetColor("#ffcc00"); hsig_Hino_525_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hsig_Hino_525_Zee_stack_2->SetMarkerColor(ci); hsig_Hino_525_Zee_stack_2->SetMarkerStyle(20); hsig_Hino_525_Zee_stack_2->SetMarkerSize(2); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hsig_Hino_525_Zee_stack_2->GetXaxis()->SetTitleFont(42); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetYaxis()->SetTitleFont(42); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetLabelFont(42); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hsig_Hino_525_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Hino_525_Zee_stack_2,""); Double_t xAxis44[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Hino_925_Zee_stack_3 = new TH1F("hsig_Hino_925_Zee_stack_3","",11, xAxis44); hsig_Hino_925_Zee_stack_3->SetBinContent(1,56.20372); hsig_Hino_925_Zee_stack_3->SetBinContent(2,43.7906); hsig_Hino_925_Zee_stack_3->SetBinContent(3,56.72253); hsig_Hino_925_Zee_stack_3->SetBinContent(4,62.41833); hsig_Hino_925_Zee_stack_3->SetBinContent(5,62.65211); hsig_Hino_925_Zee_stack_3->SetBinContent(6,69.68539); hsig_Hino_925_Zee_stack_3->SetBinContent(7,74.0288); hsig_Hino_925_Zee_stack_3->SetBinContent(8,75.11839); hsig_Hino_925_Zee_stack_3->SetBinContent(9,88.17325); hsig_Hino_925_Zee_stack_3->SetBinContent(10,95.83253); hsig_Hino_925_Zee_stack_3->SetBinContent(11,89.50121); hsig_Hino_925_Zee_stack_3->SetBinError(1,8.389987); hsig_Hino_925_Zee_stack_3->SetBinError(2,4.154695); hsig_Hino_925_Zee_stack_3->SetBinError(3,4.410277); hsig_Hino_925_Zee_stack_3->SetBinError(4,4.992219); hsig_Hino_925_Zee_stack_3->SetBinError(5,4.70274); hsig_Hino_925_Zee_stack_3->SetBinError(6,6.219183); hsig_Hino_925_Zee_stack_3->SetBinError(7,3.693767); hsig_Hino_925_Zee_stack_3->SetBinError(8,5.099176); hsig_Hino_925_Zee_stack_3->SetBinError(9,5.786684); hsig_Hino_925_Zee_stack_3->SetBinError(10,5.501373); hsig_Hino_925_Zee_stack_3->SetBinError(11,4.361696); hsig_Hino_925_Zee_stack_3->SetEntries(11); ci = TColor::GetColor("#ff0000"); hsig_Hino_925_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hsig_Hino_925_Zee_stack_3->SetMarkerColor(ci); hsig_Hino_925_Zee_stack_3->SetMarkerStyle(20); hsig_Hino_925_Zee_stack_3->SetMarkerSize(2); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitle("#rho [mm]"); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hsig_Hino_925_Zee_stack_3->GetXaxis()->SetTitleFont(42); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetYaxis()->SetTitleFont(42); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetLabelFont(42); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hsig_Hino_925_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Hino_925_Zee_stack_3,""); Double_t xAxis45[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hsig_Zee_stack_4 = new TH1F("hsig_Zee_stack_4","",11, xAxis45); hsig_Zee_stack_4->SetBinContent(1,13.84443); hsig_Zee_stack_4->SetBinContent(2,17.00865); hsig_Zee_stack_4->SetBinContent(3,22.77289); hsig_Zee_stack_4->SetBinContent(4,28.90182); hsig_Zee_stack_4->SetBinContent(5,36.88493); hsig_Zee_stack_4->SetBinContent(6,43.75832); hsig_Zee_stack_4->SetBinContent(7,59.76039); hsig_Zee_stack_4->SetBinError(1,0.07445575); hsig_Zee_stack_4->SetBinError(2,0.1590301); hsig_Zee_stack_4->SetBinError(3,0.2112226); hsig_Zee_stack_4->SetBinError(4,0.3888604); hsig_Zee_stack_4->SetBinError(5,1.235451); hsig_Zee_stack_4->SetBinError(6,3.896333); hsig_Zee_stack_4->SetBinError(7,16.7447); hsig_Zee_stack_4->SetEntries(11); hsig_Zee_stack_4->SetMarkerStyle(20); hsig_Zee_stack_4->SetMarkerSize(2); hsig_Zee_stack_4->GetXaxis()->SetTitle("#rho [mm]"); hsig_Zee_stack_4->GetXaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hsig_Zee_stack_4->GetXaxis()->SetTitleFont(42); hsig_Zee_stack_4->GetYaxis()->SetTitle(" V_{z} - SV_{z} [mm]"); hsig_Zee_stack_4->GetYaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetYaxis()->SetTitleFont(42); hsig_Zee_stack_4->GetZaxis()->SetLabelFont(42); hsig_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hsig_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs->Add(hsig_Zee_stack_4,""); 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_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("hsig_Hino_525_Zee_stack_2","Hino_525_Zee","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("hsig_Hino_925_Zee_stack_3","Hino_925_Zee","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("hsig_Zee_stack_4","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); 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); }