void stack_2jets_HT_OF_Central() { //=========Macro generated from canvas: finalPlots/stack_2jets_HT_OF_Central/finalPlots/stack_2jets_HT_OF_Central //========= (Thu Apr 28 11:08:32 2016) by ROOT version6.02/05 TCanvas *finalPlots/stack_2jets_HT_OF_Central = new TCanvas("finalPlots/stack_2jets_HT_OF_Central", "finalPlots/stack_2jets_HT_OF_Central",0,0,600,600); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/stack_2jets_HT_OF_Central->SetHighLightColor(2); finalPlots/stack_2jets_HT_OF_Central->Range(0,0,1,1); finalPlots/stack_2jets_HT_OF_Central->SetFillColor(0); finalPlots/stack_2jets_HT_OF_Central->SetBorderMode(0); finalPlots/stack_2jets_HT_OF_Central->SetBorderSize(2); finalPlots/stack_2jets_HT_OF_Central->SetTickx(1); finalPlots/stack_2jets_HT_OF_Central->SetTicky(1); finalPlots/stack_2jets_HT_OF_Central->SetLeftMargin(0.13); finalPlots/stack_2jets_HT_OF_Central->SetRightMargin(0.05); finalPlots/stack_2jets_HT_OF_Central->SetTopMargin(0.08); finalPlots/stack_2jets_HT_OF_Central->SetBottomMargin(0.13); finalPlots/stack_2jets_HT_OF_Central->SetFrameFillStyle(0); finalPlots/stack_2jets_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,-1.880511,336.5854,2.512246); 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_2jets_HT_OFCentral = new THStack(); stack_2jets_HT_OFCentral->SetName("stack_2jets_HT_OFCentral"); stack_2jets_HT_OFCentral->SetTitle(""); TH1F *stack_2jets_HT_OFCentral_stack_2 = new TH1F("stack_2jets_HT_OFCentral_stack_2","",50,-300,300); stack_2jets_HT_OFCentral_stack_2->SetMinimum(0.03620471); stack_2jets_HT_OFCentral_stack_2->SetMaximum(144.8188); stack_2jets_HT_OFCentral_stack_2->SetDirectory(0); stack_2jets_HT_OFCentral_stack_2->SetStats(0); stack_2jets_HT_OFCentral_stack_2->SetMarkerStyle(20); stack_2jets_HT_OFCentral_stack_2->GetXaxis()->SetTitle("JZB [GeV]"); stack_2jets_HT_OFCentral_stack_2->GetXaxis()->SetLabelFont(42); stack_2jets_HT_OFCentral_stack_2->GetXaxis()->SetLabelOffset(0.007); stack_2jets_HT_OFCentral_stack_2->GetXaxis()->SetTitleSize(0.05); stack_2jets_HT_OFCentral_stack_2->GetXaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetTitle("Events / 12 GeV"); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetLabelFont(42); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetLabelOffset(0.007); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetTitleSize(0.05); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetTitleOffset(1.1); stack_2jets_HT_OFCentral_stack_2->GetYaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral_stack_2->GetZaxis()->SetLabelFont(42); stack_2jets_HT_OFCentral_stack_2->GetZaxis()->SetLabelOffset(0.007); stack_2jets_HT_OFCentral_stack_2->GetZaxis()->SetTitleSize(0.05); stack_2jets_HT_OFCentral_stack_2->GetZaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral->SetHistogram(stack_2jets_HT_OFCentral_stack_2); TH1F *auxStack_block_stack_2jets_HT_OFCentral_TTJets = new TH1F("auxStack_block_stack_2jets_HT_OFCentral_TTJets","TTLep_pow",50,-300,300); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(14,0.0008881752); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(15,0.02102282); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(16,0.4349607); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(17,0.5586863); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(18,1.544497); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(19,4.647543); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(20,11.50238); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(21,22.25392); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(22,34.73948); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(23,50.72189); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(24,62.65955); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(25,74.13071); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(26,87.60751); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(27,89.0672); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(28,84.85744); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(29,75.18452); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(30,67.44952); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(31,51.21817); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(32,40.48602); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(33,34.99029); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(34,23.52273); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(35,17.68254); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(36,13.42258); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(37,6.583752); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(38,3.513002); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(39,3.085179); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(40,2.581082); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(41,2.157225); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(42,1.16494); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(43,0.6242505); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(44,0.4377658); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(45,0.3955233); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(46,0.1845797); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(47,0.2650057); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(48,0.04026528); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(49,0.1342109); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(50,0.2663159); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinContent(51,0.669021); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(14,0.0008881752); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(15,0.01655636); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(16,0.2086094); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(17,0.2266711); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(18,0.390497); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(19,0.6622162); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(20,1.055611); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(21,1.485621); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(22,1.828784); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(23,2.223472); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(24,2.453395); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(25,2.879348); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(26,2.917403); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(27,2.916498); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(28,2.849513); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(29,2.686728); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(30,2.551569); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(31,2.215574); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(32,1.970995); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(33,1.860827); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(34,1.509845); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(35,1.304853); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(36,1.137189); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(37,0.8049404); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(38,0.5456519); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(39,0.5275811); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(40,0.4838231); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(41,0.4420611); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(42,0.3290758); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(43,0.2390073); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(44,0.195801); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(45,0.1906696); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(46,0.1098073); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(47,0.1864524); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(48,0.02397017); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(49,0.1266348); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(50,0.1769949); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetBinError(51,0.258946); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetEntries(21458); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetDirectory(0); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetFillColor(ci); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetLineColor(ci); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetMarkerColor(ci); auxStack_block_stack_2jets_HT_OFCentral_TTJets->SetMarkerStyle(20); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetXaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetXaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetYaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetZaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_TTJets->GetZaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral->Add(auxStack_block_stack_2jets_HT_OFCentral_TTJets,""); TH1F *auxStack_block_stack_2jets_HT_OFCentral_DYJets = new TH1F("auxStack_block_stack_2jets_HT_OFCentral_DYJets","DYJetsToLL_M50_HT100to200",50,-300,300); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(22,0.0001745063); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(23,0.3479641); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(24,0.02606929); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(25,0.264501); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(26,1.2574); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(27,0.6543606); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(28,0.4660496); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(29,0.02972588); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(30,0.5089172); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(31,0.02218709); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(32,0.4907238); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(33,0.04079084); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(34,0.01687861); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(35,0.01277506); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(36,0.1853997); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(44,0.0003324645); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(46,3.17466e-05); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinContent(51,0.03365781); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(22,0.0001745063); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(23,0.3479642); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(24,0.02606929); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(25,0.2627323); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(26,0.7170048); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(27,0.5375276); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(28,0.4161674); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(29,0.02116825); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(30,0.4513615); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(31,0.02033422); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(32,0.4814399); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(33,0.04079084); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(34,0.01687861); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(35,0.01277506); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(36,0.1794251); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(44,0.0003324645); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(46,3.17466e-05); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetBinError(51,0.03319852); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetEntries(42); auxStack_block_stack_2jets_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_2jets_HT_OFCentral_DYJets->SetFillColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetLineColor(ci); ci = TColor::GetColor("#0000cc"); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetMarkerColor(ci); auxStack_block_stack_2jets_HT_OFCentral_DYJets->SetMarkerStyle(20); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetXaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetXaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetYaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetZaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_DYJets->GetZaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral->Add(auxStack_block_stack_2jets_HT_OFCentral_DYJets,""); TH1F *auxStack_block_stack_2jets_HT_OFCentral_rare = new TH1F("auxStack_block_stack_2jets_HT_OFCentral_rare","WWTo2L2Nu",50,-300,300); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(15,0.04859172); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(20,0.06644058); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(21,0.07494732); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(22,0.2339837); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(23,0.417019); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(24,0.6568254); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(25,0.3757596); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(26,0.9518522); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(27,0.7902175); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(28,1.110859); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(29,0.9377947); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(30,0.7761007); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(31,1.27244); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(32,0.6266407); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(33,0.6468465); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(34,0.6144608); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(35,0.4231766); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(36,0.2760903); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(37,0.2925799); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(38,0.08093548); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(39,0.1648165); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(40,0.08914599); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(41,0.1419624); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(42,0.05175946); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(43,0.03928613); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(44,0.1116928); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(45,0.001058975); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(46,0.07603101); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(47,0.1080338); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(48,0.02427947); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(49,0.002122961); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(50,0.0319973); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinContent(51,0.03572536); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(15,0.04859172); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(20,0.04684601); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(21,0.1057806); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(22,0.09127774); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(23,0.1394112); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(24,0.2099055); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(25,0.1962206); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(26,0.2457582); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(27,0.2383009); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(28,0.250036); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(29,0.2394756); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(30,0.2517939); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(31,0.2358011); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(32,0.2056499); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(33,0.1843446); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(34,0.1634758); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(35,0.1246565); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(36,0.1551651); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(37,0.09756536); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(38,0.1065722); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(39,0.1264164); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(40,0.04946389); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(41,0.06806838); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(42,0.03099725); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(43,0.02111099); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(44,0.06866403); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(45,0.001058975); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(46,0.04609906); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(47,0.06316017); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(48,0.01711693); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(49,0.001497626); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(50,0.03145476); auxStack_block_stack_2jets_HT_OFCentral_rare->SetBinError(51,0.03156327); auxStack_block_stack_2jets_HT_OFCentral_rare->SetEntries(1237); auxStack_block_stack_2jets_HT_OFCentral_rare->SetDirectory(0); ci = TColor::GetColor("#990000"); auxStack_block_stack_2jets_HT_OFCentral_rare->SetFillColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_2jets_HT_OFCentral_rare->SetLineColor(ci); ci = TColor::GetColor("#990000"); auxStack_block_stack_2jets_HT_OFCentral_rare->SetMarkerColor(ci); auxStack_block_stack_2jets_HT_OFCentral_rare->SetMarkerStyle(20); auxStack_block_stack_2jets_HT_OFCentral_rare->GetXaxis()->SetTitle("JZB [GeV]"); auxStack_block_stack_2jets_HT_OFCentral_rare->GetXaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_rare->GetXaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_rare->GetXaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_rare->GetXaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetTitle("Events / 12 GeV"); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetTitleOffset(1.1); auxStack_block_stack_2jets_HT_OFCentral_rare->GetYaxis()->SetTitleFont(42); auxStack_block_stack_2jets_HT_OFCentral_rare->GetZaxis()->SetLabelFont(42); auxStack_block_stack_2jets_HT_OFCentral_rare->GetZaxis()->SetLabelOffset(0.007); auxStack_block_stack_2jets_HT_OFCentral_rare->GetZaxis()->SetTitleSize(0.05); auxStack_block_stack_2jets_HT_OFCentral_rare->GetZaxis()->SetTitleFont(42); stack_2jets_HT_OFCentral->Add(auxStack_block_stack_2jets_HT_OFCentral_rare,""); stack_2jets_HT_OFCentral->Draw("hist"); TH1F *histoDA_2jets_HT_OFCentral3 = new TH1F("histoDA_2jets_HT_OFCentral3","",51,-300,312); histoDA_2jets_HT_OFCentral3->SetBinContent(14,1); histoDA_2jets_HT_OFCentral3->SetBinContent(17,1); histoDA_2jets_HT_OFCentral3->SetBinContent(18,5); histoDA_2jets_HT_OFCentral3->SetBinContent(19,5); histoDA_2jets_HT_OFCentral3->SetBinContent(20,6); histoDA_2jets_HT_OFCentral3->SetBinContent(21,18); histoDA_2jets_HT_OFCentral3->SetBinContent(22,31); histoDA_2jets_HT_OFCentral3->SetBinContent(23,39); histoDA_2jets_HT_OFCentral3->SetBinContent(24,78); histoDA_2jets_HT_OFCentral3->SetBinContent(25,82); histoDA_2jets_HT_OFCentral3->SetBinContent(26,107); histoDA_2jets_HT_OFCentral3->SetBinContent(27,73); histoDA_2jets_HT_OFCentral3->SetBinContent(28,92); histoDA_2jets_HT_OFCentral3->SetBinContent(29,82); histoDA_2jets_HT_OFCentral3->SetBinContent(30,59); histoDA_2jets_HT_OFCentral3->SetBinContent(31,53); histoDA_2jets_HT_OFCentral3->SetBinContent(32,44); histoDA_2jets_HT_OFCentral3->SetBinContent(33,35); histoDA_2jets_HT_OFCentral3->SetBinContent(34,22); histoDA_2jets_HT_OFCentral3->SetBinContent(35,16); histoDA_2jets_HT_OFCentral3->SetBinContent(36,7); histoDA_2jets_HT_OFCentral3->SetBinContent(37,9); histoDA_2jets_HT_OFCentral3->SetBinContent(38,8); histoDA_2jets_HT_OFCentral3->SetBinContent(39,2); histoDA_2jets_HT_OFCentral3->SetBinContent(40,3); histoDA_2jets_HT_OFCentral3->SetBinContent(41,4); histoDA_2jets_HT_OFCentral3->SetBinContent(43,1); histoDA_2jets_HT_OFCentral3->SetBinContent(44,3); histoDA_2jets_HT_OFCentral3->SetBinContent(47,1); histoDA_2jets_HT_OFCentral3->SetBinContent(51,1); histoDA_2jets_HT_OFCentral3->SetBinError(14,1); histoDA_2jets_HT_OFCentral3->SetBinError(17,1); histoDA_2jets_HT_OFCentral3->SetBinError(18,2.236068); histoDA_2jets_HT_OFCentral3->SetBinError(19,2.236068); histoDA_2jets_HT_OFCentral3->SetBinError(20,2.44949); histoDA_2jets_HT_OFCentral3->SetBinError(21,4.242641); histoDA_2jets_HT_OFCentral3->SetBinError(22,5.567764); histoDA_2jets_HT_OFCentral3->SetBinError(23,6.244998); histoDA_2jets_HT_OFCentral3->SetBinError(24,8.831761); histoDA_2jets_HT_OFCentral3->SetBinError(25,9.055385); histoDA_2jets_HT_OFCentral3->SetBinError(26,10.34408); histoDA_2jets_HT_OFCentral3->SetBinError(27,8.544004); histoDA_2jets_HT_OFCentral3->SetBinError(28,9.591663); histoDA_2jets_HT_OFCentral3->SetBinError(29,9.055385); histoDA_2jets_HT_OFCentral3->SetBinError(30,7.681146); histoDA_2jets_HT_OFCentral3->SetBinError(31,7.28011); histoDA_2jets_HT_OFCentral3->SetBinError(32,6.63325); histoDA_2jets_HT_OFCentral3->SetBinError(33,5.91608); histoDA_2jets_HT_OFCentral3->SetBinError(34,4.690416); histoDA_2jets_HT_OFCentral3->SetBinError(35,4); histoDA_2jets_HT_OFCentral3->SetBinError(36,2.645751); histoDA_2jets_HT_OFCentral3->SetBinError(37,3); histoDA_2jets_HT_OFCentral3->SetBinError(38,2.828427); histoDA_2jets_HT_OFCentral3->SetBinError(39,1.414214); histoDA_2jets_HT_OFCentral3->SetBinError(40,1.732051); histoDA_2jets_HT_OFCentral3->SetBinError(41,2); histoDA_2jets_HT_OFCentral3->SetBinError(43,1); histoDA_2jets_HT_OFCentral3->SetBinError(44,1.732051); histoDA_2jets_HT_OFCentral3->SetBinError(47,1); histoDA_2jets_HT_OFCentral3->SetBinError(51,1); histoDA_2jets_HT_OFCentral3->SetEntries(51); histoDA_2jets_HT_OFCentral3->SetDirectory(0); histoDA_2jets_HT_OFCentral3->SetMarkerStyle(20); histoDA_2jets_HT_OFCentral3->GetXaxis()->SetTitle("JZB [GeV]"); histoDA_2jets_HT_OFCentral3->GetXaxis()->SetLabelFont(42); histoDA_2jets_HT_OFCentral3->GetXaxis()->SetLabelOffset(0.007); histoDA_2jets_HT_OFCentral3->GetXaxis()->SetTitleSize(0.05); histoDA_2jets_HT_OFCentral3->GetXaxis()->SetTitleFont(42); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetTitle("Events / 12 GeV"); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetLabelFont(42); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetLabelOffset(0.007); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetTitleSize(0.05); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetTitleOffset(1.1); histoDA_2jets_HT_OFCentral3->GetYaxis()->SetTitleFont(42); histoDA_2jets_HT_OFCentral3->GetZaxis()->SetLabelFont(42); histoDA_2jets_HT_OFCentral3->GetZaxis()->SetLabelOffset(0.007); histoDA_2jets_HT_OFCentral3->GetZaxis()->SetTitleSize(0.05); histoDA_2jets_HT_OFCentral3->GetZaxis()->SetTitleFont(42); histoDA_2jets_HT_OFCentral3->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_2jets_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_2jets_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_2jets_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_2jets_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_2jets_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_2jets_HT_OFCentral_ratio4 = new TH1F("histoMC_2jets_HT_OFCentral_ratio4","",51,-300,312); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(14,1125.904); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(17,1.789913); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(18,3.237301); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(19,1.075837); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(20,0.5186356); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(21,0.8061314); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(22,0.886382); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(23,0.7574747); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(24,1.231402); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(25,1.096682); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(26,1.191314); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(27,0.8065249); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(28,1.064392); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(29,1.076793); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(30,0.8583749); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(31,1.009278); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(32,1.057606); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(33,0.9809986); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(34,0.9108196); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(35,0.8830755); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(36,0.5041749); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(37,1.308837); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(38,2.225971); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(39,0.6153854); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(40,1.1235); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(41,1.739745); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(43,1.507076); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(44,5.456618); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(47,2.680681); histoMC_2jets_HT_OFCentral_ratio4->SetBinContent(51,1.354272); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(14,1592.269); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(17,1.931622); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(18,1.663115); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(19,0.5049593); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(20,0.2169664); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(21,0.1974688); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(22,0.1658249); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(23,0.1257476); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(24,0.1474181); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(25,0.1283507); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(26,0.1219109); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(27,0.09804871); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(28,0.1165398); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(29,0.1248794); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(30,0.1163842); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(31,0.1450987); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(32,0.1676568); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(33,0.173611); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(34,0.2024566); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(35,0.2298277); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(36,0.1951734); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(37,0.4627723); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(38,0.8590353); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(39,0.4471041); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(40,0.6801647); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(41,0.9333918); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(43,1.602581); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(44,3.763742); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(47,3.03105); histoMC_2jets_HT_OFCentral_ratio4->SetBinError(51,1.437588); histoMC_2jets_HT_OFCentral_ratio4->SetMinimum(0); histoMC_2jets_HT_OFCentral_ratio4->SetMaximum(2); histoMC_2jets_HT_OFCentral_ratio4->SetEntries(0.535925); histoMC_2jets_HT_OFCentral_ratio4->SetMarkerStyle(20); histoMC_2jets_HT_OFCentral_ratio4->GetXaxis()->SetLabelFont(42); histoMC_2jets_HT_OFCentral_ratio4->GetXaxis()->SetLabelOffset(0.007); histoMC_2jets_HT_OFCentral_ratio4->GetXaxis()->SetLabelSize(0.12); histoMC_2jets_HT_OFCentral_ratio4->GetXaxis()->SetTitleSize(0.14); histoMC_2jets_HT_OFCentral_ratio4->GetXaxis()->SetTitleFont(42); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetTitle("Ratio"); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->CenterTitle(true); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetNdivisions(4); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetLabelFont(42); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetLabelOffset(0.007); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetLabelSize(0.12); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetTitleSize(0.14); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetTitleOffset(0.3); histoMC_2jets_HT_OFCentral_ratio4->GetYaxis()->SetTitleFont(42); histoMC_2jets_HT_OFCentral_ratio4->GetZaxis()->SetLabelFont(42); histoMC_2jets_HT_OFCentral_ratio4->GetZaxis()->SetLabelOffset(0.007); histoMC_2jets_HT_OFCentral_ratio4->GetZaxis()->SetTitleSize(0.05); histoMC_2jets_HT_OFCentral_ratio4->GetZaxis()->SetTitleFont(42); histoMC_2jets_HT_OFCentral_ratio4->Draw("l, "); TLine *line = new TLine(-300,1,312,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); finalPlots/stack_2jets_HT_OF_Central->cd(); finalPlots/stack_2jets_HT_OF_Central->Modified(); finalPlots/stack_2jets_HT_OF_Central->cd(); finalPlots/stack_2jets_HT_OF_Central->SetSelected(finalPlots/stack_2jets_HT_OF_Central); }