void SR_data_driven() { //=========Macro generated from canvas: DMStuff/SR_data_driven/DMStuff/SR_data_driven //========= (Fri Dec 2 12:08:22 2016) by ROOT version6.06/01 TCanvas *DMStuff/SR_data_driven = new TCanvas("DMStuff/SR_data_driven", "DMStuff/SR_data_driven",0,0,600,600); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); DMStuff/SR_data_driven->SetHighLightColor(2); DMStuff/SR_data_driven->Range(0,0,1,1); DMStuff/SR_data_driven->SetFillColor(0); DMStuff/SR_data_driven->SetBorderMode(0); DMStuff/SR_data_driven->SetBorderSize(2); DMStuff/SR_data_driven->SetTickx(1); DMStuff/SR_data_driven->SetTicky(1); DMStuff/SR_data_driven->SetLeftMargin(0.13); DMStuff/SR_data_driven->SetTopMargin(0.08); DMStuff/SR_data_driven->SetBottomMargin(0.13); DMStuff/SR_data_driven->SetFrameFillStyle(0); DMStuff/SR_data_driven->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(30.2439,-1.280488,566.8293,11.52439); 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); TH1F *sig_treeHisto__1 = new TH1F("sig_treeHisto__1","localProduction3",11,100,540); sig_treeHisto__1->SetBinContent(2,10); sig_treeHisto__1->SetEntries(1); sig_treeHisto__1->SetLineColor(0); sig_treeHisto__1->SetLineWidth(2); sig_treeHisto__1->SetMarkerColor(0); sig_treeHisto__1->SetMarkerStyle(20); sig_treeHisto__1->GetXaxis()->SetTitle("MET [GeV]"); sig_treeHisto__1->GetXaxis()->SetLabelFont(42); sig_treeHisto__1->GetXaxis()->SetLabelOffset(0.007); sig_treeHisto__1->GetXaxis()->SetTitleSize(0.05); sig_treeHisto__1->GetXaxis()->SetTitleFont(42); sig_treeHisto__1->GetYaxis()->SetTitle("Events / 40 GeV"); sig_treeHisto__1->GetYaxis()->SetLabelFont(42); sig_treeHisto__1->GetYaxis()->SetLabelOffset(0.007); sig_treeHisto__1->GetYaxis()->SetTitleSize(0.05); sig_treeHisto__1->GetYaxis()->SetTitleOffset(1.1); sig_treeHisto__1->GetYaxis()->SetTitleFont(42); sig_treeHisto__1->GetZaxis()->SetLabelFont(42); sig_treeHisto__1->GetZaxis()->SetLabelOffset(0.007); sig_treeHisto__1->GetZaxis()->SetTitleSize(0.05); sig_treeHisto__1->GetZaxis()->SetTitleFont(42); sig_treeHisto__1->Draw("HIST"); THStack *stack_some = new THStack(); stack_some->SetName("stack_some"); stack_some->SetTitle(""); TH1F *stack_some_stack_1 = new TH1F("stack_some_stack_1","",11,100,540); stack_some_stack_1->SetMinimum(-0.0007264666); stack_some_stack_1->SetMaximum(2.481911); stack_some_stack_1->SetDirectory(0); stack_some_stack_1->SetStats(0); stack_some_stack_1->SetMarkerStyle(20); stack_some_stack_1->GetXaxis()->SetLabelFont(42); stack_some_stack_1->GetXaxis()->SetLabelOffset(0.007); stack_some_stack_1->GetXaxis()->SetTitleSize(0.05); stack_some_stack_1->GetXaxis()->SetTitleFont(42); stack_some_stack_1->GetYaxis()->SetLabelFont(42); stack_some_stack_1->GetYaxis()->SetLabelOffset(0.007); stack_some_stack_1->GetYaxis()->SetTitleSize(0.05); stack_some_stack_1->GetYaxis()->SetTitleOffset(1.1); stack_some_stack_1->GetYaxis()->SetTitleFont(42); stack_some_stack_1->GetZaxis()->SetLabelFont(42); stack_some_stack_1->GetZaxis()->SetLabelOffset(0.007); stack_some_stack_1->GetZaxis()->SetTitleSize(0.05); stack_some_stack_1->GetZaxis()->SetTitleFont(42); stack_some->SetHistogram(stack_some_stack_1); TH1F *auxStack_block_stack_some_DYJets_blockHisto = new TH1F("auxStack_block_stack_some_DYJets_blockHisto","DY+Jets",11,100,540); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(2,0.04621144); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(3,0.02105181); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(4,0.02936912); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(5,0.02392256); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(6,0.02142553); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(7,0.004470631); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(8,0.007258163); auxStack_block_stack_some_DYJets_blockHisto->SetBinContent(11,0.04074538); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(2,0.02913808); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(3,0.01247308); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(4,0.01497137); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(5,0.01404923); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(6,0.02142553); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(7,0.00447063); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(8,0.007258163); auxStack_block_stack_some_DYJets_blockHisto->SetBinError(11,0.03382874); auxStack_block_stack_some_DYJets_blockHisto->SetEntries(44); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000cc"); auxStack_block_stack_some_DYJets_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_some_DYJets_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_some_DYJets_blockHisto->SetMarkerColor(ci); auxStack_block_stack_some_DYJets_blockHisto->SetMarkerStyle(20); auxStack_block_stack_some_DYJets_blockHisto->GetXaxis()->SetTitle("MET [GeV]"); auxStack_block_stack_some_DYJets_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_some_DYJets_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_DYJets_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_some_DYJets_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetTitle("Events / 40 GeV"); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_some_DYJets_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_some_DYJets_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_some_DYJets_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_DYJets_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_some_DYJets_blockHisto->GetZaxis()->SetTitleFont(42); stack_some->Add(auxStack_block_stack_some_DYJets_blockHisto,""); TH1F *auxStack_block_stack_some_rare_blockHisto = new TH1F("auxStack_block_stack_some_rare_blockHisto","Other",11,100,540); auxStack_block_stack_some_rare_blockHisto->SetBinContent(2,0.08656336); auxStack_block_stack_some_rare_blockHisto->SetBinContent(4,0.09492472); auxStack_block_stack_some_rare_blockHisto->SetBinError(2,0.08656336); auxStack_block_stack_some_rare_blockHisto->SetBinError(4,0.09492472); auxStack_block_stack_some_rare_blockHisto->SetEntries(22); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_rare_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_rare_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_rare_blockHisto->SetMarkerColor(ci); auxStack_block_stack_some_rare_blockHisto->SetMarkerStyle(20); auxStack_block_stack_some_rare_blockHisto->GetXaxis()->SetTitle("MET [GeV]"); auxStack_block_stack_some_rare_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_some_rare_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_rare_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_some_rare_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetTitle("Events / 40 GeV"); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_some_rare_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_some_rare_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_some_rare_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_rare_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_some_rare_blockHisto->GetZaxis()->SetTitleFont(42); stack_some->Add(auxStack_block_stack_some_rare_blockHisto,""); TH1F *auxStack_block_stack_some_TTW_blockHisto = new TH1F("auxStack_block_stack_some_TTW_blockHisto","TTW",11,100,540); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(1,0.006097415); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(2,0.1195797); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(3,0.1986546); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(4,0.1489419); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(5,0.08744283); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(6,0.05496827); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(7,0.03825457); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(8,0.02013672); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(9,0.01443273); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(10,0.01219749); auxStack_block_stack_some_TTW_blockHisto->SetBinContent(11,0.01591309); auxStack_block_stack_some_TTW_blockHisto->SetBinError(1,0.002072241); auxStack_block_stack_some_TTW_blockHisto->SetBinError(2,0.008715848); auxStack_block_stack_some_TTW_blockHisto->SetBinError(3,0.01132707); auxStack_block_stack_some_TTW_blockHisto->SetBinError(4,0.009745961); auxStack_block_stack_some_TTW_blockHisto->SetBinError(5,0.00740603); auxStack_block_stack_some_TTW_blockHisto->SetBinError(6,0.005757205); auxStack_block_stack_some_TTW_blockHisto->SetBinError(7,0.005225109); auxStack_block_stack_some_TTW_blockHisto->SetBinError(8,0.003508076); auxStack_block_stack_some_TTW_blockHisto->SetBinError(9,0.003335093); auxStack_block_stack_some_TTW_blockHisto->SetBinError(10,0.002961817); auxStack_block_stack_some_TTW_blockHisto->SetBinError(11,0.003051744); auxStack_block_stack_some_TTW_blockHisto->SetEntries(11); ci = TColor::GetColor("#009900"); auxStack_block_stack_some_TTW_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#009900"); auxStack_block_stack_some_TTW_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#009900"); auxStack_block_stack_some_TTW_blockHisto->SetMarkerColor(ci); auxStack_block_stack_some_TTW_blockHisto->SetMarkerStyle(20); auxStack_block_stack_some_TTW_blockHisto->GetXaxis()->SetTitle("MET [GeV]"); auxStack_block_stack_some_TTW_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_some_TTW_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_TTW_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_some_TTW_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetTitle("Events / 40 GeV"); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_some_TTW_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_some_TTW_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_some_TTW_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_TTW_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_some_TTW_blockHisto->GetZaxis()->SetTitleFont(42); stack_some->Add(auxStack_block_stack_some_TTW_blockHisto,""); TH1F *auxStack_block_stack_some_singleT_blockHisto = new TH1F("auxStack_block_stack_some_singleT_blockHisto","singleT",11,100,540); auxStack_block_stack_some_singleT_blockHisto->SetBinContent(3,0.3558661); auxStack_block_stack_some_singleT_blockHisto->SetBinContent(6,0.6402749); auxStack_block_stack_some_singleT_blockHisto->SetBinError(3,0.3558661); auxStack_block_stack_some_singleT_blockHisto->SetBinError(6,0.538121); auxStack_block_stack_some_singleT_blockHisto->SetEntries(22); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_singleT_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_singleT_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_some_singleT_blockHisto->SetMarkerColor(ci); auxStack_block_stack_some_singleT_blockHisto->SetMarkerStyle(20); auxStack_block_stack_some_singleT_blockHisto->GetXaxis()->SetTitle("MET [GeV]"); auxStack_block_stack_some_singleT_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_some_singleT_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_singleT_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_some_singleT_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetTitle("Events / 40 GeV"); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_some_singleT_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_some_singleT_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_some_singleT_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_singleT_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_some_singleT_blockHisto->GetZaxis()->SetTitleFont(42); stack_some->Add(auxStack_block_stack_some_singleT_blockHisto,""); TH1F *auxStack_block_stack_some_ZZ_blockHisto = new TH1F("auxStack_block_stack_some_ZZ_blockHisto","ZZ",11,100,540); auxStack_block_stack_some_ZZ_blockHisto->SetEntries(11); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_some_ZZ_blockHisto->SetFillColor(ci); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_some_ZZ_blockHisto->SetLineColor(ci); ci = TColor::GetColor("#cc6600"); auxStack_block_stack_some_ZZ_blockHisto->SetMarkerColor(ci); auxStack_block_stack_some_ZZ_blockHisto->SetMarkerStyle(20); auxStack_block_stack_some_ZZ_blockHisto->GetXaxis()->SetTitle("MET [GeV]"); auxStack_block_stack_some_ZZ_blockHisto->GetXaxis()->SetLabelFont(42); auxStack_block_stack_some_ZZ_blockHisto->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_ZZ_blockHisto->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_some_ZZ_blockHisto->GetXaxis()->SetTitleFont(42); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetTitle("Events / 40 GeV"); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetLabelFont(42); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_some_ZZ_blockHisto->GetYaxis()->SetTitleFont(42); auxStack_block_stack_some_ZZ_blockHisto->GetZaxis()->SetLabelFont(42); auxStack_block_stack_some_ZZ_blockHisto->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_some_ZZ_blockHisto->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_some_ZZ_blockHisto->GetZaxis()->SetTitleFont(42); stack_some->Add(auxStack_block_stack_some_ZZ_blockHisto,""); TH1F *ttz_sr_treeHisto__2 = new TH1F("ttz_sr_treeHisto__2","TTZ",11,100,540); ttz_sr_treeHisto__2->SetBinContent(1,0.01609662); ttz_sr_treeHisto__2->SetBinContent(2,0.341515); ttz_sr_treeHisto__2->SetBinContent(3,0.6838684); ttz_sr_treeHisto__2->SetBinContent(4,0.6539108); ttz_sr_treeHisto__2->SetBinContent(5,0.4701241); ttz_sr_treeHisto__2->SetBinContent(6,0.3315031); ttz_sr_treeHisto__2->SetBinContent(7,0.1938405); ttz_sr_treeHisto__2->SetBinContent(8,0.1334972); ttz_sr_treeHisto__2->SetBinContent(9,0.07225009); ttz_sr_treeHisto__2->SetBinContent(10,0.05441294); ttz_sr_treeHisto__2->SetBinContent(11,0.05450646); ttz_sr_treeHisto__2->SetBinError(1,0.008730987); ttz_sr_treeHisto__2->SetBinError(2,0.1241002); ttz_sr_treeHisto__2->SetBinError(3,0.2389587); ttz_sr_treeHisto__2->SetBinError(4,0.2288512); ttz_sr_treeHisto__2->SetBinError(5,0.1677667); ttz_sr_treeHisto__2->SetBinError(6,0.1210699); ttz_sr_treeHisto__2->SetBinError(7,0.07351567); ttz_sr_treeHisto__2->SetBinError(8,0.05280588); ttz_sr_treeHisto__2->SetBinError(9,0.03043701); ttz_sr_treeHisto__2->SetBinError(10,0.02400736); ttz_sr_treeHisto__2->SetBinError(11,0.005228158); ttz_sr_treeHisto__2->SetEntries(21); ci = TColor::GetColor("#ff0000"); ttz_sr_treeHisto__2->SetFillColor(ci); ci = TColor::GetColor("#ff0033"); ttz_sr_treeHisto__2->SetLineColor(ci); ci = TColor::GetColor("#ff0033"); ttz_sr_treeHisto__2->SetMarkerColor(ci); ttz_sr_treeHisto__2->SetMarkerStyle(20); ttz_sr_treeHisto__2->GetXaxis()->SetTitle("MET [GeV]"); ttz_sr_treeHisto__2->GetXaxis()->SetLabelFont(42); ttz_sr_treeHisto__2->GetXaxis()->SetLabelOffset(0.007); ttz_sr_treeHisto__2->GetXaxis()->SetTitleSize(0.05); ttz_sr_treeHisto__2->GetXaxis()->SetTitleFont(42); ttz_sr_treeHisto__2->GetYaxis()->SetTitle("Events / 40 GeV"); ttz_sr_treeHisto__2->GetYaxis()->SetLabelFont(42); ttz_sr_treeHisto__2->GetYaxis()->SetLabelOffset(0.007); ttz_sr_treeHisto__2->GetYaxis()->SetTitleSize(0.05); ttz_sr_treeHisto__2->GetYaxis()->SetTitleOffset(1.1); ttz_sr_treeHisto__2->GetYaxis()->SetTitleFont(42); ttz_sr_treeHisto__2->GetZaxis()->SetLabelFont(42); ttz_sr_treeHisto__2->GetZaxis()->SetLabelOffset(0.007); ttz_sr_treeHisto__2->GetZaxis()->SetTitleSize(0.05); ttz_sr_treeHisto__2->GetZaxis()->SetTitleFont(42); stack_some->Add(ttz_sr_treeHisto,""); TH1F *tt_sr_treeHisto__3 = new TH1F("tt_sr_treeHisto__3","TT+Jets",11,100,540); tt_sr_treeHisto__3->SetBinContent(1,0.3490042); tt_sr_treeHisto__3->SetBinContent(2,1.769856); tt_sr_treeHisto__3->SetBinContent(3,1.011782); tt_sr_treeHisto__3->SetBinContent(4,0.5040471); tt_sr_treeHisto__3->SetBinContent(5,0.3166834); tt_sr_treeHisto__3->SetBinContent(6,0.1885831); tt_sr_treeHisto__3->SetBinContent(7,0.145856); tt_sr_treeHisto__3->SetBinContent(8,0.05231479); tt_sr_treeHisto__3->SetBinContent(9,0.0184438); tt_sr_treeHisto__3->SetBinContent(10,0.04035675); tt_sr_treeHisto__3->SetBinContent(11,0.1196449); tt_sr_treeHisto__3->SetBinError(1,0.1320539); tt_sr_treeHisto__3->SetBinError(2,0.2920512); tt_sr_treeHisto__3->SetBinError(3,0.2219949); tt_sr_treeHisto__3->SetBinError(4,0.1566993); tt_sr_treeHisto__3->SetBinError(5,0.1188238); tt_sr_treeHisto__3->SetBinError(6,0.0811981); tt_sr_treeHisto__3->SetBinError(7,0.07765126); tt_sr_treeHisto__3->SetBinError(8,0.03895166); tt_sr_treeHisto__3->SetBinError(9,0.01877581); tt_sr_treeHisto__3->SetBinError(10,0.04108322); tt_sr_treeHisto__3->SetBinError(11,0.06196303); tt_sr_treeHisto__3->SetEntries(21); ci = TColor::GetColor("#00ffff"); tt_sr_treeHisto__3->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); tt_sr_treeHisto__3->SetLineColor(ci); ci = TColor::GetColor("#00ffff"); tt_sr_treeHisto__3->SetMarkerColor(ci); tt_sr_treeHisto__3->SetMarkerStyle(20); tt_sr_treeHisto__3->GetXaxis()->SetTitle("MET [GeV]"); tt_sr_treeHisto__3->GetXaxis()->SetLabelFont(42); tt_sr_treeHisto__3->GetXaxis()->SetLabelOffset(0.007); tt_sr_treeHisto__3->GetXaxis()->SetTitleSize(0.05); tt_sr_treeHisto__3->GetXaxis()->SetTitleFont(42); tt_sr_treeHisto__3->GetYaxis()->SetTitle("Events / 40 GeV"); tt_sr_treeHisto__3->GetYaxis()->SetLabelFont(42); tt_sr_treeHisto__3->GetYaxis()->SetLabelOffset(0.007); tt_sr_treeHisto__3->GetYaxis()->SetTitleSize(0.05); tt_sr_treeHisto__3->GetYaxis()->SetTitleOffset(1.1); tt_sr_treeHisto__3->GetYaxis()->SetTitleFont(42); tt_sr_treeHisto__3->GetZaxis()->SetLabelFont(42); tt_sr_treeHisto__3->GetZaxis()->SetLabelOffset(0.007); tt_sr_treeHisto__3->GetZaxis()->SetTitleSize(0.05); tt_sr_treeHisto__3->GetZaxis()->SetTitleFont(42); stack_some->Add(tt_sr_treeHisto,""); stack_some->Draw("hist,same"); TH1F *sig_treeHisto__4 = new TH1F("sig_treeHisto__4","localProduction3",11,100,540); sig_treeHisto__4->SetBinContent(1,0.1955547); sig_treeHisto__4->SetBinContent(2,1.944399); sig_treeHisto__4->SetBinContent(3,1.151984); sig_treeHisto__4->SetBinContent(4,0.6541944); sig_treeHisto__4->SetBinContent(5,1.055599); sig_treeHisto__4->SetBinContent(6,0.8560644); sig_treeHisto__4->SetBinContent(7,0.5038052); sig_treeHisto__4->SetBinContent(9,0.4012403); sig_treeHisto__4->SetBinContent(11,0.1841864); sig_treeHisto__4->SetBinError(1,0.1955547); sig_treeHisto__4->SetBinError(2,0.5786302); sig_treeHisto__4->SetBinError(3,0.4139033); sig_treeHisto__4->SetBinError(4,0.3222176); sig_treeHisto__4->SetBinError(5,0.4098443); sig_treeHisto__4->SetBinError(6,0.4041107); sig_treeHisto__4->SetBinError(7,0.2913433); sig_treeHisto__4->SetBinError(9,0.2933238); sig_treeHisto__4->SetBinError(11,0.143272); sig_treeHisto__4->SetEntries(11); ci = TColor::GetColor("#0000ff"); sig_treeHisto__4->SetLineColor(ci); sig_treeHisto__4->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); sig_treeHisto__4->SetMarkerColor(ci); sig_treeHisto__4->SetMarkerStyle(20); sig_treeHisto__4->GetXaxis()->SetTitle("MET [GeV]"); sig_treeHisto__4->GetXaxis()->SetLabelFont(42); sig_treeHisto__4->GetXaxis()->SetLabelOffset(0.007); sig_treeHisto__4->GetXaxis()->SetTitleSize(0.05); sig_treeHisto__4->GetXaxis()->SetTitleFont(42); sig_treeHisto__4->GetYaxis()->SetTitle("Events / 40 GeV"); sig_treeHisto__4->GetYaxis()->SetLabelFont(42); sig_treeHisto__4->GetYaxis()->SetLabelOffset(0.007); sig_treeHisto__4->GetYaxis()->SetTitleSize(0.05); sig_treeHisto__4->GetYaxis()->SetTitleOffset(1.1); sig_treeHisto__4->GetYaxis()->SetTitleFont(42); sig_treeHisto__4->GetZaxis()->SetLabelFont(42); sig_treeHisto__4->GetZaxis()->SetLabelOffset(0.007); sig_treeHisto__4->GetZaxis()->SetTitleSize(0.05); sig_treeHisto__4->GetZaxis()->SetTitleFont(42); sig_treeHisto__4->Draw("HIST,SAME"); TLegend *leg = new TLegend(0.4,0.55,0.8,0.85,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("sig_treeHisto","Signal 10 GeV ( 6.9 +/- 1.1)","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_some_DYJets_blockHisto","DY+Jets ( 0.2)","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_some_rare_blockHisto","Other ( 0.2)","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_some_TTW_blockHisto","TTW ( 0.7)","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_some_singleT_blockHisto","singleT ( 1.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_some_ZZ_blockHisto","ZZ ( 0.0)","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("ttz_sr_treeHisto","TTZ ( 3.0)","F"); ci = TColor::GetColor("#ff0000"); 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("tt_sr_treeHisto","TT+Jets ( 4.5)","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,"Simulation"); 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/SR_data_driven->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(30.2439,-4.967054e-08,566.8293,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 *totalBkg_ratio__5 = new TH1F("totalBkg_ratio__5","",11,100,540); totalBkg_ratio__5->SetBinContent(1,1.560322); totalBkg_ratio__5->SetBinContent(2,2.09862); totalBkg_ratio__5->SetBinContent(3,2.13857); totalBkg_ratio__5->SetBinContent(4,2.297884); totalBkg_ratio__5->SetBinContent(5,4.333296); totalBkg_ratio__5->SetBinContent(6,5.539455); totalBkg_ratio__5->SetBinContent(7,4.454127); totalBkg_ratio__5->SetBinContent(8,1); totalBkg_ratio__5->SetBinContent(9,22.75475); totalBkg_ratio__5->SetBinContent(10,1); totalBkg_ratio__5->SetBinContent(11,2.539443); totalBkg_ratio__5->SetBinError(1,0.8975971); totalBkg_ratio__5->SetBinError(2,0.5040258); totalBkg_ratio__5->SetBinError(3,0.6600457); totalBkg_ratio__5->SetBinError(4,1.007784); totalBkg_ratio__5->SetBinError(5,2.111696); totalBkg_ratio__5->SetBinError(6,3.235138); totalBkg_ratio__5->SetBinError(7,3.145855); totalBkg_ratio__5->SetBinError(8,1.052971); totalBkg_ratio__5->SetBinError(9,28.11672); totalBkg_ratio__5->SetBinError(10,1.439671); totalBkg_ratio__5->SetBinError(11,1.852511); totalBkg_ratio__5->SetMinimum(0.5); totalBkg_ratio__5->SetMaximum(1.5); totalBkg_ratio__5->SetEntries(2.997864); ci = TColor::GetColor("#666699"); totalBkg_ratio__5->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); totalBkg_ratio__5->SetLineColor(ci); totalBkg_ratio__5->SetLineWidth(2); ci = TColor::GetColor("#00ffff"); totalBkg_ratio__5->SetMarkerColor(ci); totalBkg_ratio__5->SetMarkerStyle(20); totalBkg_ratio__5->SetMarkerSize(0); totalBkg_ratio__5->GetXaxis()->SetLabelFont(42); totalBkg_ratio__5->GetXaxis()->SetLabelOffset(0.007); totalBkg_ratio__5->GetXaxis()->SetLabelSize(0.12); totalBkg_ratio__5->GetXaxis()->SetTitleSize(0.14); totalBkg_ratio__5->GetXaxis()->SetTitleFont(42); totalBkg_ratio__5->GetYaxis()->SetTitle("Data/Pred"); totalBkg_ratio__5->GetYaxis()->CenterTitle(true); totalBkg_ratio__5->GetYaxis()->SetNdivisions(4); totalBkg_ratio__5->GetYaxis()->SetLabelFont(42); totalBkg_ratio__5->GetYaxis()->SetLabelOffset(0.007); totalBkg_ratio__5->GetYaxis()->SetLabelSize(0.12); totalBkg_ratio__5->GetYaxis()->SetTitleSize(0.14); totalBkg_ratio__5->GetYaxis()->SetTitleOffset(0.3); totalBkg_ratio__5->GetYaxis()->SetTitleFont(42); totalBkg_ratio__5->GetZaxis()->SetLabelFont(42); totalBkg_ratio__5->GetZaxis()->SetLabelOffset(0.007); totalBkg_ratio__5->GetZaxis()->SetTitleSize(0.05); totalBkg_ratio__5->GetZaxis()->SetTitleFont(42); totalBkg_ratio__5->Draw("P,E2,"); TH1F *totalBkg_ratio__6 = new TH1F("totalBkg_ratio__6","",11,100,540); totalBkg_ratio__6->SetBinContent(1,1.560322); totalBkg_ratio__6->SetBinContent(2,2.09862); totalBkg_ratio__6->SetBinContent(3,2.13857); totalBkg_ratio__6->SetBinContent(4,2.297884); totalBkg_ratio__6->SetBinContent(5,4.333296); totalBkg_ratio__6->SetBinContent(6,5.539455); totalBkg_ratio__6->SetBinContent(7,4.454127); totalBkg_ratio__6->SetBinContent(8,1); totalBkg_ratio__6->SetBinContent(9,22.75475); totalBkg_ratio__6->SetBinContent(10,1); totalBkg_ratio__6->SetBinContent(11,2.539443); totalBkg_ratio__6->SetBinError(1,0.8975971); totalBkg_ratio__6->SetBinError(2,0.5040258); totalBkg_ratio__6->SetBinError(3,0.6600457); totalBkg_ratio__6->SetBinError(4,1.007784); totalBkg_ratio__6->SetBinError(5,2.111696); totalBkg_ratio__6->SetBinError(6,3.235138); totalBkg_ratio__6->SetBinError(7,3.145855); totalBkg_ratio__6->SetBinError(8,1.052971); totalBkg_ratio__6->SetBinError(9,28.11672); totalBkg_ratio__6->SetBinError(10,1.439671); totalBkg_ratio__6->SetBinError(11,1.852511); totalBkg_ratio__6->SetMinimum(0.5); totalBkg_ratio__6->SetMaximum(1.5); totalBkg_ratio__6->SetEntries(2.997864); ci = TColor::GetColor("#666699"); totalBkg_ratio__6->SetFillColor(ci); ci = TColor::GetColor("#00ffff"); totalBkg_ratio__6->SetLineColor(ci); totalBkg_ratio__6->SetLineWidth(2); ci = TColor::GetColor("#00ffff"); totalBkg_ratio__6->SetMarkerColor(ci); totalBkg_ratio__6->SetMarkerStyle(20); totalBkg_ratio__6->SetMarkerSize(0); totalBkg_ratio__6->GetXaxis()->SetLabelFont(42); totalBkg_ratio__6->GetXaxis()->SetLabelOffset(0.007); totalBkg_ratio__6->GetXaxis()->SetLabelSize(0.12); totalBkg_ratio__6->GetXaxis()->SetTitleSize(0.14); totalBkg_ratio__6->GetXaxis()->SetTitleFont(42); totalBkg_ratio__6->GetYaxis()->SetTitle("Data/Pred"); totalBkg_ratio__6->GetYaxis()->CenterTitle(true); totalBkg_ratio__6->GetYaxis()->SetNdivisions(4); totalBkg_ratio__6->GetYaxis()->SetLabelFont(42); totalBkg_ratio__6->GetYaxis()->SetLabelOffset(0.007); totalBkg_ratio__6->GetYaxis()->SetLabelSize(0.12); totalBkg_ratio__6->GetYaxis()->SetTitleSize(0.14); totalBkg_ratio__6->GetYaxis()->SetTitleOffset(0.3); totalBkg_ratio__6->GetYaxis()->SetTitleFont(42); totalBkg_ratio__6->GetZaxis()->SetLabelFont(42); totalBkg_ratio__6->GetZaxis()->SetLabelOffset(0.007); totalBkg_ratio__6->GetZaxis()->SetTitleSize(0.05); totalBkg_ratio__6->GetZaxis()->SetTitleFont(42); totalBkg_ratio__6->Draw("P,same"); TLine *line = new TLine(100,1,540,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); DMStuff/SR_data_driven->cd(); DMStuff/SR_data_driven->Modified(); DMStuff/SR_data_driven->cd(); DMStuff/SR_data_driven->SetSelected(DMStuff/SR_data_driven); }