void PlotPointingBiasVrhoRat() { //=========Macro generated from canvas: c_m/c //========= (Thu May 26 07:29:21 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hs_m_rat_stack_4 = new TH1F("hs_m_rat_stack_4","",18, 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Hino_325_Zee_stack_1 = new TH1F("hmean_Hino_325_Zee_stack_1","",18, 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->SetBinError(1,0.01319436); hmean_Hino_325_Zee_stack_1->SetBinError(2,0.01434641); hmean_Hino_325_Zee_stack_1->SetBinError(3,0.01765757); hmean_Hino_325_Zee_stack_1->SetBinError(4,0.01055244); hmean_Hino_325_Zee_stack_1->SetBinError(5,0.02324301); hmean_Hino_325_Zee_stack_1->SetBinError(6,0.01808646); hmean_Hino_325_Zee_stack_1->SetBinError(7,0.02677273); hmean_Hino_325_Zee_stack_1->SetBinError(8,0.04082557); hmean_Hino_325_Zee_stack_1->SetBinError(9,0.04920086); hmean_Hino_325_Zee_stack_1->SetBinError(10,0.1255878); hmean_Hino_325_Zee_stack_1->SetBinError(11,0.03834868); hmean_Hino_325_Zee_stack_1->SetBinError(12,0.0257316); hmean_Hino_325_Zee_stack_1->SetBinError(13,0.039813); hmean_Hino_325_Zee_stack_1->SetBinError(14,0.02676639); hmean_Hino_325_Zee_stack_1->SetBinError(15,0.01127787); hmean_Hino_325_Zee_stack_1->SetBinError(16,0.01812652); hmean_Hino_325_Zee_stack_1->SetBinError(17,0.0184331); hmean_Hino_325_Zee_stack_1->SetBinError(18,0.01087831); hmean_Hino_325_Zee_stack_1->SetEntries(11741.23); 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Hino_325_Hyy_stack_2 = new TH1F("hmean_Hino_325_Hyy_stack_2","",18, xAxis24); hmean_Hino_325_Hyy_stack_2->SetBinContent(1,1.073455); hmean_Hino_325_Hyy_stack_2->SetBinContent(2,1.031102); hmean_Hino_325_Hyy_stack_2->SetBinContent(3,0.9513129); hmean_Hino_325_Hyy_stack_2->SetBinContent(4,1.068121); hmean_Hino_325_Hyy_stack_2->SetBinContent(5,0.7970788); hmean_Hino_325_Hyy_stack_2->SetBinContent(6,0.6017575); hmean_Hino_325_Hyy_stack_2->SetBinContent(7,0.9187323); hmean_Hino_325_Hyy_stack_2->SetBinContent(8,1.119866); hmean_Hino_325_Hyy_stack_2->SetBinContent(9,0.8263465); hmean_Hino_325_Hyy_stack_2->SetBinContent(10,1.480991); hmean_Hino_325_Hyy_stack_2->SetBinContent(11,1.019825); hmean_Hino_325_Hyy_stack_2->SetBinContent(12,0.9335318); hmean_Hino_325_Hyy_stack_2->SetBinContent(13,0.5242617); hmean_Hino_325_Hyy_stack_2->SetBinContent(14,0.7962738); hmean_Hino_325_Hyy_stack_2->SetBinContent(15,0.9134367); hmean_Hino_325_Hyy_stack_2->SetBinContent(16,1.128569); hmean_Hino_325_Hyy_stack_2->SetBinContent(17,1.324739); hmean_Hino_325_Hyy_stack_2->SetBinContent(18,0.9545789); hmean_Hino_325_Hyy_stack_2->SetBinError(1,0.0176689); hmean_Hino_325_Hyy_stack_2->SetBinError(2,0.02977598); hmean_Hino_325_Hyy_stack_2->SetBinError(3,0.02892887); hmean_Hino_325_Hyy_stack_2->SetBinError(4,0.01649401); hmean_Hino_325_Hyy_stack_2->SetBinError(5,0.02302502); hmean_Hino_325_Hyy_stack_2->SetBinError(6,0.01959493); hmean_Hino_325_Hyy_stack_2->SetBinError(7,0.02237565); hmean_Hino_325_Hyy_stack_2->SetBinError(8,0.0408639); hmean_Hino_325_Hyy_stack_2->SetBinError(9,0.0421041); hmean_Hino_325_Hyy_stack_2->SetBinError(10,0.1518734); hmean_Hino_325_Hyy_stack_2->SetBinError(11,0.03554248); hmean_Hino_325_Hyy_stack_2->SetBinError(12,0.04321496); hmean_Hino_325_Hyy_stack_2->SetBinError(13,0.01714661); hmean_Hino_325_Hyy_stack_2->SetBinError(14,0.02714275); hmean_Hino_325_Hyy_stack_2->SetBinError(15,0.01343667); hmean_Hino_325_Hyy_stack_2->SetBinError(16,0.03504557); hmean_Hino_325_Hyy_stack_2->SetBinError(17,0.02548848); hmean_Hino_325_Hyy_stack_2->SetBinError(18,0.01346635); hmean_Hino_325_Hyy_stack_2->SetEntries(8325.811); 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Hino_135_Zee_stack_3 = new TH1F("hmean_Hino_135_Zee_stack_3","",18, xAxis25); hmean_Hino_135_Zee_stack_3->SetBinContent(1,0.9525419); hmean_Hino_135_Zee_stack_3->SetBinContent(2,0.9498131); hmean_Hino_135_Zee_stack_3->SetBinContent(3,1.077685); hmean_Hino_135_Zee_stack_3->SetBinContent(4,0.9169621); hmean_Hino_135_Zee_stack_3->SetBinContent(5,0.9071472); hmean_Hino_135_Zee_stack_3->SetBinContent(6,0.8463757); hmean_Hino_135_Zee_stack_3->SetBinContent(7,1.135213); hmean_Hino_135_Zee_stack_3->SetBinContent(8,1.105577); hmean_Hino_135_Zee_stack_3->SetBinContent(9,0.8607786); hmean_Hino_135_Zee_stack_3->SetBinContent(10,0.2516017); hmean_Hino_135_Zee_stack_3->SetBinContent(11,1.194219); hmean_Hino_135_Zee_stack_3->SetBinContent(12,1.15122); hmean_Hino_135_Zee_stack_3->SetBinContent(13,0.7592343); hmean_Hino_135_Zee_stack_3->SetBinContent(14,1.099353); hmean_Hino_135_Zee_stack_3->SetBinContent(15,0.9331244); hmean_Hino_135_Zee_stack_3->SetBinContent(16,1.018445); hmean_Hino_135_Zee_stack_3->SetBinContent(17,1.115983); hmean_Hino_135_Zee_stack_3->SetBinContent(18,0.9909083); hmean_Hino_135_Zee_stack_3->SetBinError(1,0.01205164); hmean_Hino_135_Zee_stack_3->SetBinError(2,0.01332991); hmean_Hino_135_Zee_stack_3->SetBinError(3,0.01807611); hmean_Hino_135_Zee_stack_3->SetBinError(4,0.009059691); hmean_Hino_135_Zee_stack_3->SetBinError(5,0.01732192); hmean_Hino_135_Zee_stack_3->SetBinError(6,0.01329161); hmean_Hino_135_Zee_stack_3->SetBinError(7,0.02335627); hmean_Hino_135_Zee_stack_3->SetBinError(8,0.03486677); hmean_Hino_135_Zee_stack_3->SetBinError(9,0.03390411); hmean_Hino_135_Zee_stack_3->SetBinError(10,0.07145142); hmean_Hino_135_Zee_stack_3->SetBinError(11,0.03609692); hmean_Hino_135_Zee_stack_3->SetBinError(12,0.0233855); hmean_Hino_135_Zee_stack_3->SetBinError(13,0.02224546); hmean_Hino_135_Zee_stack_3->SetBinError(14,0.02335755); hmean_Hino_135_Zee_stack_3->SetBinError(15,0.009374533); hmean_Hino_135_Zee_stack_3->SetBinError(16,0.01687999); hmean_Hino_135_Zee_stack_3->SetBinError(17,0.0178497); hmean_Hino_135_Zee_stack_3->SetBinError(18,0.01208754); hmean_Hino_135_Zee_stack_3->SetEntries(23016.83); 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Hino_135_2ns_stack_4 = new TH1F("hmean_Hino_135_2ns_stack_4","",18, xAxis26); hmean_Hino_135_2ns_stack_4->SetBinContent(1,0.8982175); hmean_Hino_135_2ns_stack_4->SetBinContent(2,0.9110092); hmean_Hino_135_2ns_stack_4->SetBinContent(3,0.9361302); hmean_Hino_135_2ns_stack_4->SetBinContent(4,0.9182315); hmean_Hino_135_2ns_stack_4->SetBinContent(5,0.9718812); hmean_Hino_135_2ns_stack_4->SetBinContent(6,0.8192924); hmean_Hino_135_2ns_stack_4->SetBinContent(7,0.9943773); hmean_Hino_135_2ns_stack_4->SetBinContent(8,1.087679); hmean_Hino_135_2ns_stack_4->SetBinContent(9,0.8100937); hmean_Hino_135_2ns_stack_4->SetBinContent(10,0.2149785); hmean_Hino_135_2ns_stack_4->SetBinContent(11,1.092115); hmean_Hino_135_2ns_stack_4->SetBinContent(12,1.177915); hmean_Hino_135_2ns_stack_4->SetBinContent(13,0.6683688); hmean_Hino_135_2ns_stack_4->SetBinContent(14,1.016676); hmean_Hino_135_2ns_stack_4->SetBinContent(15,0.944095); hmean_Hino_135_2ns_stack_4->SetBinContent(16,1.028436); hmean_Hino_135_2ns_stack_4->SetBinContent(17,1.107756); hmean_Hino_135_2ns_stack_4->SetBinContent(18,1.0401); hmean_Hino_135_2ns_stack_4->SetBinError(1,0.01156823); hmean_Hino_135_2ns_stack_4->SetBinError(2,0.01158972); hmean_Hino_135_2ns_stack_4->SetBinError(3,0.01619455); hmean_Hino_135_2ns_stack_4->SetBinError(4,0.008546602); hmean_Hino_135_2ns_stack_4->SetBinError(5,0.01820677); hmean_Hino_135_2ns_stack_4->SetBinError(6,0.01233533); hmean_Hino_135_2ns_stack_4->SetBinError(7,0.02030816); hmean_Hino_135_2ns_stack_4->SetBinError(8,0.03368648); hmean_Hino_135_2ns_stack_4->SetBinError(9,0.03099341); hmean_Hino_135_2ns_stack_4->SetBinError(10,0.05373547); hmean_Hino_135_2ns_stack_4->SetBinError(11,0.03299612); hmean_Hino_135_2ns_stack_4->SetBinError(12,0.0231048); hmean_Hino_135_2ns_stack_4->SetBinError(13,0.01964859); hmean_Hino_135_2ns_stack_4->SetBinError(14,0.02116326); hmean_Hino_135_2ns_stack_4->SetBinError(15,0.009264906); hmean_Hino_135_2ns_stack_4->SetBinError(16,0.01652862); hmean_Hino_135_2ns_stack_4->SetBinError(17,0.01736759); hmean_Hino_135_2ns_stack_4->SetBinError(18,0.01423787); hmean_Hino_135_2ns_stack_4->SetEntries(28238.41); 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Zee_PVz_stack_5 = new TH1F("hmean_Zee_PVz_stack_5","",18, xAxis27); hmean_Zee_PVz_stack_5->SetBinContent(4,0.7782896); hmean_Zee_PVz_stack_5->SetBinContent(5,0.887008); hmean_Zee_PVz_stack_5->SetBinContent(6,0.9041507); hmean_Zee_PVz_stack_5->SetBinContent(7,1.06185); hmean_Zee_PVz_stack_5->SetBinContent(8,1.151214); hmean_Zee_PVz_stack_5->SetBinContent(9,0.8986775); hmean_Zee_PVz_stack_5->SetBinContent(10,0.3216608); hmean_Zee_PVz_stack_5->SetBinContent(11,1.088702); hmean_Zee_PVz_stack_5->SetBinContent(12,1.120428); hmean_Zee_PVz_stack_5->SetBinContent(13,0.6774744); hmean_Zee_PVz_stack_5->SetBinContent(14,1.017921); hmean_Zee_PVz_stack_5->SetBinContent(15,0.7746685); hmean_Zee_PVz_stack_5->SetBinError(4,0.01743894); hmean_Zee_PVz_stack_5->SetBinError(5,0.01734985); hmean_Zee_PVz_stack_5->SetBinError(6,0.01225203); hmean_Zee_PVz_stack_5->SetBinError(7,0.02044374); hmean_Zee_PVz_stack_5->SetBinError(8,0.03343541); hmean_Zee_PVz_stack_5->SetBinError(9,0.03145919); hmean_Zee_PVz_stack_5->SetBinError(10,0.03453494); hmean_Zee_PVz_stack_5->SetBinError(11,0.0297655); hmean_Zee_PVz_stack_5->SetBinError(12,0.02063586); hmean_Zee_PVz_stack_5->SetBinError(13,0.01935268); hmean_Zee_PVz_stack_5->SetBinError(14,0.02128301); hmean_Zee_PVz_stack_5->SetBinError(15,0.01823724); hmean_Zee_PVz_stack_5->SetEntries(16429.07); 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[19] = {-750, -400, -300, -250, -125, -100, -75, -50, -25, 0, 25, 50, 75, 100, 125, 250, 300, 400, 750}; TH1F *hmean_Zee_truZ_stack_6 = new TH1F("hmean_Zee_truZ_stack_6","",18, xAxis28); hmean_Zee_truZ_stack_6->SetBinContent(4,0.7266355); hmean_Zee_truZ_stack_6->SetBinContent(5,0.9026083); hmean_Zee_truZ_stack_6->SetBinContent(6,0.9034896); hmean_Zee_truZ_stack_6->SetBinContent(7,1.064377); hmean_Zee_truZ_stack_6->SetBinContent(8,1.148336); hmean_Zee_truZ_stack_6->SetBinContent(9,0.8996215); hmean_Zee_truZ_stack_6->SetBinContent(10,0.3224275); hmean_Zee_truZ_stack_6->SetBinContent(11,1.10514); hmean_Zee_truZ_stack_6->SetBinContent(12,1.117806); hmean_Zee_truZ_stack_6->SetBinContent(13,0.673153); hmean_Zee_truZ_stack_6->SetBinContent(14,1.029663); hmean_Zee_truZ_stack_6->SetBinContent(15,0.7595477); hmean_Zee_truZ_stack_6->SetBinError(4,0.01166497); hmean_Zee_truZ_stack_6->SetBinError(5,0.01782536); hmean_Zee_truZ_stack_6->SetBinError(6,0.01222862); hmean_Zee_truZ_stack_6->SetBinError(7,0.02047949); hmean_Zee_truZ_stack_6->SetBinError(8,0.03334811); hmean_Zee_truZ_stack_6->SetBinError(9,0.03149184); hmean_Zee_truZ_stack_6->SetBinError(10,0.03461301); hmean_Zee_truZ_stack_6->SetBinError(11,0.03020951); hmean_Zee_truZ_stack_6->SetBinError(12,0.02059295); hmean_Zee_truZ_stack_6->SetBinError(13,0.01924706); hmean_Zee_truZ_stack_6->SetBinError(14,0.02131501); hmean_Zee_truZ_stack_6->SetBinError(15,0.01565564); hmean_Zee_truZ_stack_6->SetEntries(16859.1); 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); }