void PlotPointingResVrho() { //=========Macro generated from canvas: c/c //========= (Thu May 19 10:19:04 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]; #rho - ||SV|| [mm];"); hs->SetMinimum(0); hs->SetMaximum(300); Double_t xAxis1[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_stack_1 = new TH1F("hs_stack_1","",11, 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("#rho [mm]"); hs_stack_1->GetXaxis()->SetLabelFont(42); hs_stack_1->GetXaxis()->SetTitleOffset(1); hs_stack_1->GetXaxis()->SetTitleFont(42); hs_stack_1->GetYaxis()->SetTitle(" #rho - ||SV|| [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[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, xAxis2); hsig_Hino_135_2ns_stack_1->SetBinContent(1,26.59832); hsig_Hino_135_2ns_stack_1->SetBinContent(2,34.48921); hsig_Hino_135_2ns_stack_1->SetBinContent(3,39.89388); hsig_Hino_135_2ns_stack_1->SetBinContent(4,49.88773); hsig_Hino_135_2ns_stack_1->SetBinContent(5,50.49735); hsig_Hino_135_2ns_stack_1->SetBinContent(6,59.41783); hsig_Hino_135_2ns_stack_1->SetBinContent(7,61.13166); hsig_Hino_135_2ns_stack_1->SetBinContent(8,70.35361); hsig_Hino_135_2ns_stack_1->SetBinContent(9,82.49635); hsig_Hino_135_2ns_stack_1->SetBinContent(10,94.86136); hsig_Hino_135_2ns_stack_1->SetBinContent(11,114.5246); hsig_Hino_135_2ns_stack_1->SetBinError(1,3.172032); hsig_Hino_135_2ns_stack_1->SetBinError(2,1.30455); hsig_Hino_135_2ns_stack_1->SetBinError(3,1.473752); hsig_Hino_135_2ns_stack_1->SetBinError(4,1.596998); hsig_Hino_135_2ns_stack_1->SetBinError(5,1.657124); hsig_Hino_135_2ns_stack_1->SetBinError(6,2.395556); hsig_Hino_135_2ns_stack_1->SetBinError(7,1.624941); hsig_Hino_135_2ns_stack_1->SetBinError(8,1.850531); hsig_Hino_135_2ns_stack_1->SetBinError(9,2.405557); hsig_Hino_135_2ns_stack_1->SetBinError(10,1.944746); hsig_Hino_135_2ns_stack_1->SetBinError(11,2.090817); hsig_Hino_135_2ns_stack_1->SetEntries(11); 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(" #rho - ||SV|| [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 xAxis3[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, xAxis3); hsig_Hino_525_Zee_stack_2->SetBinContent(1,44.99046); hsig_Hino_525_Zee_stack_2->SetBinContent(2,32.05901); hsig_Hino_525_Zee_stack_2->SetBinContent(3,51.8833); hsig_Hino_525_Zee_stack_2->SetBinContent(4,56.29774); hsig_Hino_525_Zee_stack_2->SetBinContent(5,58.13543); hsig_Hino_525_Zee_stack_2->SetBinContent(6,62.58108); hsig_Hino_525_Zee_stack_2->SetBinContent(7,73.01029); hsig_Hino_525_Zee_stack_2->SetBinContent(8,83.62848); hsig_Hino_525_Zee_stack_2->SetBinContent(9,96.87146); hsig_Hino_525_Zee_stack_2->SetBinContent(10,122.3301); hsig_Hino_525_Zee_stack_2->SetBinContent(11,141.4281); hsig_Hino_525_Zee_stack_2->SetBinError(1,5.773172); hsig_Hino_525_Zee_stack_2->SetBinError(2,0.9374013); hsig_Hino_525_Zee_stack_2->SetBinError(3,2.426536); hsig_Hino_525_Zee_stack_2->SetBinError(4,2.072429); hsig_Hino_525_Zee_stack_2->SetBinError(5,2.080099); hsig_Hino_525_Zee_stack_2->SetBinError(6,2.107999); hsig_Hino_525_Zee_stack_2->SetBinError(7,1.733228); hsig_Hino_525_Zee_stack_2->SetBinError(8,2.30914); hsig_Hino_525_Zee_stack_2->SetBinError(9,2.843486); hsig_Hino_525_Zee_stack_2->SetBinError(10,2.90154); hsig_Hino_525_Zee_stack_2->SetBinError(11,2.707202); 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(" #rho - ||SV|| [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 xAxis4[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, xAxis4); hsig_Hino_925_Zee_stack_3->SetBinContent(1,21.81512); hsig_Hino_925_Zee_stack_3->SetBinContent(2,32.87706); hsig_Hino_925_Zee_stack_3->SetBinContent(3,48.70949); hsig_Hino_925_Zee_stack_3->SetBinContent(4,52.71085); hsig_Hino_925_Zee_stack_3->SetBinContent(5,58.44176); hsig_Hino_925_Zee_stack_3->SetBinContent(6,66.5364); hsig_Hino_925_Zee_stack_3->SetBinContent(7,91.76773); hsig_Hino_925_Zee_stack_3->SetBinContent(8,98.58308); hsig_Hino_925_Zee_stack_3->SetBinContent(9,115.1477); hsig_Hino_925_Zee_stack_3->SetBinContent(10,114.42); hsig_Hino_925_Zee_stack_3->SetBinContent(11,151.2823); hsig_Hino_925_Zee_stack_3->SetBinError(1,3.199637); hsig_Hino_925_Zee_stack_3->SetBinError(2,2.938178); hsig_Hino_925_Zee_stack_3->SetBinError(3,4.516815); hsig_Hino_925_Zee_stack_3->SetBinError(4,3.413452); hsig_Hino_925_Zee_stack_3->SetBinError(5,2.402406); hsig_Hino_925_Zee_stack_3->SetBinError(6,3.146823); hsig_Hino_925_Zee_stack_3->SetBinError(7,4.863445); hsig_Hino_925_Zee_stack_3->SetBinError(8,6.509707); hsig_Hino_925_Zee_stack_3->SetBinError(9,7.264354); hsig_Hino_925_Zee_stack_3->SetBinError(10,6.098485); hsig_Hino_925_Zee_stack_3->SetBinError(11,5.137978); 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(" #rho - ||SV|| [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 xAxis5[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, xAxis5); hsig_Zee_stack_4->SetBinContent(1,16.24744); hsig_Zee_stack_4->SetBinContent(2,14.69443); hsig_Zee_stack_4->SetBinContent(3,14.43379); hsig_Zee_stack_4->SetBinContent(4,18.10031); hsig_Zee_stack_4->SetBinContent(5,23.16712); hsig_Zee_stack_4->SetBinContent(6,20.29311); hsig_Zee_stack_4->SetBinContent(7,28.19043); hsig_Zee_stack_4->SetBinError(1,0.1189814); hsig_Zee_stack_4->SetBinError(2,0.1042718); hsig_Zee_stack_4->SetBinError(3,0.1409734); hsig_Zee_stack_4->SetBinError(4,0.4579954); hsig_Zee_stack_4->SetBinError(5,0.7898656); hsig_Zee_stack_4->SetBinError(6,1.324523); hsig_Zee_stack_4->SetBinError(7,5.069787); 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(" #rho - ||SV|| [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); }