void Base_BTAG() { //=========Macro generated from canvas: DMStuff/Base_BTAG/DMStuff/Base_BTAG //========= (Mon Oct 17 16:37:09 2016) by ROOT version6.06/01 TCanvas *DMStuff/Base_BTAG = new TCanvas("DMStuff/Base_BTAG", "DMStuff/Base_BTAG",0,0,600,600); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); DMStuff/Base_BTAG->SetHighLightColor(2); DMStuff/Base_BTAG->Range(0,0,1,1); DMStuff/Base_BTAG->SetFillColor(0); DMStuff/Base_BTAG->SetBorderMode(0); DMStuff/Base_BTAG->SetBorderSize(2); DMStuff/Base_BTAG->SetTickx(1); DMStuff/Base_BTAG->SetTicky(1); DMStuff/Base_BTAG->SetLeftMargin(0.13); DMStuff/Base_BTAG->SetRightMargin(0.05); DMStuff/Base_BTAG->SetTopMargin(0.08); DMStuff/Base_BTAG->SetBottomMargin(0.13); DMStuff/Base_BTAG->SetFrameFillStyle(0); DMStuff/Base_BTAG->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,-86909.77,6.926829,782187.9); 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_5 = new TH1F("stack_phi_stack_5","",7,-0.5,6.5); stack_phi_stack_5->SetMinimum(0); stack_phi_stack_5->SetMaximum(712660.1); stack_phi_stack_5->SetDirectory(0); stack_phi_stack_5->SetStats(0); stack_phi_stack_5->SetMarkerStyle(20); stack_phi_stack_5->GetXaxis()->SetTitle("n_{b}"); stack_phi_stack_5->GetXaxis()->SetLabelFont(42); stack_phi_stack_5->GetXaxis()->SetLabelOffset(0.007); stack_phi_stack_5->GetXaxis()->SetTitleSize(0.05); stack_phi_stack_5->GetXaxis()->SetTitleFont(42); stack_phi_stack_5->GetYaxis()->SetTitle("Events / 1 GeV"); stack_phi_stack_5->GetYaxis()->SetLabelFont(42); stack_phi_stack_5->GetYaxis()->SetLabelOffset(0.007); stack_phi_stack_5->GetYaxis()->SetTitleSize(0.05); stack_phi_stack_5->GetYaxis()->SetTitleOffset(1.1); stack_phi_stack_5->GetYaxis()->SetTitleFont(42); stack_phi_stack_5->GetZaxis()->SetLabelFont(42); stack_phi_stack_5->GetZaxis()->SetLabelOffset(0.007); stack_phi_stack_5->GetZaxis()->SetTitleSize(0.05); stack_phi_stack_5->GetZaxis()->SetTitleFont(42); stack_phi->SetHistogram(stack_phi_stack_5); 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(1,606236.5); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(2,9300.834); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(3,288.6689); auxStack_block_stack_phi_DYJets_blockHisto->SetBinContent(4,1.882112); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(1,2263.331); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(2,379.8209); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(3,67.83358); auxStack_block_stack_phi_DYJets_blockHisto->SetBinError(4,8.735529); 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_{b}"); 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(1,15263.3); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(2,244.555); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(3,6.048601); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(4,0.1258864); auxStack_block_stack_phi_rare_blockHisto->SetBinContent(5,0.0009205721); auxStack_block_stack_phi_rare_blockHisto->SetBinError(1,34.60362); auxStack_block_stack_phi_rare_blockHisto->SetBinError(2,4.151753); auxStack_block_stack_phi_rare_blockHisto->SetBinError(3,0.5407348); auxStack_block_stack_phi_rare_blockHisto->SetBinError(4,0.06294774); auxStack_block_stack_phi_rare_blockHisto->SetBinError(5,0.0009205721); 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_{b}"); 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(1,62.02559); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(2,92.32124); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(3,40.0946); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(4,5.200203); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(5,0.5435569); auxStack_block_stack_phi_TTZ_blockHisto->SetBinContent(6,0.01460543); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(1,0.2107889); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(2,0.2202419); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(3,0.1270337); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(4,0.04314027); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(5,0.01224871); auxStack_block_stack_phi_TTZ_blockHisto->SetBinError(6,0.002038495); 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_{b}"); 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(1,68.32982); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(2,96.8168); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(3,37.11105); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(4,2.587819); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(5,0.07469203); auxStack_block_stack_phi_TTW_blockHisto->SetBinContent(6,0.003038255); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(1,0.244128); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(2,0.2492893); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(3,0.1344072); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(4,0.03497457); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(5,0.005651469); auxStack_block_stack_phi_TTW_blockHisto->SetBinError(6,0.001165423); 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_{b}"); 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(1,7430.706); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(2,5955.76); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(3,681.2286); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(4,16.10289); auxStack_block_stack_phi_singleT_blockHisto->SetBinContent(5,0.1940048); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(1,66.89771); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(2,51.37608); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(3,15.9078); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(4,2.326609); auxStack_block_stack_phi_singleT_blockHisto->SetBinError(5,0.1783438); 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_{b}"); 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(1,671.6173); auxStack_block_stack_phi_ZZ_blockHisto->SetBinContent(2,60.84658); auxStack_block_stack_phi_ZZ_blockHisto->SetBinContent(3,5.174734); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(1,12.44708); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(2,3.62967); auxStack_block_stack_phi_ZZ_blockHisto->SetBinError(3,0.9338749); 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_{b}"); 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(1,48991.43); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(2,66022.28); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(3,22541.9); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(4,591.4324); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(5,24.04597); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinContent(6,1.064698); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(1,53.93681); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(2,53.25865); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(3,26.70104); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(4,4.308157); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(5,0.841839); auxStack_block_stack_phi_TT_pow_blockHisto->SetBinError(6,0.1829734); 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_{b}"); 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__5 = new TH1F("stack_phi_treeHisto__5","DoubleMuon_Run2016B",7,-0.5,6.5); stack_phi_treeHisto__5->SetBinContent(1,624936); stack_phi_treeHisto__5->SetBinContent(2,73842); stack_phi_treeHisto__5->SetBinContent(3,23622); stack_phi_treeHisto__5->SetBinContent(4,646); stack_phi_treeHisto__5->SetBinContent(5,38); stack_phi_treeHisto__5->SetBinError(1,790.5289); stack_phi_treeHisto__5->SetBinError(2,271.7388); stack_phi_treeHisto__5->SetBinError(3,153.6945); stack_phi_treeHisto__5->SetBinError(4,25.41653); stack_phi_treeHisto__5->SetBinError(5,6.164414); stack_phi_treeHisto__5->SetEntries(63); stack_phi_treeHisto__5->SetMarkerStyle(20); stack_phi_treeHisto__5->GetXaxis()->SetTitle("n_{b}"); stack_phi_treeHisto__5->GetXaxis()->SetLabelFont(42); stack_phi_treeHisto__5->GetXaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__5->GetXaxis()->SetTitleSize(0.05); stack_phi_treeHisto__5->GetXaxis()->SetTitleFont(42); stack_phi_treeHisto__5->GetYaxis()->SetTitle("Events / 1 GeV"); stack_phi_treeHisto__5->GetYaxis()->SetLabelFont(42); stack_phi_treeHisto__5->GetYaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__5->GetYaxis()->SetTitleSize(0.05); stack_phi_treeHisto__5->GetYaxis()->SetTitleOffset(1.1); stack_phi_treeHisto__5->GetYaxis()->SetTitleFont(42); stack_phi_treeHisto__5->GetZaxis()->SetLabelFont(42); stack_phi_treeHisto__5->GetZaxis()->SetLabelOffset(0.007); stack_phi_treeHisto__5->GetZaxis()->SetTitleSize(0.05); stack_phi_treeHisto__5->GetZaxis()->SetTitleFont(42); stack_phi_treeHisto__5->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 (615827.9)","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 (138172.1)","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_BTAG->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(1,0.9207515); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(2,0.9030074); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(3,1.000923); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(4,1.04644); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(5,1.528612); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(1,0.003286355); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(2,0.005413531); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(3,0.007240722); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(4,0.04453394); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(5,0.2535578); 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(439.3292); 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(1,0.9207515); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(2,0.9030074); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(3,1.000923); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(4,1.04644); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinContent(5,1.528612); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(1,0.003286355); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(2,0.005413531); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(3,0.007240722); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(4,0.04453394); auxStack_block_stack_phi_TT_pow_blockHisto_ratio->SetBinError(5,0.2535578); 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(439.3292); 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_BTAG->cd(); DMStuff/Base_BTAG->Modified(); DMStuff/Base_BTAG->cd(); DMStuff/Base_BTAG->SetSelected(DMStuff/Base_BTAG); }