void PlotPointingBiasVrhoRat() { //=========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,-0.375,2250,3.375); c_m->SetFillColor(0); c_m->SetBorderMode(0); c_m->SetBorderSize(2); c_m->SetFrameBorderMode(0); c_m->SetFrameBorderMode(0); THStack *hs_m_rat = new THStack(); hs_m_rat->SetName("hs_m_rat"); hs_m_rat->SetTitle(";|z_{origin}| [mm];Ratio;"); hs_m_rat->SetMinimum(0); hs_m_rat->SetMaximum(3); Double_t xAxis15[10] = {0, 20, 40, 60, 80, 100, 120, 300, 500, 2000}; TH1F *hs_m_rat_stack_3 = new TH1F("hs_m_rat_stack_3","",9, xAxis15); hs_m_rat_stack_3->SetMinimum(0); hs_m_rat_stack_3->SetMaximum(3); hs_m_rat_stack_3->SetDirectory(0); hs_m_rat_stack_3->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_rat_stack_3->SetLineColor(ci); hs_m_rat_stack_3->GetXaxis()->SetTitle("|z_{origin}| [mm]"); hs_m_rat_stack_3->GetXaxis()->SetLabelFont(42); hs_m_rat_stack_3->GetXaxis()->SetTitleOffset(1); hs_m_rat_stack_3->GetXaxis()->SetTitleFont(42); hs_m_rat_stack_3->GetYaxis()->SetTitle("Ratio"); hs_m_rat_stack_3->GetYaxis()->SetLabelFont(42); hs_m_rat_stack_3->GetYaxis()->SetTitleFont(42); hs_m_rat_stack_3->GetZaxis()->SetLabelFont(42); hs_m_rat_stack_3->GetZaxis()->SetTitleOffset(1); hs_m_rat_stack_3->GetZaxis()->SetTitleFont(42); hs_m_rat->SetHistogram(hs_m_rat_stack_3); Double_t xAxis16[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, xAxis16); hmean_Hino_2ns_stack_1->SetBinContent(1,1); hmean_Hino_2ns_stack_1->SetBinContent(2,1); hmean_Hino_2ns_stack_1->SetBinContent(3,1); hmean_Hino_2ns_stack_1->SetBinContent(4,1); hmean_Hino_2ns_stack_1->SetBinContent(5,1); hmean_Hino_2ns_stack_1->SetBinContent(6,1); hmean_Hino_2ns_stack_1->SetBinContent(7,1); hmean_Hino_2ns_stack_1->SetBinContent(8,1); hmean_Hino_2ns_stack_1->SetBinContent(9,1); hmean_Hino_2ns_stack_1->SetBinError(1,0.05311751); hmean_Hino_2ns_stack_1->SetBinError(2,0.01816491); hmean_Hino_2ns_stack_1->SetBinError(3,0.01450567); hmean_Hino_2ns_stack_1->SetBinError(4,0.01355324); hmean_Hino_2ns_stack_1->SetBinError(5,0.01353409); hmean_Hino_2ns_stack_1->SetBinError(6,0.01498288); hmean_Hino_2ns_stack_1->SetBinError(7,0.007022056); hmean_Hino_2ns_stack_1->SetBinError(8,0.008161411); hmean_Hino_2ns_stack_1->SetBinError(9,0.03198105); hmean_Hino_2ns_stack_1->SetEntries(15907.61); 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_rat->Add(hmean_Hino_2ns_stack_1,""); Double_t xAxis17[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, xAxis17); hmean_Hino_325_Hyy_stack_2->SetBinContent(1,1.074336); hmean_Hino_325_Hyy_stack_2->SetBinContent(2,0.9164359); hmean_Hino_325_Hyy_stack_2->SetBinContent(3,0.9298459); hmean_Hino_325_Hyy_stack_2->SetBinContent(4,0.9061258); hmean_Hino_325_Hyy_stack_2->SetBinContent(5,0.896774); hmean_Hino_325_Hyy_stack_2->SetBinContent(6,1.001124); hmean_Hino_325_Hyy_stack_2->SetBinContent(7,0.9247371); hmean_Hino_325_Hyy_stack_2->SetBinContent(8,0.9784294); hmean_Hino_325_Hyy_stack_2->SetBinContent(9,0.9493328); hmean_Hino_325_Hyy_stack_2->SetBinError(1,0.1453966); hmean_Hino_325_Hyy_stack_2->SetBinError(2,0.04902659); hmean_Hino_325_Hyy_stack_2->SetBinError(3,0.03653693); hmean_Hino_325_Hyy_stack_2->SetBinError(4,0.03913127); hmean_Hino_325_Hyy_stack_2->SetBinError(5,0.03839248); hmean_Hino_325_Hyy_stack_2->SetBinError(6,0.0435815); hmean_Hino_325_Hyy_stack_2->SetBinError(7,0.02049584); hmean_Hino_325_Hyy_stack_2->SetBinError(8,0.02339558); hmean_Hino_325_Hyy_stack_2->SetBinError(9,0.05490643); hmean_Hino_325_Hyy_stack_2->SetEntries(2178.776); 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_rat->Add(hmean_Hino_325_Hyy_stack_2,""); Double_t xAxis18[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, xAxis18); hmean_Hino_135_Zee_stack_3->SetBinContent(1,1.102748); hmean_Hino_135_Zee_stack_3->SetBinContent(2,1.04519); hmean_Hino_135_Zee_stack_3->SetBinContent(3,1.056195); hmean_Hino_135_Zee_stack_3->SetBinContent(4,1.042004); hmean_Hino_135_Zee_stack_3->SetBinContent(5,1.036206); hmean_Hino_135_Zee_stack_3->SetBinContent(6,1.044786); hmean_Hino_135_Zee_stack_3->SetBinContent(7,1.106682); hmean_Hino_135_Zee_stack_3->SetBinContent(8,1.04497); hmean_Hino_135_Zee_stack_3->SetBinContent(9,0.9775171); hmean_Hino_135_Zee_stack_3->SetBinError(1,0.159765); hmean_Hino_135_Zee_stack_3->SetBinError(2,0.05079511); hmean_Hino_135_Zee_stack_3->SetBinError(3,0.03640311); hmean_Hino_135_Zee_stack_3->SetBinError(4,0.03512226); hmean_Hino_135_Zee_stack_3->SetBinError(5,0.032325); hmean_Hino_135_Zee_stack_3->SetBinError(6,0.03501146); hmean_Hino_135_Zee_stack_3->SetBinError(7,0.0158892); hmean_Hino_135_Zee_stack_3->SetBinError(8,0.01722027); hmean_Hino_135_Zee_stack_3->SetBinError(9,0.0450998); hmean_Hino_135_Zee_stack_3->SetEntries(2517.678); 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_rat->Add(hmean_Hino_135_Zee_stack_3,""); Double_t xAxis19[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, xAxis19); hmean_Hino_135_2ns_stack_4->SetBinContent(1,0.9132881); hmean_Hino_135_2ns_stack_4->SetBinContent(2,0.9592912); hmean_Hino_135_2ns_stack_4->SetBinContent(3,1.042159); hmean_Hino_135_2ns_stack_4->SetBinContent(4,1.044219); hmean_Hino_135_2ns_stack_4->SetBinContent(5,1.025074); hmean_Hino_135_2ns_stack_4->SetBinContent(6,1.024061); hmean_Hino_135_2ns_stack_4->SetBinContent(7,1.11552); hmean_Hino_135_2ns_stack_4->SetBinContent(8,1.071088); hmean_Hino_135_2ns_stack_4->SetBinContent(9,0.9605197); hmean_Hino_135_2ns_stack_4->SetBinError(1,0.1175245); hmean_Hino_135_2ns_stack_4->SetBinError(2,0.03786201); hmean_Hino_135_2ns_stack_4->SetBinError(3,0.02890655); hmean_Hino_135_2ns_stack_4->SetBinError(4,0.0277749); hmean_Hino_135_2ns_stack_4->SetBinError(5,0.02731809); hmean_Hino_135_2ns_stack_4->SetBinError(6,0.0309618); hmean_Hino_135_2ns_stack_4->SetBinError(7,0.01388558); hmean_Hino_135_2ns_stack_4->SetBinError(8,0.01547569); hmean_Hino_135_2ns_stack_4->SetBinError(9,0.04001528); hmean_Hino_135_2ns_stack_4->SetEntries(4070.612); 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_rat->Add(hmean_Hino_135_2ns_stack_4,""); Double_t xAxis20[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, xAxis20); hmean_data_skimmed_stack_5->SetBinContent(1,1.099071); hmean_data_skimmed_stack_5->SetBinContent(2,1.03375); hmean_data_skimmed_stack_5->SetBinContent(3,1.039526); hmean_data_skimmed_stack_5->SetBinContent(4,1.050748); hmean_data_skimmed_stack_5->SetBinContent(5,1.012952); hmean_data_skimmed_stack_5->SetBinContent(6,1.02957); hmean_data_skimmed_stack_5->SetBinContent(7,0.7487519); hmean_data_skimmed_stack_5->SetBinError(1,0.04220593); hmean_data_skimmed_stack_5->SetBinError(2,0.01365924); hmean_data_skimmed_stack_5->SetBinError(3,0.01104226); hmean_data_skimmed_stack_5->SetBinError(4,0.01076464); hmean_data_skimmed_stack_5->SetBinError(5,0.01162744); hmean_data_skimmed_stack_5->SetBinError(6,0.01663878); hmean_data_skimmed_stack_5->SetBinError(7,0.02026369); hmean_data_skimmed_stack_5->SetEntries(16246.72); 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_rat->Add(hmean_data_skimmed_stack_5,""); Double_t xAxis21[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, xAxis21); hmean_Zee_truZ_stack_6->SetBinContent(1,1.06781); hmean_Zee_truZ_stack_6->SetBinContent(2,0.9748135); hmean_Zee_truZ_stack_6->SetBinContent(3,0.9997564); hmean_Zee_truZ_stack_6->SetBinContent(4,0.9979489); hmean_Zee_truZ_stack_6->SetBinContent(5,0.977277); hmean_Zee_truZ_stack_6->SetBinContent(6,0.9490855); hmean_Zee_truZ_stack_6->SetBinContent(7,0.7894639); hmean_Zee_truZ_stack_6->SetBinError(1,0.04939848); hmean_Zee_truZ_stack_6->SetBinError(2,0.01611211); hmean_Zee_truZ_stack_6->SetBinError(3,0.01328337); hmean_Zee_truZ_stack_6->SetBinError(4,0.01390242); hmean_Zee_truZ_stack_6->SetBinError(5,0.01633597); hmean_Zee_truZ_stack_6->SetBinError(6,0.02406065); hmean_Zee_truZ_stack_6->SetBinError(7,0.03160453); hmean_Zee_truZ_stack_6->SetEntries(9288.591); 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_rat->Add(hmean_Zee_truZ_stack_6,""); hs_m_rat->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); }