void Base_EXTRA() { //=========Macro generated from canvas: DMStuff/Base_EXTRA/DMStuff/Base_EXTRA //========= (Mon Oct 17 16:36:17 2016) by ROOT version6.06/01 TCanvas *DMStuff/Base_EXTRA = new TCanvas("DMStuff/Base_EXTRA", "DMStuff/Base_EXTRA",0,0,600,600); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); DMStuff/Base_EXTRA->SetHighLightColor(2); DMStuff/Base_EXTRA->Range(0,0,1,1); DMStuff/Base_EXTRA->SetFillColor(0); DMStuff/Base_EXTRA->SetBorderMode(0); DMStuff/Base_EXTRA->SetBorderSize(2); DMStuff/Base_EXTRA->SetTickx(1); DMStuff/Base_EXTRA->SetTicky(1); DMStuff/Base_EXTRA->SetLeftMargin(0.13); DMStuff/Base_EXTRA->SetRightMargin(0.05); DMStuff/Base_EXTRA->SetTopMargin(0.08); DMStuff/Base_EXTRA->SetBottomMargin(0.13); DMStuff/Base_EXTRA->SetFrameFillStyle(0); DMStuff/Base_EXTRA->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-1.609756,-100004,6.926829,900036); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.13); pad1->SetRightMargin(0.05); pad1->SetTopMargin(0.08); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); THStack *stack_phi = new THStack(); stack_phi->SetName("stack_phi"); stack_phi->SetTitle(""); TH1F *stack_phi_stack_4 = new TH1F("stack_phi_stack_4","",7,-0.5,6.5); stack_phi_stack_4->SetMinimum(0); stack_phi_stack_4->SetMaximum(820032.8); stack_phi_stack_4->SetDirectory(0); stack_phi_stack_4->SetStats(0); stack_phi_stack_4->SetMarkerStyle(20); stack_phi_stack_4->GetXaxis()->SetTitle("n_{Loose Lep}"); stack_phi_stack_4->GetXaxis()->SetLabelFont(42); stack_phi_stack_4->GetXaxis()->SetLabelOffset(0.007); stack_phi_stack_4->GetXaxis()->SetTitleSize(0.05); stack_phi_stack_4->GetXaxis()->SetTitleFont(42); stack_phi_stack_4->GetYaxis()->SetTitle("Events / 1 GeV"); stack_phi_stack_4->GetYaxis()->SetLabelFont(42); stack_phi_stack_4->GetYaxis()->SetLabelOffset(0.007); stack_phi_stack_4->GetYaxis()->SetTitleSize(0.05); stack_phi_stack_4->GetYaxis()->SetTitleOffset(1.1); stack_phi_stack_4->GetYaxis()->SetTitleFont(42); stack_phi_stack_4->GetZaxis()->SetLabelFont(42); stack_phi_stack_4->GetZaxis()->SetLabelOffset(0.007); stack_phi_stack_4->GetZaxis()->SetTitleSize(0.05); stack_phi_stack_4->GetZaxis()->SetTitleFont(42); stack_phi->SetHistogram(stack_phi_stack_4); TH1F *auxStack_block_stack_phi_DYJets_blockHisto = new TH1F("auxStack_block_stack_phi_DYJets_blockHisto","DY+Jets",7,-0.5,6.5); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(3,614980.9); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(4,847.9261); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(5,0.2211993); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(3,2293.489); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(4,107.3127); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(5,0.2211993); auxStack_block_stack_phi_DYJets_blockHisto->SetEntries(14); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000cc"); auxStack_block_stack_phi_DYJets_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_phi_DYJets_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_phi_DYJets_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_DYJets_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_DYJets_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_DYJets_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_DYJets_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_DYJets_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_DYJets_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_DYJets_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_DYJets_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_DYJets_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_DYJets_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_DYJets_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_DYJets_blockHisto,""); TH1F *auxStack_block_stack_phi_rare_blockHisto = new TH1F("auxStack_block_stack_phi_rare_blockHisto","Other",7,-0.5,6.5); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(3,15496.78); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(4,17.14607); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(5,0.1141442); auxStack_block_stack_phi_rare_blockHisto->SetBinError(3,34.83918); auxStack_block_stack_phi_rare_blockHisto->SetBinError(4,1.083709); auxStack_block_stack_phi_rare_blockHisto->SetBinError(5,0.02822568); auxStack_block_stack_phi_rare_blockHisto->SetEntries(14); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_rare_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_rare_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_rare_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_rare_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_rare_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_rare_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_rare_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_rare_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_rare_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_rare_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_rare_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_rare_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_rare_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_rare_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_rare_blockHisto,""); TH1F *auxStack_block_stack_phi_TTZ_blockHisto = new TH1F("auxStack_block_stack_phi_TTZ_blockHisto","TTZ",7,-0.5,6.5); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(3,155.3234); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(4,38.71865); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(5,6.054138); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(6,0.102873); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(7,0.0004445917); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(3,0.2932739); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(4,0.1470664); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(5,0.05820973); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(6,0.008042536); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(7,0.000307615); auxStack_block_stack_phi_TTZ_blockHisto->SetEntries(7); ci = TColor::GetColor("#ff0033"); auxStack_block_stack_phi_TTZ_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#ff0033"); auxStack_block_stack_phi_TTZ_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#ff0033"); auxStack_block_stack_phi_TTZ_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_TTZ_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_TTZ_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_TTZ_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTZ_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTZ_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTZ_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_TTZ_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_TTZ_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTZ_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTZ_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTZ_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_TTZ_blockHisto,""); TH1F *auxStack_block_stack_phi_TTW_blockHisto = new TH1F("auxStack_block_stack_phi_TTW_blockHisto","TTW",7,-0.5,6.5); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(3,182.5187); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(4,22.03378); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(5,0.3638109); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(6,0.008968966); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(3,0.3541672); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(4,0.1239011); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(5,0.0164729); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(6,0.002856523); auxStack_block_stack_phi_TTW_blockHisto->SetEntries(7); ci = TColor::GetColor("#009900"); auxStack_block_stack_phi_TTW_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#009900"); auxStack_block_stack_phi_TTW_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#009900"); auxStack_block_stack_phi_TTW_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_TTW_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_TTW_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_TTW_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTW_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTW_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTW_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_TTW_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_TTW_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_TTW_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TTW_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TTW_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_TTW_blockHisto,""); TH1F *auxStack_block_stack_phi_singleT_blockHisto = new TH1F("auxStack_block_stack_phi_singleT_blockHisto","singleT",7,-0.5,6.5); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(3,13922.16); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(4,161.6483); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(5,0.1776124); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(3,85.34961); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(4,9.419258); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(5,0.1776124); auxStack_block_stack_phi_singleT_blockHisto->SetEntries(14); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_singleT_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_singleT_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_phi_singleT_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_singleT_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_singleT_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_singleT_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_singleT_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_singleT_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_singleT_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_singleT_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_singleT_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_singleT_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_singleT_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_singleT_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_singleT_blockHisto,""); TH1F *auxStack_block_stack_phi_ZZ_blockHisto = new TH1F("auxStack_block_stack_phi_ZZ_blockHisto","ZZ",7,-0.5,6.5); auxStack_block_stack_phi_ZZ_blockHisto->SetBinContent(3,561.1866); auxStack_block_stack_phi_ZZ_blockHisto->SetBinContent(4,102.9738); auxStack_block_stack_phi_ZZ_blockHisto->SetBinContent(5,73.47717); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(3,11.35503); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(4,4.832926); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(5,4.084454); auxStack_block_stack_phi_ZZ_blockHisto->SetEntries(7); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_phi_ZZ_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_phi_ZZ_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_phi_ZZ_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_ZZ_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_ZZ_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_ZZ_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_ZZ_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_ZZ_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_ZZ_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_ZZ_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_ZZ_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_ZZ_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_ZZ_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_ZZ_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_ZZ_blockHisto,""); TH1F *auxStack_block_stack_phi_TT_pow_blockHisto = new TH1F("auxStack_block_stack_phi_TT_pow_blockHisto","TT+Jets",7,-0.5,6.5); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(3,135684.8); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(4,2291.412); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(5,18.88175); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(6,0.1821384); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(3,79.74659); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(4,10.83465); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(5,0.9962183); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(6,0.1005512); auxStack_block_stack_phi_TT_pow_blockHisto->SetEntries(7); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto->SetMarkerColor(ci); auxStack_block_stack_phi_TT_pow_blockHisto->SetMarkerStyle(20); auxStack_block_stack_phi_TT_pow_blockHisto->GetXaxis()->SetTitle("n_{Loose Lep}"); auxStack_block_stack_phi_TT_pow_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TT_pow_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetTitle("Events / 1 GeV"); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_phi_TT_pow_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TT_pow_blockHisto->GetZaxis()->SetTitleFont(42); stack_phi->Add(auxStack_block_stack_phi_TT_pow_blockHisto,""); stack_phi->Draw("hist"); TH1F *stack_phi_treeHisto__4 = new TH1F("stack_phi_treeHisto__4","DoubleMuon_Run2016B",7,-0.5,6.5); stack_phi_treeHisto__4->SetBinContent(3,718762); stack_phi_treeHisto__4->SetBinContent(4,4176); stack_phi_treeHisto__4->SetBinContent(5,146); stack_phi_treeHisto__4->SetBinError(3,847.7983); stack_phi_treeHisto__4->SetBinError(4,64.62198); stack_phi_treeHisto__4->SetBinError(5,12.08305); stack_phi_treeHisto__4->SetEntries(63); stack_phi_treeHisto__4->SetMarkerStyle(20); stack_phi_treeHisto__4->GetXaxis()->SetTitle("n_{Loose Lep}"); stack_phi_treeHisto__4->GetXaxis()->SetLabelFont(42); stack_phi_treeHisto__4->GetXaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__4->GetXaxis()->SetTitleSize(0.05); stack_phi_treeHisto__4->GetXaxis()->SetTitleFont(42); stack_phi_treeHisto__4->GetYaxis()->SetTitle("Events / 1 GeV"); stack_phi_treeHisto__4->GetYaxis()->SetLabelFont(42); stack_phi_treeHisto__4->GetYaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__4->GetYaxis()->SetTitleSize(0.05); stack_phi_treeHisto__4->GetYaxis()->SetTitleOffset(1.1); stack_phi_treeHisto__4->GetYaxis()->SetTitleFont(42); stack_phi_treeHisto__4->GetZaxis()->SetLabelFont(42); stack_phi_treeHisto__4->GetZaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__4->GetZaxis()->SetTitleSize(0.05); stack_phi_treeHisto__4->GetZaxis()->SetTitleFont(42); stack_phi_treeHisto__4->Draw("P,SAME"); TLegend *leg = new TLegend(0.6,0.6,0.8,0.8,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.04); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(0); leg->SetFillColor(0); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("stack_phi_treeHisto","Data (723084.0)","P"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_DYJets_blockHisto","DY+Jets (615829.1)","F"); ci = TColor::GetColor("#0000cc"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#0000cc"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_rare_blockHisto","Other (15514.0)","F"); ci = TColor::GetColor("#990000"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#990000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_TTZ_blockHisto","TTZ (200.2)","F"); ci = TColor::GetColor("#ff0033"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#ff0033"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_TTW_blockHisto","TTW (204.9)","F"); ci = TColor::GetColor("#009900"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#009900"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_singleT_blockHisto","singleT (14084.0)","F"); ci = TColor::GetColor("#990000"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#990000"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_ZZ_blockHisto","ZZ (737.6)","F"); ci = TColor::GetColor("#cc6600"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#cc6600"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_phi_TT_pow_blockHisto","TT+Jets (137995.3)","F"); ci = TColor::GetColor("#00ffff"); entry->SetFillColor(ci); entry->SetFillStyle(1001); ci = TColor::GetColor("#00ffff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.21,0.93,"CMS"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(61); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.33,0.93,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(52); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.9,0.93,"12.9 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); DMStuff/Base_EXTRA->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-1.609756,-4.967054e-08,6.926829,1.666667); pad2->SetFillColor(0); pad2->SetBorderMode(0); pad2->SetBorderSize(2); pad2->SetTickx(1); pad2->SetTicky(1); pad2->SetLeftMargin(0.13); pad2->SetRightMargin(0.05); pad2->SetBottomMargin(0.3); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); pad2->SetFrameFillStyle(0); pad2->SetFrameBorderMode(0); TH1F *auxStack_block_stack_phi_TT_pow_blockHisto_ratio = new TH1F("auxStack_block_stack_phi_TT_pow_blockHisto_ratio","",7,-0.5,6.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(3,0.9203292); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(4,1.19936); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(5,1.470443); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(3,0.002916132); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(4,0.04169211); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(5,0.1367656); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMinimum(0.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMaximum(1.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetEntries(630.2227); ci = TColor::GetColor("#666699"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerColor(ci); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerStyle(20); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerSize(0); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelSize(0.12); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetTitleSize(0.14); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitle("Data/Pred"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->CenterTitle(true); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetNdivisions(4); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelSize(0.12); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleSize(0.14); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleOffset(0.3); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->Draw("P,E2,"); TH1F *auxStack_block_stack_phi_TT_pow_blockHisto_ratio = new TH1F("auxStack_block_stack_phi_TT_pow_blockHisto_ratio","",7,-0.5,6.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(3,0.9203292); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(4,1.19936); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(5,1.470443); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(3,0.002916132); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(4,0.04169211); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(5,0.1367656); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMinimum(0.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMaximum(1.5); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetEntries(630.2227); ci = TColor::GetColor("#666699"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerColor(ci); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerStyle(20); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetMarkerSize(0); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetLabelSize(0.12); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetTitleSize(0.14); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetXaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitle("Data/Pred"); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->CenterTitle(true); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetNdivisions(4); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetLabelSize(0.12); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleSize(0.14); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleOffset(0.3); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetYaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetLabelFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->GetZaxis()->SetTitleFont(42); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->Draw("P,same"); TLine *line = new TLine(-0.5,1,6.5,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); DMStuff/Base_EXTRA->cd(); DMStuff/Base_EXTRA->Modified(); DMStuff/Base_EXTRA->cd(); DMStuff/Base_EXTRA->SetSelected(DMStuff/Base_EXTRA); }