void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu May 19 10:19:05 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,-0.375,787.5,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(";#rho [mm];Ratio;"); hs_m_rat->SetMinimum(0); hs_m_rat->SetMaximum(3); Double_t xAxis16[12] = {0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 700}; TH1F *hs_m_rat_stack_4 = new TH1F("hs_m_rat_stack_4","",11, xAxis16); hs_m_rat_stack_4->SetMinimum(0); hs_m_rat_stack_4->SetMaximum(3); hs_m_rat_stack_4->SetDirectory(0); hs_m_rat_stack_4->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_rat_stack_4->SetLineColor(ci); hs_m_rat_stack_4->GetXaxis()->SetTitle("#rho [mm]"); hs_m_rat_stack_4->GetXaxis()->SetLabelFont(42); hs_m_rat_stack_4->GetXaxis()->SetTitleOffset(1); hs_m_rat_stack_4->GetXaxis()->SetTitleFont(42); hs_m_rat_stack_4->GetYaxis()->SetTitle("Ratio"); hs_m_rat_stack_4->GetYaxis()->SetLabelFont(42); hs_m_rat_stack_4->GetYaxis()->SetTitleFont(42); hs_m_rat_stack_4->GetZaxis()->SetLabelFont(42); hs_m_rat_stack_4->GetZaxis()->SetTitleOffset(1); hs_m_rat_stack_4->GetZaxis()->SetTitleFont(42); hs_m_rat->SetHistogram(hs_m_rat_stack_4); Double_t xAxis17[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, xAxis17); hmean_Hino_135_2ns_stack_1->SetBinContent(1,1); hmean_Hino_135_2ns_stack_1->SetBinContent(2,1); hmean_Hino_135_2ns_stack_1->SetBinContent(3,1); hmean_Hino_135_2ns_stack_1->SetBinContent(4,1); hmean_Hino_135_2ns_stack_1->SetBinContent(5,1); hmean_Hino_135_2ns_stack_1->SetBinContent(6,1); hmean_Hino_135_2ns_stack_1->SetBinContent(7,1); hmean_Hino_135_2ns_stack_1->SetBinContent(8,1); hmean_Hino_135_2ns_stack_1->SetBinContent(9,1); hmean_Hino_135_2ns_stack_1->SetBinContent(10,1); hmean_Hino_135_2ns_stack_1->SetBinContent(11,1); hmean_Hino_135_2ns_stack_1->SetBinError(1,0.1584851); hmean_Hino_135_2ns_stack_1->SetBinError(2,0.05707438); hmean_Hino_135_2ns_stack_1->SetBinError(3,0.05875997); hmean_Hino_135_2ns_stack_1->SetBinError(4,0.0564771); hmean_Hino_135_2ns_stack_1->SetBinError(5,0.04330476); hmean_Hino_135_2ns_stack_1->SetBinError(6,0.05441117); hmean_Hino_135_2ns_stack_1->SetBinError(7,0.03085281); hmean_Hino_135_2ns_stack_1->SetBinError(8,0.02738643); hmean_Hino_135_2ns_stack_1->SetBinError(9,0.03000829); hmean_Hino_135_2ns_stack_1->SetBinError(10,0.0220322); hmean_Hino_135_2ns_stack_1->SetBinError(11,0.0228905); hmean_Hino_135_2ns_stack_1->SetEntries(2783.842); 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_rat->Add(hmean_Hino_135_2ns_stack_1,""); Double_t xAxis18[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, xAxis18); hmean_Hino_525_Zee_stack_2->SetBinContent(1,2.706744); hmean_Hino_525_Zee_stack_2->SetBinContent(2,1.87071); hmean_Hino_525_Zee_stack_2->SetBinContent(3,1.433626); hmean_Hino_525_Zee_stack_2->SetBinContent(4,1.431818); hmean_Hino_525_Zee_stack_2->SetBinContent(5,1.019556); hmean_Hino_525_Zee_stack_2->SetBinContent(6,1.079954); hmean_Hino_525_Zee_stack_2->SetBinContent(7,0.9631711); hmean_Hino_525_Zee_stack_2->SetBinContent(8,0.9017595); hmean_Hino_525_Zee_stack_2->SetBinContent(9,0.8408294); hmean_Hino_525_Zee_stack_2->SetBinContent(10,0.7592908); hmean_Hino_525_Zee_stack_2->SetBinContent(11,0.2538218); hmean_Hino_525_Zee_stack_2->SetBinError(1,0.3443098); hmean_Hino_525_Zee_stack_2->SetBinError(2,0.08888213); hmean_Hino_525_Zee_stack_2->SetBinError(3,0.0831674); hmean_Hino_525_Zee_stack_2->SetBinError(4,0.07587624); hmean_Hino_525_Zee_stack_2->SetBinError(5,0.04931175); hmean_Hino_525_Zee_stack_2->SetBinError(6,0.0565555); hmean_Hino_525_Zee_stack_2->SetBinError(7,0.03306963); hmean_Hino_525_Zee_stack_2->SetBinError(8,0.02989391); hmean_Hino_525_Zee_stack_2->SetBinError(9,0.03179333); hmean_Hino_525_Zee_stack_2->SetBinError(10,0.02546016); hmean_Hino_525_Zee_stack_2->SetBinError(11,0.02308934); hmean_Hino_525_Zee_stack_2->SetEntries(1180.811); 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_rat->Add(hmean_Hino_525_Zee_stack_2,""); Double_t xAxis19[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, xAxis19); hmean_Hino_925_Zee_stack_3->SetBinContent(1,2.316165); hmean_Hino_925_Zee_stack_3->SetBinContent(2,1.532118); hmean_Hino_925_Zee_stack_3->SetBinContent(3,1.211774); hmean_Hino_925_Zee_stack_3->SetBinContent(4,1.005105); hmean_Hino_925_Zee_stack_3->SetBinContent(5,1.116375); hmean_Hino_925_Zee_stack_3->SetBinContent(6,1.156501); hmean_Hino_925_Zee_stack_3->SetBinContent(7,0.991757); hmean_Hino_925_Zee_stack_3->SetBinContent(8,0.8856823); hmean_Hino_925_Zee_stack_3->SetBinContent(9,0.6281099); hmean_Hino_925_Zee_stack_3->SetBinContent(10,0.5602362); hmean_Hino_925_Zee_stack_3->SetBinContent(11,-0.2822981); hmean_Hino_925_Zee_stack_3->SetBinError(1,0.2896256); hmean_Hino_925_Zee_stack_3->SetBinError(2,0.1035801); hmean_Hino_925_Zee_stack_3->SetBinError(3,0.1219289); hmean_Hino_925_Zee_stack_3->SetBinError(4,0.1036555); hmean_Hino_925_Zee_stack_3->SetBinError(5,0.08039769); hmean_Hino_925_Zee_stack_3->SetBinError(6,0.1010486); hmean_Hino_925_Zee_stack_3->SetBinError(7,0.07382167); hmean_Hino_925_Zee_stack_3->SetBinError(8,0.07099905); hmean_Hino_925_Zee_stack_3->SetBinError(9,0.0699489); hmean_Hino_925_Zee_stack_3->SetBinError(10,0.05532791); hmean_Hino_925_Zee_stack_3->SetBinError(11,0.05512923); hmean_Hino_925_Zee_stack_3->SetEntries(780.9529); 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_rat->Add(hmean_Hino_925_Zee_stack_3,""); Double_t xAxis20[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, xAxis20); hmean_Zee_stack_4->SetBinContent(1,-0.4642348); hmean_Zee_stack_4->SetBinContent(2,0.03483139); hmean_Zee_stack_4->SetBinContent(3,0.2900042); hmean_Zee_stack_4->SetBinContent(4,0.4302689); hmean_Zee_stack_4->SetBinContent(5,0.3742376); hmean_Zee_stack_4->SetBinContent(6,0.5377351); hmean_Zee_stack_4->SetBinContent(7,0.5744869); hmean_Zee_stack_4->SetBinError(1,0.05216591); hmean_Zee_stack_4->SetBinError(2,0.003382118); hmean_Zee_stack_4->SetBinError(3,0.01277851); hmean_Zee_stack_4->SetBinError(4,0.01945364); hmean_Zee_stack_4->SetBinError(5,0.01841394); hmean_Zee_stack_4->SetBinError(6,0.03417403); hmean_Zee_stack_4->SetBinError(7,0.09500909); hmean_Zee_stack_4->SetEntries(228.7711); 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_rat->Add(hmean_Zee_stack_4,""); 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_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); }