void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu Jun 2 10:10:59 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.02831417); hmean_Hino_2ns_stack_1->SetBinError(2,0.008903036); hmean_Hino_2ns_stack_1->SetBinError(3,0.00559304); hmean_Hino_2ns_stack_1->SetBinError(4,0.005526508); hmean_Hino_2ns_stack_1->SetBinError(5,0.004640445); hmean_Hino_2ns_stack_1->SetBinError(6,0.004704567); hmean_Hino_2ns_stack_1->SetBinError(7,0.00181292); hmean_Hino_2ns_stack_1->SetBinError(8,0.001622756); hmean_Hino_2ns_stack_1->SetBinError(9,0.006217125); hmean_Hino_2ns_stack_1->SetEntries(78562.97); 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.580467); hmean_Hino_325_Hyy_stack_2->SetBinContent(2,0.900878); hmean_Hino_325_Hyy_stack_2->SetBinContent(3,0.8522664); hmean_Hino_325_Hyy_stack_2->SetBinContent(4,0.8880501); hmean_Hino_325_Hyy_stack_2->SetBinContent(5,0.8129025); hmean_Hino_325_Hyy_stack_2->SetBinContent(6,0.9238164); hmean_Hino_325_Hyy_stack_2->SetBinContent(7,0.9174575); hmean_Hino_325_Hyy_stack_2->SetBinContent(8,0.9334925); hmean_Hino_325_Hyy_stack_2->SetBinContent(9,0.9940242); hmean_Hino_325_Hyy_stack_2->SetBinError(1,0.09999007); hmean_Hino_325_Hyy_stack_2->SetBinError(2,0.02413006); hmean_Hino_325_Hyy_stack_2->SetBinError(3,0.01649106); hmean_Hino_325_Hyy_stack_2->SetBinError(4,0.01726529); hmean_Hino_325_Hyy_stack_2->SetBinError(5,0.01751057); hmean_Hino_325_Hyy_stack_2->SetBinError(6,0.01695824); hmean_Hino_325_Hyy_stack_2->SetBinError(7,0.006681718); hmean_Hino_325_Hyy_stack_2->SetBinError(8,0.007381527); hmean_Hino_325_Hyy_stack_2->SetBinError(9,0.005198097); hmean_Hino_325_Hyy_stack_2->SetEntries(6528.613); 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.016082); hmean_Hino_135_Zee_stack_3->SetBinContent(2,0.9618111); hmean_Hino_135_Zee_stack_3->SetBinContent(3,0.9549751); hmean_Hino_135_Zee_stack_3->SetBinContent(4,1.003701); hmean_Hino_135_Zee_stack_3->SetBinContent(5,0.8953522); hmean_Hino_135_Zee_stack_3->SetBinContent(6,0.8921995); hmean_Hino_135_Zee_stack_3->SetBinContent(7,0.9934956); hmean_Hino_135_Zee_stack_3->SetBinContent(8,1.005808); hmean_Hino_135_Zee_stack_3->SetBinContent(9,0.9522744); hmean_Hino_135_Zee_stack_3->SetBinError(1,0.06638844); hmean_Hino_135_Zee_stack_3->SetBinError(2,0.01957871); hmean_Hino_135_Zee_stack_3->SetBinError(3,0.01105128); hmean_Hino_135_Zee_stack_3->SetBinError(4,0.01319983); hmean_Hino_135_Zee_stack_3->SetBinError(5,0.009932301); hmean_Hino_135_Zee_stack_3->SetBinError(6,0.01037294); hmean_Hino_135_Zee_stack_3->SetBinError(7,0.003931507); hmean_Hino_135_Zee_stack_3->SetBinError(8,0.003666215); hmean_Hino_135_Zee_stack_3->SetBinError(9,0.01142127); hmean_Hino_135_Zee_stack_3->SetEntries(13803.73); 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.7380499); hmean_Hino_135_2ns_stack_4->SetBinContent(2,1.042145); hmean_Hino_135_2ns_stack_4->SetBinContent(3,1.084664); hmean_Hino_135_2ns_stack_4->SetBinContent(4,1.032297); hmean_Hino_135_2ns_stack_4->SetBinContent(5,0.9853631); hmean_Hino_135_2ns_stack_4->SetBinContent(6,0.9437826); hmean_Hino_135_2ns_stack_4->SetBinContent(7,1.019308); hmean_Hino_135_2ns_stack_4->SetBinContent(8,1.020371); hmean_Hino_135_2ns_stack_4->SetBinContent(9,0.9852311); hmean_Hino_135_2ns_stack_4->SetBinError(1,0.05554578); hmean_Hino_135_2ns_stack_4->SetBinError(2,0.0189231); hmean_Hino_135_2ns_stack_4->SetBinError(3,0.01151656); hmean_Hino_135_2ns_stack_4->SetBinError(4,0.01106445); hmean_Hino_135_2ns_stack_4->SetBinError(5,0.009118929); hmean_Hino_135_2ns_stack_4->SetBinError(6,0.009298111); hmean_Hino_135_2ns_stack_4->SetBinError(7,0.003467621); hmean_Hino_135_2ns_stack_4->SetBinError(8,0.003069026); hmean_Hino_135_2ns_stack_4->SetBinError(9,0.01384765); hmean_Hino_135_2ns_stack_4->SetEntries(19195.92); 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.377952); hmean_data_skimmed_stack_5->SetBinContent(2,1.066101); hmean_data_skimmed_stack_5->SetBinContent(3,0.9235998); hmean_data_skimmed_stack_5->SetBinContent(4,1.037534); hmean_data_skimmed_stack_5->SetBinContent(5,0.975896); hmean_data_skimmed_stack_5->SetBinContent(6,0.954991); hmean_data_skimmed_stack_5->SetBinContent(7,0.6201572); hmean_data_skimmed_stack_5->SetBinError(1,0.02776393); hmean_data_skimmed_stack_5->SetBinError(2,0.006791041); hmean_data_skimmed_stack_5->SetBinError(3,0.003744739); hmean_data_skimmed_stack_5->SetBinError(4,0.004206213); hmean_data_skimmed_stack_5->SetBinError(5,0.003667978); hmean_data_skimmed_stack_5->SetBinError(6,0.004519702); hmean_data_skimmed_stack_5->SetBinError(7,0.005817985); hmean_data_skimmed_stack_5->SetEntries(52803.51); 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.42187); hmean_Zee_truZ_stack_6->SetBinContent(2,1.0021); hmean_Zee_truZ_stack_6->SetBinContent(3,0.8793846); hmean_Zee_truZ_stack_6->SetBinContent(4,1.028585); hmean_Zee_truZ_stack_6->SetBinContent(5,0.894292); hmean_Zee_truZ_stack_6->SetBinContent(6,0.9183736); hmean_Zee_truZ_stack_6->SetBinContent(7,0.6569274); hmean_Zee_truZ_stack_6->SetBinError(1,0.03038201); hmean_Zee_truZ_stack_6->SetBinError(2,0.007081401); hmean_Zee_truZ_stack_6->SetBinError(3,0.004222447); hmean_Zee_truZ_stack_6->SetBinError(4,0.005067307); hmean_Zee_truZ_stack_6->SetBinError(5,0.005133615); hmean_Zee_truZ_stack_6->SetBinError(6,0.007688272); hmean_Zee_truZ_stack_6->SetBinError(7,0.008480321); hmean_Zee_truZ_stack_6->SetEntries(39401.16); 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); }