void PlotPointingBiasVrho() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 10:19:46 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(-87.50001,-250,787.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(";#rho [mm]; V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis26[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_m_stack_6 = new TH1F("hs_m_stack_6","",11, xAxis26); hs_m_stack_6->SetMinimum(-200); hs_m_stack_6->SetMaximum(200); hs_m_stack_6->SetDirectory(0); hs_m_stack_6->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_6->SetLineColor(ci); hs_m_stack_6->GetXaxis()->SetTitle("#rho [mm]"); hs_m_stack_6->GetXaxis()->SetLabelFont(42); hs_m_stack_6->GetXaxis()->SetTitleOffset(1); hs_m_stack_6->GetXaxis()->SetTitleFont(42); hs_m_stack_6->GetYaxis()->SetTitle(" V_{r} - (SV_{x}^{2} + SV_{y}^{2})^{.5} [mm]"); hs_m_stack_6->GetYaxis()->SetLabelFont(42); hs_m_stack_6->GetYaxis()->SetTitleFont(42); hs_m_stack_6->GetZaxis()->SetLabelFont(42); hs_m_stack_6->GetZaxis()->SetTitleOffset(1); hs_m_stack_6->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_6); Double_t xAxis27[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_135_2ns_stack_1 = new TH1F("hmean_Hino_135_2ns_stack_1","",11, xAxis27); hmean_Hino_135_2ns_stack_1->SetBinContent(1,-14.86303); hmean_Hino_135_2ns_stack_1->SetBinContent(2,-19.67739); hmean_Hino_135_2ns_stack_1->SetBinContent(3,-25.37117); hmean_Hino_135_2ns_stack_1->SetBinContent(4,-31.70849); hmean_Hino_135_2ns_stack_1->SetBinContent(5,-38.8536); hmean_Hino_135_2ns_stack_1->SetBinContent(6,-40.20438); hmean_Hino_135_2ns_stack_1->SetBinContent(7,-49.28992); hmean_Hino_135_2ns_stack_1->SetBinContent(8,-60.08142); hmean_Hino_135_2ns_stack_1->SetBinContent(9,-74.48504); hmean_Hino_135_2ns_stack_1->SetBinContent(10,-82.71057); hmean_Hino_135_2ns_stack_1->SetBinContent(11,-75.37593); hmean_Hino_135_2ns_stack_1->SetBinError(1,0.9468866); hmean_Hino_135_2ns_stack_1->SetBinError(2,0.9155152); hmean_Hino_135_2ns_stack_1->SetBinError(3,0.9751027); hmean_Hino_135_2ns_stack_1->SetBinError(4,1.128675); hmean_Hino_135_2ns_stack_1->SetBinError(5,1.077806); hmean_Hino_135_2ns_stack_1->SetBinError(6,1.156141); hmean_Hino_135_2ns_stack_1->SetBinError(7,0.9657032); hmean_Hino_135_2ns_stack_1->SetBinError(8,1.152269); hmean_Hino_135_2ns_stack_1->SetBinError(9,1.414292); hmean_Hino_135_2ns_stack_1->SetBinError(10,1.298756); hmean_Hino_135_2ns_stack_1->SetBinError(11,1.16227); hmean_Hino_135_2ns_stack_1->SetEntries(11); hmean_Hino_135_2ns_stack_1->SetStats(0); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_2ns_stack_1->SetMarkerColor(ci); hmean_Hino_135_2ns_stack_1->SetMarkerStyle(20); hmean_Hino_135_2ns_stack_1->SetMarkerSize(2); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_2ns_stack_1,""); Double_t xAxis28[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_525_Zee_stack_2 = new TH1F("hmean_Hino_525_Zee_stack_2","",11, xAxis28); hmean_Hino_525_Zee_stack_2->SetBinContent(1,-51.03548); hmean_Hino_525_Zee_stack_2->SetBinContent(2,-38.40434); hmean_Hino_525_Zee_stack_2->SetBinContent(3,-38.96909); hmean_Hino_525_Zee_stack_2->SetBinContent(4,-44.0638); hmean_Hino_525_Zee_stack_2->SetBinContent(5,-43.72496); hmean_Hino_525_Zee_stack_2->SetBinContent(6,-44.18546); hmean_Hino_525_Zee_stack_2->SetBinContent(7,-49.15069); hmean_Hino_525_Zee_stack_2->SetBinContent(8,-54.66513); hmean_Hino_525_Zee_stack_2->SetBinContent(9,-62.46793); hmean_Hino_525_Zee_stack_2->SetBinContent(10,-62.87149); hmean_Hino_525_Zee_stack_2->SetBinContent(11,-27.60675); hmean_Hino_525_Zee_stack_2->SetBinError(1,1.954712); hmean_Hino_525_Zee_stack_2->SetBinError(2,1.384468); hmean_Hino_525_Zee_stack_2->SetBinError(3,1.203137); hmean_Hino_525_Zee_stack_2->SetBinError(4,1.326747); hmean_Hino_525_Zee_stack_2->SetBinError(5,1.414651); hmean_Hino_525_Zee_stack_2->SetBinError(6,1.317537); hmean_Hino_525_Zee_stack_2->SetBinError(7,1.272801); hmean_Hino_525_Zee_stack_2->SetBinError(8,1.562472); hmean_Hino_525_Zee_stack_2->SetBinError(9,2.099962); hmean_Hino_525_Zee_stack_2->SetBinError(10,1.746685); hmean_Hino_525_Zee_stack_2->SetBinError(11,1.664596); hmean_Hino_525_Zee_stack_2->SetEntries(11); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_525_Zee_stack_2->SetMarkerColor(ci); hmean_Hino_525_Zee_stack_2->SetMarkerStyle(20); hmean_Hino_525_Zee_stack_2->SetMarkerSize(2); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_525_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_525_Zee_stack_2,""); Double_t xAxis29[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Hino_925_Zee_stack_3 = new TH1F("hmean_Hino_925_Zee_stack_3","",11, xAxis29); hmean_Hino_925_Zee_stack_3->SetBinContent(1,-42.87358); hmean_Hino_925_Zee_stack_3->SetBinContent(2,-38.84372); hmean_Hino_925_Zee_stack_3->SetBinContent(3,-32.1694); hmean_Hino_925_Zee_stack_3->SetBinContent(4,-45.71744); hmean_Hino_925_Zee_stack_3->SetBinContent(5,-49.20057); hmean_Hino_925_Zee_stack_3->SetBinContent(6,-47.97049); hmean_Hino_925_Zee_stack_3->SetBinContent(7,-48.55671); hmean_Hino_925_Zee_stack_3->SetBinContent(8,-54.04944); hmean_Hino_925_Zee_stack_3->SetBinContent(9,-57.23908); hmean_Hino_925_Zee_stack_3->SetBinContent(10,-34.85254); hmean_Hino_925_Zee_stack_3->SetBinContent(11,-0.8782772); hmean_Hino_925_Zee_stack_3->SetBinError(1,2.661641); hmean_Hino_925_Zee_stack_3->SetBinError(2,2.067991); hmean_Hino_925_Zee_stack_3->SetBinError(3,4.784807); hmean_Hino_925_Zee_stack_3->SetBinError(4,3.094535); hmean_Hino_925_Zee_stack_3->SetBinError(5,3.8126); hmean_Hino_925_Zee_stack_3->SetBinError(6,4.127726); hmean_Hino_925_Zee_stack_3->SetBinError(7,3.654331); hmean_Hino_925_Zee_stack_3->SetBinError(8,4.783935); hmean_Hino_925_Zee_stack_3->SetBinError(9,5.039974); hmean_Hino_925_Zee_stack_3->SetBinError(10,5.702397); hmean_Hino_925_Zee_stack_3->SetBinError(11,5.40995); hmean_Hino_925_Zee_stack_3->SetEntries(11); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Hino_925_Zee_stack_3->SetMarkerColor(ci); hmean_Hino_925_Zee_stack_3->SetMarkerStyle(20); hmean_Hino_925_Zee_stack_3->SetMarkerSize(2); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_925_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_925_Zee_stack_3,""); Double_t xAxis30[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hmean_Zee_stack_4 = new TH1F("hmean_Zee_stack_4","",11, xAxis30); hmean_Zee_stack_4->SetBinContent(1,0.4175564); hmean_Zee_stack_4->SetBinContent(2,-0.4254681); hmean_Zee_stack_4->SetBinContent(3,0.2308639); hmean_Zee_stack_4->SetBinContent(4,-1.329627); hmean_Zee_stack_4->SetBinContent(5,-1.266511); hmean_Zee_stack_4->SetBinContent(6,1.247825); hmean_Zee_stack_4->SetBinContent(7,-615.7092); hmean_Zee_stack_4->SetBinError(1,0.1113238); hmean_Zee_stack_4->SetBinError(2,0.140118); hmean_Zee_stack_4->SetBinError(3,0.2204991); hmean_Zee_stack_4->SetBinError(4,0.370379); hmean_Zee_stack_4->SetBinError(5,0.9106417); hmean_Zee_stack_4->SetBinError(6,3.079567); hmean_Zee_stack_4->SetBinError(7,276.4853); hmean_Zee_stack_4->SetEntries(11); hmean_Zee_stack_4->SetMarkerStyle(20); hmean_Zee_stack_4->SetMarkerSize(2); hmean_Zee_stack_4->GetXaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetXaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetYaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetYaxis()->SetTitleFont(42); hmean_Zee_stack_4->GetZaxis()->SetLabelFont(42); hmean_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Zee_stack_4,""); hs_m->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("hmean_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("hmean_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("hmean_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("hmean_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_m->Modified(); c_m->cd(); c_m->SetSelected(c_m); }