void PlotPointingBias() { //=========Macro generated from canvas: c_m/c //========= (Wed May 25 17:55:06 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,-250,937.5,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 Bias [mm];"); hs_m->SetMinimum(-200); hs_m->SetMaximum(200); Double_t xAxis8[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hs_m_stack_2 = new TH1F("hs_m_stack_2","",22, xAxis8); hs_m_stack_2->SetMinimum(-200); hs_m_stack_2->SetMaximum(200); hs_m_stack_2->SetDirectory(0); hs_m_stack_2->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); hs_m_stack_2->SetLineColor(ci); hs_m_stack_2->GetXaxis()->SetTitle("z_{origin} [mm]"); hs_m_stack_2->GetXaxis()->SetLabelFont(42); hs_m_stack_2->GetXaxis()->SetTitleOffset(1); hs_m_stack_2->GetXaxis()->SetTitleFont(42); hs_m_stack_2->GetYaxis()->SetTitle(" Pointing Bias [mm]"); hs_m_stack_2->GetYaxis()->SetLabelFont(42); hs_m_stack_2->GetYaxis()->SetTitleFont(42); hs_m_stack_2->GetZaxis()->SetLabelFont(42); hs_m_stack_2->GetZaxis()->SetTitleOffset(1); hs_m_stack_2->GetZaxis()->SetTitleFont(42); hs_m->SetHistogram(hs_m_stack_2); Double_t xAxis9[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_135_Hyy_stack_1 = new TH1F("hmean_Hino_135_Hyy_stack_1","",22, xAxis9); hmean_Hino_135_Hyy_stack_1->SetBinContent(1,150.1784); hmean_Hino_135_Hyy_stack_1->SetBinContent(2,93.07182); hmean_Hino_135_Hyy_stack_1->SetBinContent(3,62.4374); hmean_Hino_135_Hyy_stack_1->SetBinContent(4,50.3843); hmean_Hino_135_Hyy_stack_1->SetBinContent(5,35.6186); hmean_Hino_135_Hyy_stack_1->SetBinContent(6,28.6065); hmean_Hino_135_Hyy_stack_1->SetBinContent(7,23.32105); hmean_Hino_135_Hyy_stack_1->SetBinContent(8,18.15478); hmean_Hino_135_Hyy_stack_1->SetBinContent(9,13.58794); hmean_Hino_135_Hyy_stack_1->SetBinContent(10,8.526849); hmean_Hino_135_Hyy_stack_1->SetBinContent(11,3.364377); hmean_Hino_135_Hyy_stack_1->SetBinContent(12,-1.565251); hmean_Hino_135_Hyy_stack_1->SetBinContent(13,-5.615407); hmean_Hino_135_Hyy_stack_1->SetBinContent(14,-11.97257); hmean_Hino_135_Hyy_stack_1->SetBinContent(15,-15.741); hmean_Hino_135_Hyy_stack_1->SetBinContent(16,-20.75795); hmean_Hino_135_Hyy_stack_1->SetBinContent(17,-25.3113); hmean_Hino_135_Hyy_stack_1->SetBinContent(18,-33.24936); hmean_Hino_135_Hyy_stack_1->SetBinContent(19,-47.47523); hmean_Hino_135_Hyy_stack_1->SetBinContent(20,-63.02932); hmean_Hino_135_Hyy_stack_1->SetBinContent(21,-85.37727); hmean_Hino_135_Hyy_stack_1->SetBinContent(22,-134.5975); hmean_Hino_135_Hyy_stack_1->SetBinError(1,3.031563); hmean_Hino_135_Hyy_stack_1->SetBinError(2,2.079509); hmean_Hino_135_Hyy_stack_1->SetBinError(3,2.03049); hmean_Hino_135_Hyy_stack_1->SetBinError(4,1.644311); hmean_Hino_135_Hyy_stack_1->SetBinError(5,1.04197); hmean_Hino_135_Hyy_stack_1->SetBinError(6,1.083976); hmean_Hino_135_Hyy_stack_1->SetBinError(7,0.7904212); hmean_Hino_135_Hyy_stack_1->SetBinError(8,0.6459168); hmean_Hino_135_Hyy_stack_1->SetBinError(9,0.4430568); hmean_Hino_135_Hyy_stack_1->SetBinError(10,0.3414477); hmean_Hino_135_Hyy_stack_1->SetBinError(11,0.2750914); hmean_Hino_135_Hyy_stack_1->SetBinError(12,0.3098179); hmean_Hino_135_Hyy_stack_1->SetBinError(13,0.3630535); hmean_Hino_135_Hyy_stack_1->SetBinError(14,0.4061166); hmean_Hino_135_Hyy_stack_1->SetBinError(15,0.6114599); hmean_Hino_135_Hyy_stack_1->SetBinError(16,0.8679252); hmean_Hino_135_Hyy_stack_1->SetBinError(17,0.9865777); hmean_Hino_135_Hyy_stack_1->SetBinError(18,1.161755); hmean_Hino_135_Hyy_stack_1->SetBinError(19,1.899794); hmean_Hino_135_Hyy_stack_1->SetBinError(20,2.034382); hmean_Hino_135_Hyy_stack_1->SetBinError(21,2.146351); hmean_Hino_135_Hyy_stack_1->SetBinError(22,2.682017); hmean_Hino_135_Hyy_stack_1->SetEntries(22); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_Hyy_stack_1->SetLineColor(ci); ci = TColor::GetColor("#00ff00"); hmean_Hino_135_Hyy_stack_1->SetMarkerColor(ci); hmean_Hino_135_Hyy_stack_1->SetMarkerStyle(26); hmean_Hino_135_Hyy_stack_1->SetMarkerSize(2); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_Hyy_stack_1->GetXaxis()->SetTitleFont(42); hmean_Hino_135_Hyy_stack_1->GetYaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetYaxis()->SetTitleFont(42); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetLabelFont(42); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_Hyy_stack_1->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_Hyy_stack_1,""); Double_t xAxis10[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_135_Zee_stack_2 = new TH1F("hmean_Hino_135_Zee_stack_2","",22, xAxis10); hmean_Hino_135_Zee_stack_2->SetBinContent(1,139.852); hmean_Hino_135_Zee_stack_2->SetBinContent(2,87.44984); hmean_Hino_135_Zee_stack_2->SetBinContent(3,62.07505); hmean_Hino_135_Zee_stack_2->SetBinContent(4,51.95329); hmean_Hino_135_Zee_stack_2->SetBinContent(5,37.14932); hmean_Hino_135_Zee_stack_2->SetBinContent(6,27.12854); hmean_Hino_135_Zee_stack_2->SetBinContent(7,23.21724); hmean_Hino_135_Zee_stack_2->SetBinContent(8,18.42091); hmean_Hino_135_Zee_stack_2->SetBinContent(9,14.90071); hmean_Hino_135_Zee_stack_2->SetBinContent(10,9.328349); hmean_Hino_135_Zee_stack_2->SetBinContent(11,4.308864); hmean_Hino_135_Zee_stack_2->SetBinContent(12,-1.133323); hmean_Hino_135_Zee_stack_2->SetBinContent(13,-7.035503); hmean_Hino_135_Zee_stack_2->SetBinContent(14,-11.22197); hmean_Hino_135_Zee_stack_2->SetBinContent(15,-17.30295); hmean_Hino_135_Zee_stack_2->SetBinContent(16,-22.0826); hmean_Hino_135_Zee_stack_2->SetBinContent(17,-26.83101); hmean_Hino_135_Zee_stack_2->SetBinContent(18,-34.92054); hmean_Hino_135_Zee_stack_2->SetBinContent(19,-44.04365); hmean_Hino_135_Zee_stack_2->SetBinContent(20,-59.17246); hmean_Hino_135_Zee_stack_2->SetBinContent(21,-79.30507); hmean_Hino_135_Zee_stack_2->SetBinContent(22,-129.4696); hmean_Hino_135_Zee_stack_2->SetBinError(1,2.432081); hmean_Hino_135_Zee_stack_2->SetBinError(2,1.762402); hmean_Hino_135_Zee_stack_2->SetBinError(3,1.885286); hmean_Hino_135_Zee_stack_2->SetBinError(4,1.418865); hmean_Hino_135_Zee_stack_2->SetBinError(5,1.027898); hmean_Hino_135_Zee_stack_2->SetBinError(6,1.055287); hmean_Hino_135_Zee_stack_2->SetBinError(7,0.8542848); hmean_Hino_135_Zee_stack_2->SetBinError(8,0.6273152); hmean_Hino_135_Zee_stack_2->SetBinError(9,0.5036649); hmean_Hino_135_Zee_stack_2->SetBinError(10,0.3925019); hmean_Hino_135_Zee_stack_2->SetBinError(11,0.3143236); hmean_Hino_135_Zee_stack_2->SetBinError(12,0.3642129); hmean_Hino_135_Zee_stack_2->SetBinError(13,0.3843197); hmean_Hino_135_Zee_stack_2->SetBinError(14,0.5002047); hmean_Hino_135_Zee_stack_2->SetBinError(15,0.654138); hmean_Hino_135_Zee_stack_2->SetBinError(16,0.734121); hmean_Hino_135_Zee_stack_2->SetBinError(17,1.119443); hmean_Hino_135_Zee_stack_2->SetBinError(18,0.941802); hmean_Hino_135_Zee_stack_2->SetBinError(19,1.493613); hmean_Hino_135_Zee_stack_2->SetBinError(20,1.858077); hmean_Hino_135_Zee_stack_2->SetBinError(21,1.829045); hmean_Hino_135_Zee_stack_2->SetBinError(22,2.541651); hmean_Hino_135_Zee_stack_2->SetEntries(22); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Zee_stack_2->SetLineColor(ci); ci = TColor::GetColor("#ff00ff"); hmean_Hino_135_Zee_stack_2->SetMarkerColor(ci); hmean_Hino_135_Zee_stack_2->SetMarkerStyle(26); hmean_Hino_135_Zee_stack_2->SetMarkerSize(2); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_2->GetXaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_2->GetYaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetYaxis()->SetTitleFont(42); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetLabelFont(42); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetTitleOffset(1); hmean_Hino_135_Zee_stack_2->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_135_Zee_stack_2,""); Double_t xAxis11[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_325_Hyy_stack_3 = new TH1F("hmean_Hino_325_Hyy_stack_3","",22, xAxis11); hmean_Hino_325_Hyy_stack_3->SetBinContent(1,145.6767); hmean_Hino_325_Hyy_stack_3->SetBinContent(2,84.57981); hmean_Hino_325_Hyy_stack_3->SetBinContent(3,59.00698); hmean_Hino_325_Hyy_stack_3->SetBinContent(4,47.31195); hmean_Hino_325_Hyy_stack_3->SetBinContent(5,31.20114); hmean_Hino_325_Hyy_stack_3->SetBinContent(6,28.27342); hmean_Hino_325_Hyy_stack_3->SetBinContent(7,21.98918); hmean_Hino_325_Hyy_stack_3->SetBinContent(8,16.9285); hmean_Hino_325_Hyy_stack_3->SetBinContent(9,12.36716); hmean_Hino_325_Hyy_stack_3->SetBinContent(10,7.607392); hmean_Hino_325_Hyy_stack_3->SetBinContent(11,3.862487); hmean_Hino_325_Hyy_stack_3->SetBinContent(12,-1.316838); hmean_Hino_325_Hyy_stack_3->SetBinContent(13,-5.975251); hmean_Hino_325_Hyy_stack_3->SetBinContent(14,-9.483863); hmean_Hino_325_Hyy_stack_3->SetBinContent(15,-13.02756); hmean_Hino_325_Hyy_stack_3->SetBinContent(16,-17.15297); hmean_Hino_325_Hyy_stack_3->SetBinContent(17,-20.56847); hmean_Hino_325_Hyy_stack_3->SetBinContent(18,-28.47914); hmean_Hino_325_Hyy_stack_3->SetBinContent(19,-37.93871); hmean_Hino_325_Hyy_stack_3->SetBinContent(20,-59.57706); hmean_Hino_325_Hyy_stack_3->SetBinContent(21,-78.59773); hmean_Hino_325_Hyy_stack_3->SetBinContent(22,-127.4026); hmean_Hino_325_Hyy_stack_3->SetBinError(1,5.78713); hmean_Hino_325_Hyy_stack_3->SetBinError(2,3.607107); hmean_Hino_325_Hyy_stack_3->SetBinError(3,3.599243); hmean_Hino_325_Hyy_stack_3->SetBinError(4,2.607177); hmean_Hino_325_Hyy_stack_3->SetBinError(5,1.635118); hmean_Hino_325_Hyy_stack_3->SetBinError(6,1.525154); hmean_Hino_325_Hyy_stack_3->SetBinError(7,1.163294); hmean_Hino_325_Hyy_stack_3->SetBinError(8,0.8526003); hmean_Hino_325_Hyy_stack_3->SetBinError(9,0.5816785); hmean_Hino_325_Hyy_stack_3->SetBinError(10,0.4045893); hmean_Hino_325_Hyy_stack_3->SetBinError(11,0.3674026); hmean_Hino_325_Hyy_stack_3->SetBinError(12,0.3411109); hmean_Hino_325_Hyy_stack_3->SetBinError(13,0.4067636); hmean_Hino_325_Hyy_stack_3->SetBinError(14,0.5828008); hmean_Hino_325_Hyy_stack_3->SetBinError(15,0.8962497); hmean_Hino_325_Hyy_stack_3->SetBinError(16,1.136016); hmean_Hino_325_Hyy_stack_3->SetBinError(17,1.674295); hmean_Hino_325_Hyy_stack_3->SetBinError(18,1.648845); hmean_Hino_325_Hyy_stack_3->SetBinError(19,2.016886); hmean_Hino_325_Hyy_stack_3->SetBinError(20,3.558031); hmean_Hino_325_Hyy_stack_3->SetBinError(21,3.466807); hmean_Hino_325_Hyy_stack_3->SetBinError(22,4.850881); hmean_Hino_325_Hyy_stack_3->SetEntries(22); ci = TColor::GetColor("#ffcc00"); hmean_Hino_325_Hyy_stack_3->SetLineColor(ci); ci = TColor::GetColor("#ffcc00"); hmean_Hino_325_Hyy_stack_3->SetMarkerColor(ci); hmean_Hino_325_Hyy_stack_3->SetMarkerStyle(26); hmean_Hino_325_Hyy_stack_3->SetMarkerSize(2); hmean_Hino_325_Hyy_stack_3->GetXaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_3->GetXaxis()->SetTitleOffset(1); hmean_Hino_325_Hyy_stack_3->GetXaxis()->SetTitleFont(42); hmean_Hino_325_Hyy_stack_3->GetYaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_3->GetYaxis()->SetTitleFont(42); hmean_Hino_325_Hyy_stack_3->GetZaxis()->SetLabelFont(42); hmean_Hino_325_Hyy_stack_3->GetZaxis()->SetTitleOffset(1); hmean_Hino_325_Hyy_stack_3->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_325_Hyy_stack_3,""); Double_t xAxis12[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Hino_325_Zee_stack_4 = new TH1F("hmean_Hino_325_Zee_stack_4","",22, xAxis12); hmean_Hino_325_Zee_stack_4->SetBinContent(1,132.3872); hmean_Hino_325_Zee_stack_4->SetBinContent(2,81.81543); hmean_Hino_325_Zee_stack_4->SetBinContent(3,60.54419); hmean_Hino_325_Zee_stack_4->SetBinContent(4,47.58289); hmean_Hino_325_Zee_stack_4->SetBinContent(5,33.29197); hmean_Hino_325_Zee_stack_4->SetBinContent(6,26.25695); hmean_Hino_325_Zee_stack_4->SetBinContent(7,22.52546); hmean_Hino_325_Zee_stack_4->SetBinContent(8,19.65205); hmean_Hino_325_Zee_stack_4->SetBinContent(9,14.67846); hmean_Hino_325_Zee_stack_4->SetBinContent(10,9.080183); hmean_Hino_325_Zee_stack_4->SetBinContent(11,4.150965); hmean_Hino_325_Zee_stack_4->SetBinContent(12,-1.369578); hmean_Hino_325_Zee_stack_4->SetBinContent(13,-6.677694); hmean_Hino_325_Zee_stack_4->SetBinContent(14,-11.5563); hmean_Hino_325_Zee_stack_4->SetBinContent(15,-16.22425); hmean_Hino_325_Zee_stack_4->SetBinContent(16,-18.90616); hmean_Hino_325_Zee_stack_4->SetBinContent(17,-23.06876); hmean_Hino_325_Zee_stack_4->SetBinContent(18,-32.53975); hmean_Hino_325_Zee_stack_4->SetBinContent(19,-45.07305); hmean_Hino_325_Zee_stack_4->SetBinContent(20,-56.07942); hmean_Hino_325_Zee_stack_4->SetBinContent(21,-77.97861); hmean_Hino_325_Zee_stack_4->SetBinContent(22,-126.093); hmean_Hino_325_Zee_stack_4->SetBinError(1,3.565); hmean_Hino_325_Zee_stack_4->SetBinError(2,2.400591); hmean_Hino_325_Zee_stack_4->SetBinError(3,2.245875); hmean_Hino_325_Zee_stack_4->SetBinError(4,1.613267); hmean_Hino_325_Zee_stack_4->SetBinError(5,1.097878); hmean_Hino_325_Zee_stack_4->SetBinError(6,1.007025); hmean_Hino_325_Zee_stack_4->SetBinError(7,0.8510991); hmean_Hino_325_Zee_stack_4->SetBinError(8,0.6051747); hmean_Hino_325_Zee_stack_4->SetBinError(9,0.4452124); hmean_Hino_325_Zee_stack_4->SetBinError(10,0.360758); hmean_Hino_325_Zee_stack_4->SetBinError(11,0.2761141); hmean_Hino_325_Zee_stack_4->SetBinError(12,0.2795027); hmean_Hino_325_Zee_stack_4->SetBinError(13,0.3355494); hmean_Hino_325_Zee_stack_4->SetBinError(14,0.4263567); hmean_Hino_325_Zee_stack_4->SetBinError(15,0.6189567); hmean_Hino_325_Zee_stack_4->SetBinError(16,0.8497319); hmean_Hino_325_Zee_stack_4->SetBinError(17,0.9605769); hmean_Hino_325_Zee_stack_4->SetBinError(18,1.239044); hmean_Hino_325_Zee_stack_4->SetBinError(19,1.501239); hmean_Hino_325_Zee_stack_4->SetBinError(20,2.448189); hmean_Hino_325_Zee_stack_4->SetBinError(21,2.335819); hmean_Hino_325_Zee_stack_4->SetBinError(22,3.198053); hmean_Hino_325_Zee_stack_4->SetEntries(22); ci = TColor::GetColor("#00ffff"); hmean_Hino_325_Zee_stack_4->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); hmean_Hino_325_Zee_stack_4->SetMarkerColor(ci); hmean_Hino_325_Zee_stack_4->SetMarkerStyle(26); hmean_Hino_325_Zee_stack_4->SetMarkerSize(2); hmean_Hino_325_Zee_stack_4->GetXaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_4->GetXaxis()->SetTitleOffset(1); hmean_Hino_325_Zee_stack_4->GetXaxis()->SetTitleFont(42); hmean_Hino_325_Zee_stack_4->GetYaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_4->GetYaxis()->SetTitleFont(42); hmean_Hino_325_Zee_stack_4->GetZaxis()->SetLabelFont(42); hmean_Hino_325_Zee_stack_4->GetZaxis()->SetTitleOffset(1); hmean_Hino_325_Zee_stack_4->GetZaxis()->SetTitleFont(42); hs_m->Add(hmean_Hino_325_Zee_stack_4,""); Double_t xAxis13[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Zee_PVz_stack_5 = new TH1F("hmean_Zee_PVz_stack_5","",22, xAxis13); hmean_Zee_PVz_stack_5->SetBinContent(6,29.17963); hmean_Zee_PVz_stack_5->SetBinContent(7,22.70608); hmean_Zee_PVz_stack_5->SetBinContent(8,18.85647); hmean_Zee_PVz_stack_5->SetBinContent(9,13.99223); hmean_Zee_PVz_stack_5->SetBinContent(10,9.131882); hmean_Zee_PVz_stack_5->SetBinContent(11,4.168035); hmean_Zee_PVz_stack_5->SetBinContent(12,-0.9570959); hmean_Zee_PVz_stack_5->SetBinContent(13,-5.909572); hmean_Zee_PVz_stack_5->SetBinContent(14,-10.63322); hmean_Zee_PVz_stack_5->SetBinContent(15,-15.65487); hmean_Zee_PVz_stack_5->SetBinContent(16,-20.42441); hmean_Zee_PVz_stack_5->SetBinContent(17,-25.65686); hmean_Zee_PVz_stack_5->SetBinError(6,2.12523); hmean_Zee_PVz_stack_5->SetBinError(7,0.6410658); hmean_Zee_PVz_stack_5->SetBinError(8,0.2609686); hmean_Zee_PVz_stack_5->SetBinError(9,0.1365176); hmean_Zee_PVz_stack_5->SetBinError(10,0.08679334); hmean_Zee_PVz_stack_5->SetBinError(11,0.06699023); hmean_Zee_PVz_stack_5->SetBinError(12,0.06801955); hmean_Zee_PVz_stack_5->SetBinError(13,0.08253607); hmean_Zee_PVz_stack_5->SetBinError(14,0.1294635); hmean_Zee_PVz_stack_5->SetBinError(15,0.2622912); hmean_Zee_PVz_stack_5->SetBinError(16,0.5956511); hmean_Zee_PVz_stack_5->SetBinError(17,1.611229); hmean_Zee_PVz_stack_5->SetEntries(12); 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(24); 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->Add(hmean_Zee_PVz_stack_5,""); Double_t xAxis14[23] = {-750, -400, -300, -250, -200, -150, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 150, 200, 250, 300, 400, 750}; TH1F *hmean_Zee_truZ_stack_6 = new TH1F("hmean_Zee_truZ_stack_6","",22, xAxis14); hmean_Zee_truZ_stack_6->SetBinContent(6,30.94019); hmean_Zee_truZ_stack_6->SetBinContent(7,22.93921); hmean_Zee_truZ_stack_6->SetBinContent(8,18.83733); hmean_Zee_truZ_stack_6->SetBinContent(9,13.9224); hmean_Zee_truZ_stack_6->SetBinContent(10,9.166965); hmean_Zee_truZ_stack_6->SetBinContent(11,4.199494); hmean_Zee_truZ_stack_6->SetBinContent(12,-0.9466386); hmean_Zee_truZ_stack_6->SetBinContent(13,-5.973089); hmean_Zee_truZ_stack_6->SetBinContent(14,-10.58465); hmean_Zee_truZ_stack_6->SetBinContent(15,-15.65153); hmean_Zee_truZ_stack_6->SetBinContent(16,-20.43377); hmean_Zee_truZ_stack_6->SetBinContent(17,-26.78998); hmean_Zee_truZ_stack_6->SetBinError(6,2.90292); hmean_Zee_truZ_stack_6->SetBinError(7,0.6266907); hmean_Zee_truZ_stack_6->SetBinError(8,0.2611012); hmean_Zee_truZ_stack_6->SetBinError(9,0.1359959); hmean_Zee_truZ_stack_6->SetBinError(10,0.0873061); hmean_Zee_truZ_stack_6->SetBinError(11,0.06723847); hmean_Zee_truZ_stack_6->SetBinError(12,0.06741833); hmean_Zee_truZ_stack_6->SetBinError(13,0.08198731); hmean_Zee_truZ_stack_6->SetBinError(14,0.1313361); hmean_Zee_truZ_stack_6->SetBinError(15,0.2624177); hmean_Zee_truZ_stack_6->SetBinError(16,0.6147167); hmean_Zee_truZ_stack_6->SetBinError(17,1.637765); hmean_Zee_truZ_stack_6->SetEntries(12); 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(24); 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.6,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_Hyy_stack_1","Hino_135_Hyy","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_135_Zee_stack_2","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_325_Hyy_stack_3","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_325_Zee_stack_4","Hino_325_Zee","lpf"); entry->SetFillStyle(1001); ci = TColor::GetColor("#00ffff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#00ffff"); 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(24); 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(24); 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); }