void PlotPointingBiasVrho() { //=========Macro generated from canvas: c_m/c //========= (Thu Jun 2 10:30: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(-250,-250,2250,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(";|z_{origin}| [mm]; Pointing Resolution [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis1[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hs_m_stack_1 = new TH1F("hs_m_stack_1","",9, xAxis1); hs_m_stack_1->SetMinimum(-200); hs_m_stack_1->SetMaximum(200); hs_m_stack_1->SetDirectory(0); hs_m_stack_1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_1->SetLineColor(ci); hs_m_stack_1->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hs_m_stack_1->GetXaxis()->SetLabelFont(42); hs_m_stack_1->GetXaxis()->SetTitleOffset(1); hs_m_stack_1->GetXaxis()->SetTitleFont(42); hs_m_stack_1->GetYaxis()->SetTitle(" Pointing Resolution [mm]"); hs_m_stack_1->GetYaxis()->SetLabelFont(42); hs_m_stack_1->GetYaxis()->SetTitleFont(42); hs_m_stack_1->GetZaxis()->SetLabelFont(42); hs_m_stack_1->GetZaxis()->SetTitleOffset(1); hs_m_stack_1->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_1); Double_t xAxis2[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_Hino_2ns_stack_1 = new TH1F("hmean_Hino_2ns_stack_1","",9, xAxis2); hmean_Hino_2ns_stack_1->SetBinContent(1,-1.977157); hmean_Hino_2ns_stack_1->SetBinContent(2,-6.311791); hmean_Hino_2ns_stack_1->SetBinContent(3,-10.28937); hmean_Hino_2ns_stack_1->SetBinContent(4,-13.86084); hmean_Hino_2ns_stack_1->SetBinContent(5,-18.06525); hmean_Hino_2ns_stack_1->SetBinContent(6,-21.62057); hmean_Hino_2ns_stack_1->SetBinContent(7,-35.97624); hmean_Hino_2ns_stack_1->SetBinContent(8,-103.1658); hmean_Hino_2ns_stack_1->SetBinContent(9,-235.2743); hmean_Hino_2ns_stack_1->SetBinError(1,0.07426152); hmean_Hino_2ns_stack_1->SetBinError(2,0.081072); hmean_Hino_2ns_stack_1->SetBinError(3,0.1055387); hmean_Hino_2ns_stack_1->SetBinError(4,0.1328366); hmean_Hino_2ns_stack_1->SetBinError(5,0.1728853); hmean_Hino_2ns_stack_1->SetBinError(6,0.229059); hmean_Hino_2ns_stack_1->SetBinError(7,0.1786344); hmean_Hino_2ns_stack_1->SetBinError(8,0.595369); hmean_Hino_2ns_stack_1->SetBinError(9,5.320497); hmean_Hino_2ns_stack_1->SetEntries(9); ci = TColor::GetColor("#00ff00"); hmean_Hino_2ns_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_2ns_stack_1->SetMarkerColor(ci); hmean_Hino_2ns_stack_1->SetMarkerStyle(26); hmean_Hino_2ns_stack_1->SetMarkerSize(2); hmean_Hino_2ns_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_2ns_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_2ns_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_2ns_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_2ns_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_2ns_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_2ns_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_2ns_stack_1->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_2ns_stack_1,""); Double_t xAxis3[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_Hino_325_Hyy_stack_2 = new TH1F("hmean_Hino_325_Hyy_stack_2","",9, xAxis3); hmean_Hino_325_Hyy_stack_2->SetBinContent(1,-2.124131); hmean_Hino_325_Hyy_stack_2->SetBinContent(2,-5.784352); hmean_Hino_325_Hyy_stack_2->SetBinContent(3,-9.567532); hmean_Hino_325_Hyy_stack_2->SetBinContent(4,-12.55966); hmean_Hino_325_Hyy_stack_2->SetBinContent(5,-16.20044); hmean_Hino_325_Hyy_stack_2->SetBinContent(6,-21.64487); hmean_Hino_325_Hyy_stack_2->SetBinContent(7,-33.26856); hmean_Hino_325_Hyy_stack_2->SetBinContent(8,-100.9405); hmean_Hino_325_Hyy_stack_2->SetBinContent(9,-223.3536); hmean_Hino_325_Hyy_stack_2->SetBinError(1,0.2761791); hmean_Hino_325_Hyy_stack_2->SetBinError(2,0.3003939); hmean_Hino_325_Hyy_stack_2->SetBinError(3,0.3629078); hmean_Hino_325_Hyy_stack_2->SetBinError(4,0.528868); hmean_Hino_325_Hyy_stack_2->SetBinError(5,0.6760191); hmean_Hino_325_Hyy_stack_2->SetBinError(6,0.9139268); hmean_Hino_325_Hyy_stack_2->SetBinError(7,0.7186213); hmean_Hino_325_Hyy_stack_2->SetBinError(8,2.342274); hmean_Hino_325_Hyy_stack_2->SetBinError(9,11.88969); hmean_Hino_325_Hyy_stack_2->SetEntries(9); ci = TColor::GetColor("#ffcc00"); hmean_Hino_325_Hyy_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_325_Hyy_stack_2->SetMarkerColor(ci); hmean_Hino_325_Hyy_stack_2->SetMarkerStyle(26); hmean_Hino_325_Hyy_stack_2->SetMarkerSize(2); hmean_Hino_325_Hyy_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_325_Hyy_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_325_Hyy_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_325_Hyy_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_325_Hyy_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_325_Hyy_stack_2,""); Double_t xAxis4[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_Hino_135_Zee_stack_3 = new TH1F("hmean_Hino_135_Zee_stack_3","",9, xAxis4); hmean_Hino_135_Zee_stack_3->SetBinContent(1,-2.180306); hmean_Hino_135_Zee_stack_3->SetBinContent(2,-6.59702); hmean_Hino_135_Zee_stack_3->SetBinContent(3,-10.86758); hmean_Hino_135_Zee_stack_3->SetBinContent(4,-14.44305); hmean_Hino_135_Zee_stack_3->SetBinContent(5,-18.71932); hmean_Hino_135_Zee_stack_3->SetBinContent(6,-22.58887); hmean_Hino_135_Zee_stack_3->SetBinContent(7,-39.81425); hmean_Hino_135_Zee_stack_3->SetBinContent(8,-107.8052); hmean_Hino_135_Zee_stack_3->SetBinContent(9,-229.9846); hmean_Hino_135_Zee_stack_3->SetBinError(1,0.3050807); hmean_Hino_135_Zee_stack_3->SetBinError(2,0.3092078); hmean_Hino_135_Zee_stack_3->SetBinError(3,0.3575943); hmean_Hino_135_Zee_stack_3->SetBinError(4,0.4667318); hmean_Hino_135_Zee_stack_3->SetBinError(5,0.5558016); hmean_Hino_135_Zee_stack_3->SetBinError(6,0.7181416); hmean_Hino_135_Zee_stack_3->SetBinError(7,0.5363609); hmean_Hino_135_Zee_stack_3->SetBinError(8,1.664045); hmean_Hino_135_Zee_stack_3->SetBinError(9,9.248808); hmean_Hino_135_Zee_stack_3->SetEntries(9); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Zee_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Zee_stack_3->SetMarkerColor(ci); hmean_Hino_135_Zee_stack_3->SetMarkerStyle(26); hmean_Hino_135_Zee_stack_3->SetMarkerSize(2); hmean_Hino_135_Zee_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_Zee_stack_3,""); Double_t xAxis5[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_Hino_135_2ns_stack_4 = new TH1F("hmean_Hino_135_2ns_stack_4","",9, xAxis5); hmean_Hino_135_2ns_stack_4->SetBinContent(1,-1.805714); hmean_Hino_135_2ns_stack_4->SetBinContent(2,-6.054845); hmean_Hino_135_2ns_stack_4->SetBinContent(3,-10.72316); hmean_Hino_135_2ns_stack_4->SetBinContent(4,-14.47375); hmean_Hino_135_2ns_stack_4->SetBinContent(5,-18.51822); hmean_Hino_135_2ns_stack_4->SetBinContent(6,-22.14079); hmean_Hino_135_2ns_stack_4->SetBinContent(7,-40.1322); hmean_Hino_135_2ns_stack_4->SetBinContent(8,-110.4997); hmean_Hino_135_2ns_stack_4->SetBinContent(9,-225.9856); hmean_Hino_135_2ns_stack_4->SetBinError(1,0.2222462); hmean_Hino_135_2ns_stack_4->SetBinError(2,0.2259682); hmean_Hino_135_2ns_stack_4->SetBinError(3,0.2763465); hmean_Hino_135_2ns_stack_4->SetBinError(4,0.3591262); hmean_Hino_135_2ns_stack_4->SetBinError(5,0.4605899); hmean_Hino_135_2ns_stack_4->SetBinError(6,0.6269681); hmean_Hino_135_2ns_stack_4->SetBinError(7,0.4580859); hmean_Hino_135_2ns_stack_4->SetBinError(8,1.46368); hmean_Hino_135_2ns_stack_4->SetBinError(9,7.906796); hmean_Hino_135_2ns_stack_4->SetEntries(9); ci = TColor::GetColor("#cc00ff"); hmean_Hino_135_2ns_stack_4->SetLineColor(ci); ci = TColor::GetColor("#cc00ff"); hmean_Hino_135_2ns_stack_4->SetMarkerColor(ci); hmean_Hino_135_2ns_stack_4->SetMarkerStyle(26); hmean_Hino_135_2ns_stack_4->SetMarkerSize(2); hmean_Hino_135_2ns_stack_4->GetXaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_4->GetXaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_4->GetYaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_4->GetYaxis()->SetTitleFont(42); hmean_Hino_135_2ns_stack_4->GetZaxis()->SetLabelFont(42); hmean_Hino_135_2ns_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_2ns_stack_4->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_2ns_stack_4,""); Double_t xAxis6[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_data_skimmed_stack_5 = new TH1F("hmean_data_skimmed_stack_5","",9, xAxis6); hmean_data_skimmed_stack_5->SetBinContent(1,-2.173036); hmean_data_skimmed_stack_5->SetBinContent(2,-6.524813); hmean_data_skimmed_stack_5->SetBinContent(3,-10.69607); hmean_data_skimmed_stack_5->SetBinContent(4,-14.56425); hmean_data_skimmed_stack_5->SetBinContent(5,-18.29923); hmean_data_skimmed_stack_5->SetBinContent(6,-22.25988); hmean_data_skimmed_stack_5->SetBinContent(7,-26.93727); hmean_data_skimmed_stack_5->SetBinError(1,0.01737558); hmean_data_skimmed_stack_5->SetBinError(2,0.02022584); hmean_data_skimmed_stack_5->SetBinError(3,0.02954179); hmean_data_skimmed_stack_5->SetBinError(4,0.05273329); hmean_data_skimmed_stack_5->SetBinError(5,0.1159892); hmean_data_skimmed_stack_5->SetBinError(6,0.2716543); hmean_data_skimmed_stack_5->SetBinError(7,0.7166365); hmean_data_skimmed_stack_5->SetEntries(9); hmean_data_skimmed_stack_5->SetMarkerStyle(20); hmean_data_skimmed_stack_5->SetMarkerSize(2); hmean_data_skimmed_stack_5->GetXaxis()->SetLabelFont(42); hmean_data_skimmed_stack_5->GetXaxis()->SetTitleOffset(1); hmean_data_skimmed_stack_5->GetXaxis()->SetTitleFont(42); hmean_data_skimmed_stack_5->GetYaxis()->SetLabelFont(42); hmean_data_skimmed_stack_5->GetYaxis()->SetTitleFont(42); hmean_data_skimmed_stack_5->GetZaxis()->SetLabelFont(42); hmean_data_skimmed_stack_5->GetZaxis()->SetTitleOffset(1); hmean_data_skimmed_stack_5->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_data_skimmed_stack_5,""); Double_t xAxis7[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hmean_Zee_truZ_stack_6 = new TH1F("hmean_Zee_truZ_stack_6","",9, xAxis7); hmean_Zee_truZ_stack_6->SetBinContent(1,-2.111227); hmean_Zee_truZ_stack_6->SetBinContent(2,-6.152819); hmean_Zee_truZ_stack_6->SetBinContent(3,-10.28687); hmean_Zee_truZ_stack_6->SetBinContent(4,-13.83241); hmean_Zee_truZ_stack_6->SetBinContent(5,-17.65475); hmean_Zee_truZ_stack_6->SetBinContent(6,-20.51977); hmean_Zee_truZ_stack_6->SetBinContent(7,-28.40194); hmean_Zee_truZ_stack_6->SetBinError(1,0.05701845); hmean_Zee_truZ_stack_6->SetBinError(2,0.06400293); hmean_Zee_truZ_stack_6->SetBinError(3,0.08687796); hmean_Zee_truZ_stack_6->SetBinError(4,0.1398562); hmean_Zee_truZ_stack_6->SetBinError(5,0.2419617); hmean_Zee_truZ_stack_6->SetBinError(6,0.4726012); hmean_Zee_truZ_stack_6->SetBinError(7,1.128232); hmean_Zee_truZ_stack_6->SetEntries(9); ci = TColor::GetColor("#0000ff"); hmean_Zee_truZ_stack_6->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); hmean_Zee_truZ_stack_6->SetMarkerColor(ci); hmean_Zee_truZ_stack_6->SetMarkerStyle(20); hmean_Zee_truZ_stack_6->SetMarkerSize(2); hmean_Zee_truZ_stack_6->GetXaxis()->SetLabelFont(42); hmean_Zee_truZ_stack_6->GetXaxis()->SetTitleOffset(1); hmean_Zee_truZ_stack_6->GetXaxis()->SetTitleFont(42); hmean_Zee_truZ_stack_6->GetYaxis()->SetLabelFont(42); hmean_Zee_truZ_stack_6->GetYaxis()->SetTitleFont(42); hmean_Zee_truZ_stack_6->GetZaxis()->SetLabelFont(42); hmean_Zee_truZ_stack_6->GetZaxis()->SetTitleOffset(1); hmean_Zee_truZ_stack_6->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Zee_truZ_stack_6,""); 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_2ns_stack_1","Hino_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(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_325_Hyy_stack_2","Hino_325_Hyy","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(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_Hino_135_Zee_stack_3","Hino_135_Zee","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("hmean_Hino_135_2ns_stack_4","Hino_135_2ns","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#cc00ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#cc00ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(26); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("hmean_data_skimmed_stack_5","data_skimmed","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); entry=leg->AddEntry("hmean_Zee_truZ_stack_6","Zee_truZ","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(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); }