void estimation_3jets_HT_Forward_mll() { //=========Macro generated from canvas: finalPlots/signalregions/estimation_3jets_HT_Forward_mll/finalPlots/signalregions/estimation_3jets_HT_Forward_mll //========= (Wed Mar 30 19:26:58 2016) by ROOT version6.02/05 TCanvas *finalPlots/signalregions/estimation_3jets_HT_Forward_mll = new TCanvas("finalPlots/signalregions/estimation_3jets_HT_Forward_mll", "finalPlots/signalregions/estimation_3jets_HT_Forward_mll",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetHighLightColor(2); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->Range(0,0,1,1); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetFillColor(0); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetBorderMode(0); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetBorderSize(2); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetTickx(1); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetTicky(1); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetLeftMargin(0.13); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetRightMargin(0.05); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetTopMargin(0.08); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetBottomMargin(0.13); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetFrameFillStyle(0); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-32.34146,-1.134564,216.439,10.21108); pad1->SetFillColor(0); pad1->SetBorderMode(0); pad1->SetBorderSize(2); pad1->SetTickx(1); pad1->SetTicky(1); pad1->SetLeftMargin(0.13); pad1->SetRightMargin(0.05); pad1->SetTopMargin(0.08); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); pad1->SetFrameFillStyle(0); pad1->SetFrameBorderMode(0); THStack * = new THStack(); ->SetName(""); ->SetTitle(""); TH1F *_stack_15 = new TH1F("_stack_15","",51,0,204); _stack_15->SetMinimum(0); _stack_15->SetMaximum(9.303426); _stack_15->SetDirectory(0); _stack_15->SetStats(0); _stack_15->SetMarkerStyle(20); _stack_15->GetXaxis()->SetLabelFont(42); _stack_15->GetXaxis()->SetLabelOffset(0.007); _stack_15->GetXaxis()->SetTitleSize(0.05); _stack_15->GetXaxis()->SetTitleFont(42); _stack_15->GetYaxis()->SetLabelFont(42); _stack_15->GetYaxis()->SetLabelOffset(0.007); _stack_15->GetYaxis()->SetTitleSize(0.05); _stack_15->GetYaxis()->SetTitleOffset(1.1); _stack_15->GetYaxis()->SetTitleFont(42); _stack_15->GetZaxis()->SetLabelFont(42); _stack_15->GetZaxis()->SetLabelOffset(0.007); _stack_15->GetZaxis()->SetTitleSize(0.05); _stack_15->GetZaxis()->SetTitleFont(42); ->SetHistogram(_stack_15); TH1F *mll3jetsHTForwardOFpos57 = new TH1F("mll3jetsHTForwardOFpos57","",51,0,204); mll3jetsHTForwardOFpos57->SetBinContent(21,4.590317); mll3jetsHTForwardOFpos57->SetBinContent(22,8.501987); mll3jetsHTForwardOFpos57->SetBinContent(23,5.548044); mll3jetsHTForwardOFpos57->SetBinContent(24,5.378101); mll3jetsHTForwardOFpos57->SetBinContent(25,6.133727); mll3jetsHTForwardOFpos57->SetBinContent(26,1.885832); mll3jetsHTForwardOFpos57->SetBinError(21,0.7082309); mll3jetsHTForwardOFpos57->SetBinError(22,0.9633787); mll3jetsHTForwardOFpos57->SetBinError(23,0.7713433); mll3jetsHTForwardOFpos57->SetBinError(24,0.729078); mll3jetsHTForwardOFpos57->SetBinError(25,0.80599); mll3jetsHTForwardOFpos57->SetBinError(26,0.4622919); mll3jetsHTForwardOFpos57->SetEntries(51); mll3jetsHTForwardOFpos57->SetStats(0); mll3jetsHTForwardOFpos57->SetMarkerStyle(20); mll3jetsHTForwardOFpos57->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsHTForwardOFpos57->GetXaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos57->GetXaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos57->GetXaxis()->SetTitleSize(0.05); mll3jetsHTForwardOFpos57->GetXaxis()->SetTitleFont(42); mll3jetsHTForwardOFpos57->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsHTForwardOFpos57->GetYaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos57->GetYaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos57->GetYaxis()->SetTitleSize(0.05); mll3jetsHTForwardOFpos57->GetYaxis()->SetTitleOffset(1.1); mll3jetsHTForwardOFpos57->GetYaxis()->SetTitleFont(42); mll3jetsHTForwardOFpos57->GetZaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos57->GetZaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos57->GetZaxis()->SetTitleSize(0.05); mll3jetsHTForwardOFpos57->GetZaxis()->SetTitleFont(42); ->Add(mll3jetsHTForwardOFpos,""); TH1F *mll3jetsHTForwardSFneg58 = new TH1F("mll3jetsHTForwardSFneg58","",51,0,204); mll3jetsHTForwardSFneg58->SetBinContent(21,0.0509061); mll3jetsHTForwardSFneg58->SetBinContent(22,0.3584185); mll3jetsHTForwardSFneg58->SetBinContent(23,0.7336224); mll3jetsHTForwardSFneg58->SetBinContent(24,0.9175913); mll3jetsHTForwardSFneg58->SetBinContent(25,0.5394001); mll3jetsHTForwardSFneg58->SetBinContent(26,0.003775671); mll3jetsHTForwardSFneg58->SetBinError(21,0.03154134); mll3jetsHTForwardSFneg58->SetBinError(22,0.1219619); mll3jetsHTForwardSFneg58->SetBinError(23,0.2455828); mll3jetsHTForwardSFneg58->SetBinError(24,0.1346769); mll3jetsHTForwardSFneg58->SetBinError(25,0.1935735); mll3jetsHTForwardSFneg58->SetBinError(26,0.1404323); mll3jetsHTForwardSFneg58->SetEntries(44.745); mll3jetsHTForwardSFneg58->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); mll3jetsHTForwardSFneg58->SetFillColor(ci); mll3jetsHTForwardSFneg58->SetMarkerStyle(20); mll3jetsHTForwardSFneg58->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsHTForwardSFneg58->GetXaxis()->SetLabelFont(42); mll3jetsHTForwardSFneg58->GetXaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFneg58->GetXaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFneg58->GetXaxis()->SetTitleFont(42); mll3jetsHTForwardSFneg58->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsHTForwardSFneg58->GetYaxis()->SetLabelFont(42); mll3jetsHTForwardSFneg58->GetYaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFneg58->GetYaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFneg58->GetYaxis()->SetTitleOffset(1.1); mll3jetsHTForwardSFneg58->GetYaxis()->SetTitleFont(42); mll3jetsHTForwardSFneg58->GetZaxis()->SetLabelFont(42); mll3jetsHTForwardSFneg58->GetZaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFneg58->GetZaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFneg58->GetZaxis()->SetTitleFont(42); ->Add(mll3jetsHTForwardSFneg,""); ->Draw("hist"); TH1F *mll3jetsHTForwardSFpos59 = new TH1F("mll3jetsHTForwardSFpos59","",51,0,204); mll3jetsHTForwardSFpos59->SetBinContent(21,4.583101); mll3jetsHTForwardSFpos59->SetBinContent(22,8.14953); mll3jetsHTForwardSFpos59->SetBinContent(23,9.658422); mll3jetsHTForwardSFpos59->SetBinContent(24,8.174295); mll3jetsHTForwardSFpos59->SetBinContent(25,6.537702); mll3jetsHTForwardSFpos59->SetBinContent(26,1.259345); mll3jetsHTForwardSFpos59->SetBinError(21,0.6366732); mll3jetsHTForwardSFpos59->SetBinError(22,0.9931835); mll3jetsHTForwardSFpos59->SetBinError(23,0.8861168); mll3jetsHTForwardSFpos59->SetBinError(24,0.9054473); mll3jetsHTForwardSFpos59->SetBinError(25,0.7880896); mll3jetsHTForwardSFpos59->SetBinError(26,0.3364156); mll3jetsHTForwardSFpos59->SetEntries(51); mll3jetsHTForwardSFpos59->SetStats(0); mll3jetsHTForwardSFpos59->SetMarkerStyle(20); mll3jetsHTForwardSFpos59->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsHTForwardSFpos59->GetXaxis()->SetLabelFont(42); mll3jetsHTForwardSFpos59->GetXaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFpos59->GetXaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFpos59->GetXaxis()->SetTitleFont(42); mll3jetsHTForwardSFpos59->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsHTForwardSFpos59->GetYaxis()->SetLabelFont(42); mll3jetsHTForwardSFpos59->GetYaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFpos59->GetYaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFpos59->GetYaxis()->SetTitleOffset(1.1); mll3jetsHTForwardSFpos59->GetYaxis()->SetTitleFont(42); mll3jetsHTForwardSFpos59->GetZaxis()->SetLabelFont(42); mll3jetsHTForwardSFpos59->GetZaxis()->SetLabelOffset(0.007); mll3jetsHTForwardSFpos59->GetZaxis()->SetTitleSize(0.05); mll3jetsHTForwardSFpos59->GetZaxis()->SetTitleFont(42); mll3jetsHTForwardSFpos59->Draw("E,SAME"); TLegend *leg = new TLegend(0.65,0.5,0.9,0.72,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("mll3jetsHTForwardOFpos","FS background","F"); entry->SetFillStyle(1001); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(21); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("mll3jetsHTForwardSFpos","Expected","P"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("mll3jetsHTForwardSFneg","Drell-Yan","F"); ci = TColor::GetColor("#0000ff"); entry->SetFillColor(ci); entry->SetFillStyle(1001); entry->SetLineColor(1); 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,"Simulation"); 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/signalregions/estimation_3jets_HT_Forward_mll->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-32.34146,-1,216.439,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 *mll3jetsHTForwardOFpos_ratio60 = new TH1F("mll3jetsHTForwardOFpos_ratio60","",51,0,204); mll3jetsHTForwardOFpos_ratio60->SetBinContent(21,0.9874769); mll3jetsHTForwardOFpos_ratio60->SetBinContent(22,0.9197694); mll3jetsHTForwardOFpos_ratio60->SetBinContent(23,1.537557); mll3jetsHTForwardOFpos_ratio60->SetBinContent(24,1.298395); mll3jetsHTForwardOFpos_ratio60->SetBinContent(25,0.9797059); mll3jetsHTForwardOFpos_ratio60->SetBinContent(26,0.6664582); mll3jetsHTForwardOFpos_ratio60->SetBinError(21,0.203884); mll3jetsHTForwardOFpos_ratio60->SetBinError(22,0.1507515); mll3jetsHTForwardOFpos_ratio60->SetBinError(23,0.2432245); mll3jetsHTForwardOFpos_ratio60->SetBinError(24,0.2099151); mll3jetsHTForwardOFpos_ratio60->SetBinError(25,0.1695792); mll3jetsHTForwardOFpos_ratio60->SetBinError(26,0.2464436); mll3jetsHTForwardOFpos_ratio60->SetMinimum(0); mll3jetsHTForwardOFpos_ratio60->SetMaximum(2); mll3jetsHTForwardOFpos_ratio60->SetEntries(158.8426); mll3jetsHTForwardOFpos_ratio60->SetStats(0); mll3jetsHTForwardOFpos_ratio60->SetMarkerStyle(20); mll3jetsHTForwardOFpos_ratio60->GetXaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos_ratio60->GetXaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos_ratio60->GetXaxis()->SetLabelSize(0.12); mll3jetsHTForwardOFpos_ratio60->GetXaxis()->SetTitleSize(0.14); mll3jetsHTForwardOFpos_ratio60->GetXaxis()->SetTitleFont(42); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetTitle("Ratio"); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->CenterTitle(true); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetNdivisions(4); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetLabelSize(0.12); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetTitleSize(0.14); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetTitleOffset(0.3); mll3jetsHTForwardOFpos_ratio60->GetYaxis()->SetTitleFont(42); mll3jetsHTForwardOFpos_ratio60->GetZaxis()->SetLabelFont(42); mll3jetsHTForwardOFpos_ratio60->GetZaxis()->SetLabelOffset(0.007); mll3jetsHTForwardOFpos_ratio60->GetZaxis()->SetTitleSize(0.05); mll3jetsHTForwardOFpos_ratio60->GetZaxis()->SetTitleFont(42); mll3jetsHTForwardOFpos_ratio60->Draw("l, "); TLine *line = new TLine(0,1,204,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->cd(); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->Modified(); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->cd(); finalPlots/signalregions/estimation_3jets_HT_Forward_mll->SetSelected(finalPlots/signalregions/estimation_3jets_HT_Forward_mll); }