void estimation_3jets__Forward_mll() { //=========Macro generated from canvas: finalPlots/signalregions/estimation_3jets__Forward_mll/finalPlots/signalregions/estimation_3jets__Forward_mll //========= (Wed Mar 30 19:26:58 2016) by ROOT version6.02/05 TCanvas *finalPlots/signalregions/estimation_3jets__Forward_mll = new TCanvas("finalPlots/signalregions/estimation_3jets__Forward_mll", "finalPlots/signalregions/estimation_3jets__Forward_mll",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/signalregions/estimation_3jets__Forward_mll->SetHighLightColor(2); finalPlots/signalregions/estimation_3jets__Forward_mll->Range(0,0,1,1); finalPlots/signalregions/estimation_3jets__Forward_mll->SetFillColor(0); finalPlots/signalregions/estimation_3jets__Forward_mll->SetBorderMode(0); finalPlots/signalregions/estimation_3jets__Forward_mll->SetBorderSize(2); finalPlots/signalregions/estimation_3jets__Forward_mll->SetTickx(1); finalPlots/signalregions/estimation_3jets__Forward_mll->SetTicky(1); finalPlots/signalregions/estimation_3jets__Forward_mll->SetLeftMargin(0.13); finalPlots/signalregions/estimation_3jets__Forward_mll->SetRightMargin(0.05); finalPlots/signalregions/estimation_3jets__Forward_mll->SetTopMargin(0.08); finalPlots/signalregions/estimation_3jets__Forward_mll->SetBottomMargin(0.13); finalPlots/signalregions/estimation_3jets__Forward_mll->SetFrameFillStyle(0); finalPlots/signalregions/estimation_3jets__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.126958,216.439,10.14262); 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_11 = new TH1F("_stack_11","",51,0,204); _stack_11->SetMinimum(0); _stack_11->SetMaximum(9.241057); _stack_11->SetDirectory(0); _stack_11->SetStats(0); _stack_11->SetMarkerStyle(20); _stack_11->GetXaxis()->SetLabelFont(42); _stack_11->GetXaxis()->SetLabelOffset(0.007); _stack_11->GetXaxis()->SetTitleSize(0.05); _stack_11->GetXaxis()->SetTitleFont(42); _stack_11->GetYaxis()->SetLabelFont(42); _stack_11->GetYaxis()->SetLabelOffset(0.007); _stack_11->GetYaxis()->SetTitleSize(0.05); _stack_11->GetYaxis()->SetTitleOffset(1.1); _stack_11->GetYaxis()->SetTitleFont(42); _stack_11->GetZaxis()->SetLabelFont(42); _stack_11->GetZaxis()->SetLabelOffset(0.007); _stack_11->GetZaxis()->SetTitleSize(0.05); _stack_11->GetZaxis()->SetTitleFont(42); ->SetHistogram(_stack_11); TH1F *mll3jetsForwardOFpos41 = new TH1F("mll3jetsForwardOFpos41","",51,0,204); mll3jetsForwardOFpos41->SetBinContent(21,4.590317); mll3jetsForwardOFpos41->SetBinContent(22,8.602526); mll3jetsForwardOFpos41->SetBinContent(23,5.729687); mll3jetsForwardOFpos41->SetBinContent(24,5.598568); mll3jetsForwardOFpos41->SetBinContent(25,6.229028); mll3jetsForwardOFpos41->SetBinContent(26,1.885832); mll3jetsForwardOFpos41->SetBinError(21,0.7082309); mll3jetsForwardOFpos41->SetBinError(22,0.972259); mll3jetsForwardOFpos41->SetBinError(23,0.7790442); mll3jetsForwardOFpos41->SetBinError(24,0.7421886); mll3jetsForwardOFpos41->SetBinError(25,0.8116036); mll3jetsForwardOFpos41->SetBinError(26,0.4622919); mll3jetsForwardOFpos41->SetEntries(51); mll3jetsForwardOFpos41->SetStats(0); mll3jetsForwardOFpos41->SetMarkerStyle(20); mll3jetsForwardOFpos41->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsForwardOFpos41->GetXaxis()->SetLabelFont(42); mll3jetsForwardOFpos41->GetXaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos41->GetXaxis()->SetTitleSize(0.05); mll3jetsForwardOFpos41->GetXaxis()->SetTitleFont(42); mll3jetsForwardOFpos41->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsForwardOFpos41->GetYaxis()->SetLabelFont(42); mll3jetsForwardOFpos41->GetYaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos41->GetYaxis()->SetTitleSize(0.05); mll3jetsForwardOFpos41->GetYaxis()->SetTitleOffset(1.1); mll3jetsForwardOFpos41->GetYaxis()->SetTitleFont(42); mll3jetsForwardOFpos41->GetZaxis()->SetLabelFont(42); mll3jetsForwardOFpos41->GetZaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos41->GetZaxis()->SetTitleSize(0.05); mll3jetsForwardOFpos41->GetZaxis()->SetTitleFont(42); ->Add(mll3jetsForwardOFpos,""); TH1F *mll3jetsForwardSFneg42 = new TH1F("mll3jetsForwardSFneg42","",51,0,204); mll3jetsForwardSFneg42->SetBinContent(21,1.583); mll3jetsForwardSFneg42->SetBinContent(22,0.1984811); mll3jetsForwardSFneg42->SetBinContent(23,1.90991); mll3jetsForwardSFneg42->SetBinContent(24,1.571187); mll3jetsForwardSFneg42->SetBinContent(25,0.2758255); mll3jetsForwardSFneg42->SetBinContent(26,-0.1265199); mll3jetsForwardSFneg42->SetBinError(21,1.58749); mll3jetsForwardSFneg42->SetBinError(22,0.1127004); mll3jetsForwardSFneg42->SetBinError(23,2.111431); mll3jetsForwardSFneg42->SetBinError(24,1.592891); mll3jetsForwardSFneg42->SetBinError(25,0.1800138); mll3jetsForwardSFneg42->SetBinError(26,0.1262301); mll3jetsForwardSFneg42->SetEntries(3.058336); mll3jetsForwardSFneg42->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); mll3jetsForwardSFneg42->SetFillColor(ci); mll3jetsForwardSFneg42->SetMarkerStyle(20); mll3jetsForwardSFneg42->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsForwardSFneg42->GetXaxis()->SetLabelFont(42); mll3jetsForwardSFneg42->GetXaxis()->SetLabelOffset(0.007); mll3jetsForwardSFneg42->GetXaxis()->SetTitleSize(0.05); mll3jetsForwardSFneg42->GetXaxis()->SetTitleFont(42); mll3jetsForwardSFneg42->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsForwardSFneg42->GetYaxis()->SetLabelFont(42); mll3jetsForwardSFneg42->GetYaxis()->SetLabelOffset(0.007); mll3jetsForwardSFneg42->GetYaxis()->SetTitleSize(0.05); mll3jetsForwardSFneg42->GetYaxis()->SetTitleOffset(1.1); mll3jetsForwardSFneg42->GetYaxis()->SetTitleFont(42); mll3jetsForwardSFneg42->GetZaxis()->SetLabelFont(42); mll3jetsForwardSFneg42->GetZaxis()->SetLabelOffset(0.007); mll3jetsForwardSFneg42->GetZaxis()->SetTitleSize(0.05); mll3jetsForwardSFneg42->GetZaxis()->SetTitleFont(42); ->Add(mll3jetsForwardSFneg,""); ->Draw("hist"); TH1F *mll3jetsForwardSFpos43 = new TH1F("mll3jetsForwardSFpos43","",51,0,204); mll3jetsForwardSFpos43->SetBinContent(21,4.494904); mll3jetsForwardSFpos43->SetBinContent(22,7.071695); mll3jetsForwardSFpos43->SetBinContent(23,5.888655); mll3jetsForwardSFpos43->SetBinContent(24,10.21006); mll3jetsForwardSFpos43->SetBinContent(25,6.357556); mll3jetsForwardSFpos43->SetBinContent(26,1.23766); mll3jetsForwardSFpos43->SetBinError(21,0.6469859); mll3jetsForwardSFpos43->SetBinError(22,1.163105); mll3jetsForwardSFpos43->SetBinError(23,4.487519); mll3jetsForwardSFpos43->SetBinError(24,2.017859); mll3jetsForwardSFpos43->SetBinError(25,0.7932065); mll3jetsForwardSFpos43->SetBinError(26,0.3357453); mll3jetsForwardSFpos43->SetEntries(51); mll3jetsForwardSFpos43->SetStats(0); mll3jetsForwardSFpos43->SetMarkerStyle(20); mll3jetsForwardSFpos43->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll3jetsForwardSFpos43->GetXaxis()->SetLabelFont(42); mll3jetsForwardSFpos43->GetXaxis()->SetLabelOffset(0.007); mll3jetsForwardSFpos43->GetXaxis()->SetTitleSize(0.05); mll3jetsForwardSFpos43->GetXaxis()->SetTitleFont(42); mll3jetsForwardSFpos43->GetYaxis()->SetTitle("Events / 4 GeV"); mll3jetsForwardSFpos43->GetYaxis()->SetLabelFont(42); mll3jetsForwardSFpos43->GetYaxis()->SetLabelOffset(0.007); mll3jetsForwardSFpos43->GetYaxis()->SetTitleSize(0.05); mll3jetsForwardSFpos43->GetYaxis()->SetTitleOffset(1.1); mll3jetsForwardSFpos43->GetYaxis()->SetTitleFont(42); mll3jetsForwardSFpos43->GetZaxis()->SetLabelFont(42); mll3jetsForwardSFpos43->GetZaxis()->SetLabelOffset(0.007); mll3jetsForwardSFpos43->GetZaxis()->SetTitleSize(0.05); mll3jetsForwardSFpos43->GetZaxis()->SetTitleFont(42); mll3jetsForwardSFpos43->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("mll3jetsForwardOFpos","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("mll3jetsForwardSFpos","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("mll3jetsForwardSFneg","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__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 *mll3jetsForwardOFpos_ratio44 = new TH1F("mll3jetsForwardOFpos_ratio44","",51,0,204); mll3jetsForwardOFpos_ratio44->SetBinContent(21,0.7281181); mll3jetsForwardOFpos_ratio44->SetBinContent(22,0.8035098); mll3jetsForwardOFpos_ratio44->SetBinContent(23,0.770807); mll3jetsForwardOFpos_ratio44->SetBinContent(24,1.424046); mll3jetsForwardOFpos_ratio44->SetBinContent(25,0.9773558); mll3jetsForwardOFpos_ratio44->SetBinContent(26,0.7034908); mll3jetsForwardOFpos_ratio44->SetBinError(21,0.23026); mll3jetsForwardOFpos_ratio44->SetBinError(22,0.1595313); mll3jetsForwardOFpos_ratio44->SetBinError(23,0.6297653); mll3jetsForwardOFpos_ratio44->SetBinError(24,0.448368); mll3jetsForwardOFpos_ratio44->SetBinError(25,0.1745604); mll3jetsForwardOFpos_ratio44->SetBinError(26,0.2704417); mll3jetsForwardOFpos_ratio44->SetMinimum(0); mll3jetsForwardOFpos_ratio44->SetMaximum(2); mll3jetsForwardOFpos_ratio44->SetEntries(37.49968); mll3jetsForwardOFpos_ratio44->SetStats(0); mll3jetsForwardOFpos_ratio44->SetMarkerStyle(20); mll3jetsForwardOFpos_ratio44->GetXaxis()->SetLabelFont(42); mll3jetsForwardOFpos_ratio44->GetXaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos_ratio44->GetXaxis()->SetLabelSize(0.12); mll3jetsForwardOFpos_ratio44->GetXaxis()->SetTitleSize(0.14); mll3jetsForwardOFpos_ratio44->GetXaxis()->SetTitleFont(42); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetTitle("Ratio"); mll3jetsForwardOFpos_ratio44->GetYaxis()->CenterTitle(true); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetNdivisions(4); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetLabelFont(42); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetLabelSize(0.12); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetTitleSize(0.14); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetTitleOffset(0.3); mll3jetsForwardOFpos_ratio44->GetYaxis()->SetTitleFont(42); mll3jetsForwardOFpos_ratio44->GetZaxis()->SetLabelFont(42); mll3jetsForwardOFpos_ratio44->GetZaxis()->SetLabelOffset(0.007); mll3jetsForwardOFpos_ratio44->GetZaxis()->SetTitleSize(0.05); mll3jetsForwardOFpos_ratio44->GetZaxis()->SetTitleFont(42); mll3jetsForwardOFpos_ratio44->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__Forward_mll->cd(); finalPlots/signalregions/estimation_3jets__Forward_mll->Modified(); finalPlots/signalregions/estimation_3jets__Forward_mll->cd(); finalPlots/signalregions/estimation_3jets__Forward_mll->SetSelected(finalPlots/signalregions/estimation_3jets__Forward_mll); }