void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu May 26 10:35:31 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(-937.5,-0.375,937.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(";z_{origin} [mm];Ratio;"); hs_m_rat->SetMinimum(0); hs_m_rat->SetMaximum(3); Double_t xAxis22[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hs_m_rat_stack_4 = new TH1F("hs_m_rat_stack_4","",20, xAxis22); 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("z_{origin} [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 xAxis23[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Hino_325_Zee_stack_1 = new TH1F("hmean_Hino_325_Zee_stack_1","",20, xAxis23); hmean_Hino_325_Zee_stack_1->SetBinContent(1,1); hmean_Hino_325_Zee_stack_1->SetBinContent(2,1); hmean_Hino_325_Zee_stack_1->SetBinContent(3,1); hmean_Hino_325_Zee_stack_1->SetBinContent(4,1); hmean_Hino_325_Zee_stack_1->SetBinContent(5,1); hmean_Hino_325_Zee_stack_1->SetBinContent(6,1); hmean_Hino_325_Zee_stack_1->SetBinContent(7,1); hmean_Hino_325_Zee_stack_1->SetBinContent(8,1); hmean_Hino_325_Zee_stack_1->SetBinContent(9,1); hmean_Hino_325_Zee_stack_1->SetBinContent(10,1); hmean_Hino_325_Zee_stack_1->SetBinContent(11,1); hmean_Hino_325_Zee_stack_1->SetBinContent(12,1); hmean_Hino_325_Zee_stack_1->SetBinContent(13,1); hmean_Hino_325_Zee_stack_1->SetBinContent(14,1); hmean_Hino_325_Zee_stack_1->SetBinContent(15,1); hmean_Hino_325_Zee_stack_1->SetBinContent(16,1); hmean_Hino_325_Zee_stack_1->SetBinContent(17,1); hmean_Hino_325_Zee_stack_1->SetBinContent(18,1); hmean_Hino_325_Zee_stack_1->SetBinContent(19,1); hmean_Hino_325_Zee_stack_1->SetBinContent(20,1); hmean_Hino_325_Zee_stack_1->SetBinError(1,0.6754811); hmean_Hino_325_Zee_stack_1->SetBinError(2,0.1719362); hmean_Hino_325_Zee_stack_1->SetBinError(3,0.09837292); hmean_Hino_325_Zee_stack_1->SetBinError(4,0.2731178); hmean_Hino_325_Zee_stack_1->SetBinError(5,0.1365787); hmean_Hino_325_Zee_stack_1->SetBinError(6,0.1491484); hmean_Hino_325_Zee_stack_1->SetBinError(7,0.1213879); hmean_Hino_325_Zee_stack_1->SetBinError(8,0.1452529); hmean_Hino_325_Zee_stack_1->SetBinError(9,0.1786272); hmean_Hino_325_Zee_stack_1->SetBinError(10,0.5688747); hmean_Hino_325_Zee_stack_1->SetBinError(11,1.216246); hmean_Hino_325_Zee_stack_1->SetBinError(12,0.2518531); hmean_Hino_325_Zee_stack_1->SetBinError(13,0.1428918); hmean_Hino_325_Zee_stack_1->SetBinError(14,0.08440654); hmean_Hino_325_Zee_stack_1->SetBinError(15,0.1910823); hmean_Hino_325_Zee_stack_1->SetBinError(16,0.1849458); hmean_Hino_325_Zee_stack_1->SetBinError(17,0.1440586); hmean_Hino_325_Zee_stack_1->SetBinError(18,0.1296128); hmean_Hino_325_Zee_stack_1->SetBinError(19,0.1078048); hmean_Hino_325_Zee_stack_1->SetBinError(20,0.2796577); hmean_Hino_325_Zee_stack_1->SetEntries(144.3683); ci = TColor::GetColor("#00ff00"); hmean_Hino_325_Zee_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_325_Zee_stack_1->SetMarkerColor(ci); hmean_Hino_325_Zee_stack_1->SetMarkerStyle(26); hmean_Hino_325_Zee_stack_1->SetMarkerSize(2); hmean_Hino_325_Zee_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_325_Zee_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_325_Zee_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_325_Zee_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_325_Zee_stack_1->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Hino_325_Zee_stack_1,""); Double_t xAxis24[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Hino_325_Hyy_stack_2 = new TH1F("hmean_Hino_325_Hyy_stack_2","",20, xAxis24); hmean_Hino_325_Hyy_stack_2->SetBinContent(1,0.1397387); hmean_Hino_325_Hyy_stack_2->SetBinContent(2,1.022587); hmean_Hino_325_Hyy_stack_2->SetBinContent(3,0.9112734); hmean_Hino_325_Hyy_stack_2->SetBinContent(4,0.7539922); hmean_Hino_325_Hyy_stack_2->SetBinContent(5,0.9600171); hmean_Hino_325_Hyy_stack_2->SetBinContent(6,0.6525125); hmean_Hino_325_Hyy_stack_2->SetBinContent(7,0.8987728); hmean_Hino_325_Hyy_stack_2->SetBinContent(8,0.8789467); hmean_Hino_325_Hyy_stack_2->SetBinContent(9,0.7677451); hmean_Hino_325_Hyy_stack_2->SetBinContent(10,1.402962); hmean_Hino_325_Hyy_stack_2->SetBinContent(11,0.3701805); hmean_Hino_325_Hyy_stack_2->SetBinContent(12,0.9264646); hmean_Hino_325_Hyy_stack_2->SetBinContent(13,0.7279191); hmean_Hino_325_Hyy_stack_2->SetBinContent(14,0.5999006); hmean_Hino_325_Hyy_stack_2->SetBinContent(15,0.6661008); hmean_Hino_325_Hyy_stack_2->SetBinContent(16,0.8488061); hmean_Hino_325_Hyy_stack_2->SetBinContent(17,0.7323969); hmean_Hino_325_Hyy_stack_2->SetBinContent(18,0.8452793); hmean_Hino_325_Hyy_stack_2->SetBinContent(19,1.023125); hmean_Hino_325_Hyy_stack_2->SetBinContent(20,1.09952); hmean_Hino_325_Hyy_stack_2->SetBinError(1,0.2025079); hmean_Hino_325_Hyy_stack_2->SetBinError(2,0.2674044); hmean_Hino_325_Hyy_stack_2->SetBinError(3,0.1202228); hmean_Hino_325_Hyy_stack_2->SetBinError(4,0.2242215); hmean_Hino_325_Hyy_stack_2->SetBinError(5,0.1302463); hmean_Hino_325_Hyy_stack_2->SetBinError(6,0.1121628); hmean_Hino_325_Hyy_stack_2->SetBinError(7,0.1198242); hmean_Hino_325_Hyy_stack_2->SetBinError(8,0.1548093); hmean_Hino_325_Hyy_stack_2->SetBinError(9,0.1185593); hmean_Hino_325_Hyy_stack_2->SetBinError(10,0.6094452); hmean_Hino_325_Hyy_stack_2->SetBinError(11,0.8874958); hmean_Hino_325_Hyy_stack_2->SetBinError(12,0.1939312); hmean_Hino_325_Hyy_stack_2->SetBinError(13,0.1190327); hmean_Hino_325_Hyy_stack_2->SetBinError(14,0.1350795); hmean_Hino_325_Hyy_stack_2->SetBinError(15,0.1461265); hmean_Hino_325_Hyy_stack_2->SetBinError(16,0.1851286); hmean_Hino_325_Hyy_stack_2->SetBinError(17,0.1554469); hmean_Hino_325_Hyy_stack_2->SetBinError(18,0.1068055); hmean_Hino_325_Hyy_stack_2->SetBinError(19,0.4173335); hmean_Hino_325_Hyy_stack_2->SetBinError(20,0.4470024); hmean_Hino_325_Hyy_stack_2->SetEntries(134.8164); 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 xAxis25[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Hino_135_Zee_stack_3 = new TH1F("hmean_Hino_135_Zee_stack_3","",20, xAxis25); hmean_Hino_135_Zee_stack_3->SetBinContent(1,1.073779); hmean_Hino_135_Zee_stack_3->SetBinContent(2,1.42046); hmean_Hino_135_Zee_stack_3->SetBinContent(3,1.090744); hmean_Hino_135_Zee_stack_3->SetBinContent(4,0.8748227); hmean_Hino_135_Zee_stack_3->SetBinContent(5,1.337347); hmean_Hino_135_Zee_stack_3->SetBinContent(6,0.9401219); hmean_Hino_135_Zee_stack_3->SetBinContent(7,1.207939); hmean_Hino_135_Zee_stack_3->SetBinContent(8,1.327255); hmean_Hino_135_Zee_stack_3->SetBinContent(9,0.7297079); hmean_Hino_135_Zee_stack_3->SetBinContent(10,2.083887); hmean_Hino_135_Zee_stack_3->SetBinContent(11,0.07314587); hmean_Hino_135_Zee_stack_3->SetBinContent(12,1.325149); hmean_Hino_135_Zee_stack_3->SetBinContent(13,0.9305598); hmean_Hino_135_Zee_stack_3->SetBinContent(14,0.7991023); hmean_Hino_135_Zee_stack_3->SetBinContent(15,1.03237); hmean_Hino_135_Zee_stack_3->SetBinContent(16,1.184895); hmean_Hino_135_Zee_stack_3->SetBinContent(17,0.7859659); hmean_Hino_135_Zee_stack_3->SetBinContent(18,1.093237); hmean_Hino_135_Zee_stack_3->SetBinContent(19,1.362063); hmean_Hino_135_Zee_stack_3->SetBinContent(20,0.7123414); hmean_Hino_135_Zee_stack_3->SetBinError(1,0.8621626); hmean_Hino_135_Zee_stack_3->SetBinError(2,3.304616); hmean_Hino_135_Zee_stack_3->SetBinError(3,0.1989317); hmean_Hino_135_Zee_stack_3->SetBinError(4,0.294734); hmean_Hino_135_Zee_stack_3->SetBinError(5,0.2087232); hmean_Hino_135_Zee_stack_3->SetBinError(6,0.1797092); hmean_Hino_135_Zee_stack_3->SetBinError(7,0.1735974); hmean_Hino_135_Zee_stack_3->SetBinError(8,0.17802); hmean_Hino_135_Zee_stack_3->SetBinError(9,0.1326499); hmean_Hino_135_Zee_stack_3->SetBinError(10,0.9253532); hmean_Hino_135_Zee_stack_3->SetBinError(11,0.5583318); hmean_Hino_135_Zee_stack_3->SetBinError(12,0.3395278); hmean_Hino_135_Zee_stack_3->SetBinError(13,0.1449396); hmean_Hino_135_Zee_stack_3->SetBinError(14,0.1429108); hmean_Hino_135_Zee_stack_3->SetBinError(15,0.1926728); hmean_Hino_135_Zee_stack_3->SetBinError(16,0.2147864); hmean_Hino_135_Zee_stack_3->SetBinError(17,0.1470014); hmean_Hino_135_Zee_stack_3->SetBinError(18,0.1343639); hmean_Hino_135_Zee_stack_3->SetBinError(19,0.6569476); hmean_Hino_135_Zee_stack_3->SetBinError(20,0.4026815); hmean_Hino_135_Zee_stack_3->SetEntries(32.69583); 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 xAxis26[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Hino_135_2ns_stack_4 = new TH1F("hmean_Hino_135_2ns_stack_4","",20, xAxis26); hmean_Hino_135_2ns_stack_4->SetBinContent(1,0.5474597); hmean_Hino_135_2ns_stack_4->SetBinContent(2,0.8843975); hmean_Hino_135_2ns_stack_4->SetBinContent(3,1.005919); hmean_Hino_135_2ns_stack_4->SetBinContent(4,1.076108); hmean_Hino_135_2ns_stack_4->SetBinContent(5,1.281565); hmean_Hino_135_2ns_stack_4->SetBinContent(6,0.9786695); hmean_Hino_135_2ns_stack_4->SetBinContent(7,1.020809); hmean_Hino_135_2ns_stack_4->SetBinContent(8,0.9728673); hmean_Hino_135_2ns_stack_4->SetBinContent(9,0.74759); hmean_Hino_135_2ns_stack_4->SetBinContent(10,1.404731); hmean_Hino_135_2ns_stack_4->SetBinContent(11,-0.05789155); hmean_Hino_135_2ns_stack_4->SetBinContent(12,0.9174427); hmean_Hino_135_2ns_stack_4->SetBinContent(13,0.8817763); hmean_Hino_135_2ns_stack_4->SetBinContent(14,0.7775463); hmean_Hino_135_2ns_stack_4->SetBinContent(15,0.871043); hmean_Hino_135_2ns_stack_4->SetBinContent(16,1.017349); hmean_Hino_135_2ns_stack_4->SetBinContent(17,0.9450414); hmean_Hino_135_2ns_stack_4->SetBinContent(18,0.9965293); hmean_Hino_135_2ns_stack_4->SetBinContent(19,1.247559); hmean_Hino_135_2ns_stack_4->SetBinContent(20,0.3623731); hmean_Hino_135_2ns_stack_4->SetBinError(1,1.570296); hmean_Hino_135_2ns_stack_4->SetBinError(2,0.855794); hmean_Hino_135_2ns_stack_4->SetBinError(3,0.1035954); hmean_Hino_135_2ns_stack_4->SetBinError(4,0.28865); hmean_Hino_135_2ns_stack_4->SetBinError(5,0.2473815); hmean_Hino_135_2ns_stack_4->SetBinError(6,0.1339018); hmean_Hino_135_2ns_stack_4->SetBinError(7,0.1126565); hmean_Hino_135_2ns_stack_4->SetBinError(8,0.1368643); hmean_Hino_135_2ns_stack_4->SetBinError(9,0.112272); hmean_Hino_135_2ns_stack_4->SetBinError(10,0.5973605); hmean_Hino_135_2ns_stack_4->SetBinError(11,0.3110445); hmean_Hino_135_2ns_stack_4->SetBinError(12,0.1830134); hmean_Hino_135_2ns_stack_4->SetBinError(13,0.1129104); hmean_Hino_135_2ns_stack_4->SetBinError(14,0.07775264); hmean_Hino_135_2ns_stack_4->SetBinError(15,0.1556435); hmean_Hino_135_2ns_stack_4->SetBinError(16,0.1895865); hmean_Hino_135_2ns_stack_4->SetBinError(17,0.1575043); hmean_Hino_135_2ns_stack_4->SetBinError(18,0.1295949); hmean_Hino_135_2ns_stack_4->SetBinError(19,0.2708142); hmean_Hino_135_2ns_stack_4->SetBinError(20,0.5592264); hmean_Hino_135_2ns_stack_4->SetEntries(72.49815); 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 xAxis27[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Zee_PVz_stack_5 = new TH1F("hmean_Zee_PVz_stack_5","",20, xAxis27); hmean_Zee_PVz_stack_5->SetBinContent(4,0.9951465); hmean_Zee_PVz_stack_5->SetBinContent(5,0.8875304); hmean_Zee_PVz_stack_5->SetBinContent(6,0.8030825); hmean_Zee_PVz_stack_5->SetBinContent(7,0.9024678); hmean_Zee_PVz_stack_5->SetBinContent(8,0.8761042); hmean_Zee_PVz_stack_5->SetBinContent(9,0.8225207); hmean_Zee_PVz_stack_5->SetBinContent(10,1.52608); hmean_Zee_PVz_stack_5->SetBinContent(11,0.6536956); hmean_Zee_PVz_stack_5->SetBinContent(12,0.8332823); hmean_Zee_PVz_stack_5->SetBinContent(13,0.7839993); hmean_Zee_PVz_stack_5->SetBinContent(14,0.7006829); hmean_Zee_PVz_stack_5->SetBinContent(15,0.7644268); hmean_Zee_PVz_stack_5->SetBinContent(16,0.9636211); hmean_Zee_PVz_stack_5->SetBinContent(17,0.8534352); hmean_Zee_PVz_stack_5->SetBinContent(18,0.6607963); hmean_Zee_PVz_stack_5->SetBinError(4,0.2131155); hmean_Zee_PVz_stack_5->SetBinError(5,0.09126813); hmean_Zee_PVz_stack_5->SetBinError(6,0.08706586); hmean_Zee_PVz_stack_5->SetBinError(7,0.07866155); hmean_Zee_PVz_stack_5->SetBinError(8,0.09040948); hmean_Zee_PVz_stack_5->SetBinError(9,0.1044523); hmean_Zee_PVz_stack_5->SetBinError(10,0.6146657); hmean_Zee_PVz_stack_5->SetBinError(11,0.5664615); hmean_Zee_PVz_stack_5->SetBinError(12,0.149251); hmean_Zee_PVz_stack_5->SetBinError(13,0.0806466); hmean_Zee_PVz_stack_5->SetBinError(14,0.04310048); hmean_Zee_PVz_stack_5->SetBinError(15,0.1051755); hmean_Zee_PVz_stack_5->SetBinError(16,0.1297713); hmean_Zee_PVz_stack_5->SetBinError(17,0.1049049); hmean_Zee_PVz_stack_5->SetBinError(18,0.09271191); hmean_Zee_PVz_stack_5->SetEntries(196.5403); ci = TColor::GetColor("#ff0000"); hmean_Zee_PVz_stack_5->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); hmean_Zee_PVz_stack_5->SetMarkerColor(ci); hmean_Zee_PVz_stack_5->SetMarkerStyle(20); hmean_Zee_PVz_stack_5->SetMarkerSize(2); hmean_Zee_PVz_stack_5->GetXaxis()->SetLabelFont(42); hmean_Zee_PVz_stack_5->GetXaxis()->SetTitleOffset(1); hmean_Zee_PVz_stack_5->GetXaxis()->SetTitleFont(42); hmean_Zee_PVz_stack_5->GetYaxis()->SetLabelFont(42); hmean_Zee_PVz_stack_5->GetYaxis()->SetTitleFont(42); hmean_Zee_PVz_stack_5->GetZaxis()->SetLabelFont(42); hmean_Zee_PVz_stack_5->GetZaxis()->SetTitleOffset(1); hmean_Zee_PVz_stack_5->GetZaxis()->SetTitleFont(42); hs_m_rat->Add(hmean_Zee_PVz_stack_5,""); Double_t xAxis28[21] = {-750, -400, -300, -140, -120, -100, -80, -60, -40, -20, 0, 20, 40, 60, 80, 100, 120, 140, 300, 400, 750}; TH1F *hmean_Zee_truZ_stack_6 = new TH1F("hmean_Zee_truZ_stack_6","",20, xAxis28); hmean_Zee_truZ_stack_6->SetBinContent(4,1.018224); hmean_Zee_truZ_stack_6->SetBinContent(5,0.8974929); hmean_Zee_truZ_stack_6->SetBinContent(6,0.7960526); hmean_Zee_truZ_stack_6->SetBinContent(7,0.9025807); hmean_Zee_truZ_stack_6->SetBinContent(8,0.8805155); hmean_Zee_truZ_stack_6->SetBinContent(9,0.8188098); hmean_Zee_truZ_stack_6->SetBinContent(10,1.534106); hmean_Zee_truZ_stack_6->SetBinContent(11,0.6866967); hmean_Zee_truZ_stack_6->SetBinContent(12,0.8264859); hmean_Zee_truZ_stack_6->SetBinContent(13,0.786769); hmean_Zee_truZ_stack_6->SetBinContent(14,0.7002115); hmean_Zee_truZ_stack_6->SetBinContent(15,0.7627407); hmean_Zee_truZ_stack_6->SetBinContent(16,0.9629061); hmean_Zee_truZ_stack_6->SetBinContent(17,0.8621807); hmean_Zee_truZ_stack_6->SetBinContent(18,0.663846); hmean_Zee_truZ_stack_6->SetBinError(4,0.2165021); hmean_Zee_truZ_stack_6->SetBinError(5,0.09212358); hmean_Zee_truZ_stack_6->SetBinError(6,0.0850497); hmean_Zee_truZ_stack_6->SetBinError(7,0.07865561); hmean_Zee_truZ_stack_6->SetBinError(8,0.09086029); hmean_Zee_truZ_stack_6->SetBinError(9,0.1039838); hmean_Zee_truZ_stack_6->SetBinError(10,0.6178843); hmean_Zee_truZ_stack_6->SetBinError(11,0.5945359); hmean_Zee_truZ_stack_6->SetBinError(12,0.1480595); hmean_Zee_truZ_stack_6->SetBinError(13,0.08093057); hmean_Zee_truZ_stack_6->SetBinError(14,0.04306661); hmean_Zee_truZ_stack_6->SetBinError(15,0.1049597); hmean_Zee_truZ_stack_6->SetBinError(16,0.129656); hmean_Zee_truZ_stack_6->SetBinError(17,0.1035689); hmean_Zee_truZ_stack_6->SetBinError(18,0.09244861); hmean_Zee_truZ_stack_6->SetEntries(190.5547); 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_325_Zee_stack_1","Hino_325_Zee","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_Zee_PVz_stack_5","Zee_PVz","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_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); }