void stack_3jets_HT_OF_Central() { //=========Macro generated from canvas: finalPlots/stack_3jets_HT_OF_Central/finalPlots/stack_3jets_HT_OF_Central //========= (Thu Apr 28 11:08:32 2016) by ROOT version6.02/05 TCanvas *finalPlots/stack_3jets_HT_OF_Central = new TCanvas("finalPlots/stack_3jets_HT_OF_Central", "finalPlots/stack_3jets_HT_OF_Central",0,0,600,600); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/stack_3jets_HT_OF_Central->SetHighLightColor(2); finalPlots/stack_3jets_HT_OF_Central->Range(0,0,1,1); finalPlots/stack_3jets_HT_OF_Central->SetFillColor(0); finalPlots/stack_3jets_HT_OF_Central->SetBorderMode(0); finalPlots/stack_3jets_HT_OF_Central->SetBorderSize(2); finalPlots/stack_3jets_HT_OF_Central->SetTickx(1); finalPlots/stack_3jets_HT_OF_Central->SetTicky(1); finalPlots/stack_3jets_HT_OF_Central->SetLeftMargin(0.13); finalPlots/stack_3jets_HT_OF_Central->SetRightMargin(0.05); finalPlots/stack_3jets_HT_OF_Central->SetTopMargin(0.08); finalPlots/stack_3jets_HT_OF_Central->SetBottomMargin(0.13); finalPlots/stack_3jets_HT_OF_Central->SetFrameFillStyle(0); finalPlots/stack_3jets_HT_OF_Central->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-395.1219,-2.110295,336.5854,2.282461); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetLogy(); 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_3jets_HT_OFCentral = new THStack(); stack_3jets_HT_OFCentral->SetName("stack_3jets_HT_OFCentral"); stack_3jets_HT_OFCentral->SetTitle(""); TH1F *stack_3jets_HT_OFCentral_stack_8 = new TH1F("stack_3jets_HT_OFCentral_stack_8","",50,-300,300); stack_3jets_HT_OFCentral_stack_8->SetMinimum(0.02132952); stack_3jets_HT_OFCentral_stack_8->SetMaximum(85.31807); stack_3jets_HT_OFCentral_stack_8->SetDirectory(0); stack_3jets_HT_OFCentral_stack_8->SetStats(0); stack_3jets_HT_OFCentral_stack_8->SetMarkerStyle(20); stack_3jets_HT_OFCentral_stack_8->GetXaxis()->SetTitle("JZB [GeV]"); stack_3jets_HT_OFCentral_stack_8->GetXaxis()->SetLabelFont(42); stack_3jets_HT_OFCentral_stack_8->GetXaxis()->SetLabelOffset(0.007); stack_3jets_HT_OFCentral_stack_8->GetXaxis()->SetTitleSize(0.05); stack_3jets_HT_OFCentral_stack_8->GetXaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetTitle("Events / 12 GeV"); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetLabelFont(42); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetLabelOffset(0.007); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetTitleSize(0.05); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetTitleOffset(1.1); stack_3jets_HT_OFCentral_stack_8->GetYaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral_stack_8->GetZaxis()->SetLabelFont(42); stack_3jets_HT_OFCentral_stack_8->GetZaxis()->SetLabelOffset(0.007); stack_3jets_HT_OFCentral_stack_8->GetZaxis()->SetTitleSize(0.05); stack_3jets_HT_OFCentral_stack_8->GetZaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral->SetHistogram(stack_3jets_HT_OFCentral_stack_8); TH1F *auxStack_block_stack_3jets_HT_OFCentral_TTJets = new TH1F("auxStack_block_stack_3jets_HT_OFCentral_TTJets","TTLep_pow",50,-300,300); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(14,0.03412843); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(15,0.01623632); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(16,0.01722497); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(17,0.3405046); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(18,0.9819239); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(19,3.381709); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(20,5.098015); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(21,10.55963); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(22,19.91085); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(23,26.29584); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(24,34.32898); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(25,42.33832); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(26,47.45095); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(27,50.72921); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(28,52.62711); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(29,48.04063); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(30,43.612); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(31,38.29975); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(32,33.53018); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(33,26.52644); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(34,18.83907); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(35,17.80026); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(36,14.94727); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(37,9.7494); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(38,8.141741); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(39,6.634678); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(40,5.679332); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(41,4.162535); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(42,2.147515); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(43,2.133871); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(44,1.756051); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(45,1.470726); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(46,1.981676); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(47,1.633744); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(48,0.6700177); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(49,0.5447889); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(50,0.7955878); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinContent(51,3.397583); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(14,0.03412843); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(15,0.01623632); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(16,0.0162608); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(17,0.1754047); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(18,0.3208926); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(19,0.5792641); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(20,0.6702487); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(21,1.008099); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(22,1.392163); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(23,1.56801); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(24,1.835201); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(25,2.026285); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(26,2.133993); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(27,2.211489); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(28,2.231406); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(29,2.148626); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(30,2.039675); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(31,1.931876); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(32,1.779549); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(33,1.615684); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(34,1.317631); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(35,1.294386); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(36,1.217865); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(37,0.9363626); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(38,0.9081089); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(39,0.795988); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(40,0.7268768); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(41,0.6357861); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(42,0.425748); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(43,0.4277773); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(44,0.4040342); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(45,0.3766982); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(46,0.4573294); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(47,0.3954622); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(48,0.2446177); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(49,0.2087919); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(50,0.2881777); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetBinError(51,0.5873857); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetEntries(14451); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetDirectory(0); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetFillColor(ci); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetLineColor(ci); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetMarkerColor(ci); auxStack_block_stack_3jets_HT_OFCentral_TTJets->SetMarkerStyle(20); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetXaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetXaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetZaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_TTJets->GetZaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral->Add(auxStack_block_stack_3jets_HT_OFCentral_TTJets,""); TH1F *auxStack_block_stack_3jets_HT_OFCentral_DYJets = new TH1F("auxStack_block_stack_3jets_HT_OFCentral_DYJets","DYJetsToLL_M50_HT100to200",50,-300,300); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(17,0.05128829); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(22,0.01277506); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(23,9.026186e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(24,0.03792479); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(25,0.04261112); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(26,0.007263062); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(27,0.03227147); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(28,0.3229139); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(29,0.04399363); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(30,0.4173439); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(31,0.0003324645); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(32,0.03312913); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(33,3.008729e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(34,0.02265723); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(39,0.0001375686); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(40,0.009614239); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(42,9.026186e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(44,0.002178452); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(49,3.17466e-05); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinContent(51,0.0004625043); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(17,0.05128829); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(22,0.01277506); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(23,9.026186e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(24,0.02514571); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(25,0.04150843); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(26,0.005975046); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(27,0.02452145); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(28,0.3228417); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(29,0.04396505); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(30,0.4148367); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(31,0.0003324645); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(32,0.02190619); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(33,3.008728e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(34,0.02265723); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(39,0.0001375686); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(40,0.009378252); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(42,9.026186e-06); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(44,0.001540926); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(49,3.17466e-05); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetBinError(51,0.0004625043); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetEntries(36); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetDirectory(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000cc"); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetFillColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetLineColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetMarkerColor(ci); auxStack_block_stack_3jets_HT_OFCentral_DYJets->SetMarkerStyle(20); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetXaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetXaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetZaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_DYJets->GetZaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral->Add(auxStack_block_stack_3jets_HT_OFCentral_DYJets,""); TH1F *auxStack_block_stack_3jets_HT_OFCentral_rare = new TH1F("auxStack_block_stack_3jets_HT_OFCentral_rare","WWTo2L2Nu",50,-300,300); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(20,-0.07320828); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(21,0.02140264); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(22,0.04220805); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(23,0.1273696); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(24,0.04060397); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(25,0.07941115); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(26,0.09065063); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(27,0.1904135); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(28,0.3737634); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(29,0.1997366); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(30,0.4654731); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(31,0.2727031); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(32,0.2562495); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(33,0.0579803); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(34,0.26154); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(35,0.0448331); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(36,0.1536242); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(37,0.249405); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(38,0.09201051); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(39,0.0899099); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(40,0.08529527); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(41,0.1083241); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(42,0.02680077); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(43,0.04741132); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(44,-1.502993e-05); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(45,0.006311692); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(47,0.04381849); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(48,0.0500854); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(50,0.002565388); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinContent(51,0.1221737); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(20,0.07320828); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(21,0.02127261); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(22,0.0416571); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(23,0.08349163); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(24,0.08894247); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(25,0.04545443); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(26,0.0571069); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(27,0.1083408); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(28,0.1761895); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(29,0.08508138); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(30,0.1730177); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(31,0.1088412); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(32,0.1062964); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(33,0.1119202); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(34,0.09795005); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(35,0.1079769); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(36,0.1220628); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(37,0.09811717); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(38,0.05647384); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(39,0.05813484); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(40,0.05478614); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(41,0.07815664); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(42,0.01728901); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(43,0.0304917); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(44,1.502993e-05); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(45,0.005784641); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(47,0.03879979); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(48,0.03439993); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(50,0.001841388); auxStack_block_stack_3jets_HT_OFCentral_rare->SetBinError(51,0.06044568); auxStack_block_stack_3jets_HT_OFCentral_rare->SetEntries(489); auxStack_block_stack_3jets_HT_OFCentral_rare->SetDirectory(0); ci = TColor::GetColor("#990000"); auxStack_block_stack_3jets_HT_OFCentral_rare->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_3jets_HT_OFCentral_rare->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_3jets_HT_OFCentral_rare->SetMarkerColor(ci); auxStack_block_stack_3jets_HT_OFCentral_rare->SetMarkerStyle(20); auxStack_block_stack_3jets_HT_OFCentral_rare->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_3jets_HT_OFCentral_rare->GetXaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_rare->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_rare->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_rare->GetXaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_3jets_HT_OFCentral_rare->GetYaxis()->SetTitleFont(42); auxStack_block_stack_3jets_HT_OFCentral_rare->GetZaxis()->SetLabelFont(42); auxStack_block_stack_3jets_HT_OFCentral_rare->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_3jets_HT_OFCentral_rare->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_3jets_HT_OFCentral_rare->GetZaxis()->SetTitleFont(42); stack_3jets_HT_OFCentral->Add(auxStack_block_stack_3jets_HT_OFCentral_rare,""); stack_3jets_HT_OFCentral->Draw("hist"); TH1F *histoDA_3jets_HT_OFCentral15 = new TH1F("histoDA_3jets_HT_OFCentral15","",51,-300,312); histoDA_3jets_HT_OFCentral15->SetBinContent(13,1); histoDA_3jets_HT_OFCentral15->SetBinContent(18,1); histoDA_3jets_HT_OFCentral15->SetBinContent(20,8); histoDA_3jets_HT_OFCentral15->SetBinContent(21,12); histoDA_3jets_HT_OFCentral15->SetBinContent(22,19); histoDA_3jets_HT_OFCentral15->SetBinContent(23,27); histoDA_3jets_HT_OFCentral15->SetBinContent(24,34); histoDA_3jets_HT_OFCentral15->SetBinContent(25,33); histoDA_3jets_HT_OFCentral15->SetBinContent(26,39); histoDA_3jets_HT_OFCentral15->SetBinContent(27,51); histoDA_3jets_HT_OFCentral15->SetBinContent(28,37); histoDA_3jets_HT_OFCentral15->SetBinContent(29,49); histoDA_3jets_HT_OFCentral15->SetBinContent(30,34); histoDA_3jets_HT_OFCentral15->SetBinContent(31,31); histoDA_3jets_HT_OFCentral15->SetBinContent(32,34); histoDA_3jets_HT_OFCentral15->SetBinContent(33,23); histoDA_3jets_HT_OFCentral15->SetBinContent(34,19); histoDA_3jets_HT_OFCentral15->SetBinContent(35,17); histoDA_3jets_HT_OFCentral15->SetBinContent(36,15); histoDA_3jets_HT_OFCentral15->SetBinContent(37,9); histoDA_3jets_HT_OFCentral15->SetBinContent(38,2); histoDA_3jets_HT_OFCentral15->SetBinContent(39,2); histoDA_3jets_HT_OFCentral15->SetBinContent(40,8); histoDA_3jets_HT_OFCentral15->SetBinContent(41,3); histoDA_3jets_HT_OFCentral15->SetBinContent(44,3); histoDA_3jets_HT_OFCentral15->SetBinContent(45,1); histoDA_3jets_HT_OFCentral15->SetBinContent(48,1); histoDA_3jets_HT_OFCentral15->SetBinContent(49,2); histoDA_3jets_HT_OFCentral15->SetBinContent(51,2); histoDA_3jets_HT_OFCentral15->SetBinError(13,1); histoDA_3jets_HT_OFCentral15->SetBinError(18,1); histoDA_3jets_HT_OFCentral15->SetBinError(20,2.828427); histoDA_3jets_HT_OFCentral15->SetBinError(21,3.464102); histoDA_3jets_HT_OFCentral15->SetBinError(22,4.358899); histoDA_3jets_HT_OFCentral15->SetBinError(23,5.196152); histoDA_3jets_HT_OFCentral15->SetBinError(24,5.830952); histoDA_3jets_HT_OFCentral15->SetBinError(25,5.744563); histoDA_3jets_HT_OFCentral15->SetBinError(26,6.244998); histoDA_3jets_HT_OFCentral15->SetBinError(27,7.141428); histoDA_3jets_HT_OFCentral15->SetBinError(28,6.082763); histoDA_3jets_HT_OFCentral15->SetBinError(29,7); histoDA_3jets_HT_OFCentral15->SetBinError(30,5.830952); histoDA_3jets_HT_OFCentral15->SetBinError(31,5.567764); histoDA_3jets_HT_OFCentral15->SetBinError(32,5.830952); histoDA_3jets_HT_OFCentral15->SetBinError(33,4.795832); histoDA_3jets_HT_OFCentral15->SetBinError(34,4.358899); histoDA_3jets_HT_OFCentral15->SetBinError(35,4.123106); histoDA_3jets_HT_OFCentral15->SetBinError(36,3.872983); histoDA_3jets_HT_OFCentral15->SetBinError(37,3); histoDA_3jets_HT_OFCentral15->SetBinError(38,1.414214); histoDA_3jets_HT_OFCentral15->SetBinError(39,1.414214); histoDA_3jets_HT_OFCentral15->SetBinError(40,2.828427); histoDA_3jets_HT_OFCentral15->SetBinError(41,1.732051); histoDA_3jets_HT_OFCentral15->SetBinError(44,1.732051); histoDA_3jets_HT_OFCentral15->SetBinError(45,1); histoDA_3jets_HT_OFCentral15->SetBinError(48,1); histoDA_3jets_HT_OFCentral15->SetBinError(49,1.414214); histoDA_3jets_HT_OFCentral15->SetBinError(51,1.414214); histoDA_3jets_HT_OFCentral15->SetEntries(51); histoDA_3jets_HT_OFCentral15->SetDirectory(0); histoDA_3jets_HT_OFCentral15->SetMarkerStyle(20); histoDA_3jets_HT_OFCentral15->GetXaxis()->SetTitle("JZB [GeV]"); histoDA_3jets_HT_OFCentral15->GetXaxis()->SetLabelFont(42); histoDA_3jets_HT_OFCentral15->GetXaxis()->SetLabelOffset(0.007); histoDA_3jets_HT_OFCentral15->GetXaxis()->SetTitleSize(0.05); histoDA_3jets_HT_OFCentral15->GetXaxis()->SetTitleFont(42); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetTitle("Events / 12 GeV"); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetLabelFont(42); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetLabelOffset(0.007); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetTitleSize(0.05); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetTitleOffset(1.1); histoDA_3jets_HT_OFCentral15->GetYaxis()->SetTitleFont(42); histoDA_3jets_HT_OFCentral15->GetZaxis()->SetLabelFont(42); histoDA_3jets_HT_OFCentral15->GetZaxis()->SetLabelOffset(0.007); histoDA_3jets_HT_OFCentral15->GetZaxis()->SetTitleSize(0.05); histoDA_3jets_HT_OFCentral15->GetZaxis()->SetTitleFont(42); histoDA_3jets_HT_OFCentral15->Draw("SAME"); TLegend *leg = new TLegend(0.2,0.6,0.4,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("auxStack_block_stack_3jets_HT_OFCentral_TTJets","t#bar{t}","F"); entry->SetFillColor(ci); entry->SetFillStyle(1001); 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_3jets_HT_OFCentral_DYJets","Drell-Yan","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("histoDA_3jets_HT_OFCentral","Data",""); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("auxStack_block_stack_3jets_HT_OFCentral_rare","Rare","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); leg->Draw(); TLatex * tex = new TLatex(0.21,0.93,"CMS"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.33,0.93,"Preliminary"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetTextSize(0.03); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.9,0.93,"2.3 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); finalPlots/stack_3jets_HT_OF_Central->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-397.0244,-1,349.3171,2.333333); 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 *histoMC_3jets_HT_OFCentral_ratio16 = new TH1F("histoMC_3jets_HT_OFCentral_ratio16","",51,-300,312); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(18,1.018409); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(20,1.592101); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(21,1.134105); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(22,0.9516256); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(23,1.021829); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(24,0.9881565); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(25,0.7771959); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(26,0.8202088); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(27,1.000944); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(28,0.6938741); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(29,1.014821); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(30,0.764134); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(31,0.8036755); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(32,1.005335); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(33,0.8651684); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(34,0.9935542); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(35,0.9526429); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(36,0.9933189); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(37,0.9001076); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(38,0.2429027); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(39,0.2974099); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(40,1.385463); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(41,0.7024348); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(44,1.706277); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(45,0.6770309); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(48,1.38869); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(49,3.670933); histoMC_3jets_HT_OFCentral_ratio16->SetBinContent(51,0.5681464); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(18,1.071412); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(20,0.6020681); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(21,0.3447651); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(22,0.2281883); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(23,0.2058129); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(24,0.177494); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(25,0.1402887); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(26,0.1364032); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(27,0.1467551); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(28,0.1178069); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(29,0.1518584); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(30,0.135868); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(31,0.1498686); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(32,0.1803752); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(33,0.1879421); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(34,0.2380526); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(35,0.2412302); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(36,0.2688138); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(37,0.3117768); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(38,0.1738428); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(39,0.2132422); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(40,0.5201287); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(41,0.4190124); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(44,1.060285); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(45,0.6987073); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(48,1.468126); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(49,2.952456); histoMC_3jets_HT_OFCentral_ratio16->SetBinError(51,0.4128894); histoMC_3jets_HT_OFCentral_ratio16->SetMinimum(0); histoMC_3jets_HT_OFCentral_ratio16->SetMaximum(2); histoMC_3jets_HT_OFCentral_ratio16->SetEntries(54.27091); histoMC_3jets_HT_OFCentral_ratio16->SetMarkerStyle(20); histoMC_3jets_HT_OFCentral_ratio16->GetXaxis()->SetLabelFont(42); histoMC_3jets_HT_OFCentral_ratio16->GetXaxis()->SetLabelOffset(0.007); histoMC_3jets_HT_OFCentral_ratio16->GetXaxis()->SetLabelSize(0.12); histoMC_3jets_HT_OFCentral_ratio16->GetXaxis()->SetTitleSize(0.14); histoMC_3jets_HT_OFCentral_ratio16->GetXaxis()->SetTitleFont(42); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetTitle("Ratio"); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->CenterTitle(true); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetNdivisions(4); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetLabelFont(42); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetLabelOffset(0.007); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetLabelSize(0.12); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetTitleSize(0.14); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetTitleOffset(0.3); histoMC_3jets_HT_OFCentral_ratio16->GetYaxis()->SetTitleFont(42); histoMC_3jets_HT_OFCentral_ratio16->GetZaxis()->SetLabelFont(42); histoMC_3jets_HT_OFCentral_ratio16->GetZaxis()->SetLabelOffset(0.007); histoMC_3jets_HT_OFCentral_ratio16->GetZaxis()->SetTitleSize(0.05); histoMC_3jets_HT_OFCentral_ratio16->GetZaxis()->SetTitleFont(42); histoMC_3jets_HT_OFCentral_ratio16->Draw("l, "); TLine *line = new TLine(-300,1,312,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); finalPlots/stack_3jets_HT_OF_Central->cd(); finalPlots/stack_3jets_HT_OF_Central->Modified(); finalPlots/stack_3jets_HT_OF_Central->cd(); finalPlots/stack_3jets_HT_OF_Central->SetSelected(finalPlots/stack_3jets_HT_OF_Central); }