void estimation_2jets_HT_Forward_mll() { //=========Macro generated from canvas: finalPlots/signalregions/estimation_2jets_HT_Forward_mll/finalPlots/signalregions/estimation_2jets_HT_Forward_mll //========= (Wed Mar 30 19:26:57 2016) by ROOT version6.02/05 TCanvas *finalPlots/signalregions/estimation_2jets_HT_Forward_mll = new TCanvas("finalPlots/signalregions/estimation_2jets_HT_Forward_mll", "finalPlots/signalregions/estimation_2jets_HT_Forward_mll",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetHighLightColor(2); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->Range(0,0,1,1); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetFillColor(0); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetBorderMode(0); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetBorderSize(2); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetTickx(1); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetTicky(1); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetLeftMargin(0.13); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetRightMargin(0.05); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetTopMargin(0.08); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetBottomMargin(0.13); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetFrameFillStyle(0); finalPlots/signalregions/estimation_2jets_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,-0.8491858,216.439,7.642672); 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_7 = new TH1F("_stack_7","",51,0,204); _stack_7->SetMinimum(0); _stack_7->SetMaximum(6.963324); _stack_7->SetDirectory(0); _stack_7->SetStats(0); _stack_7->SetMarkerStyle(20); _stack_7->GetXaxis()->SetLabelFont(42); _stack_7->GetXaxis()->SetLabelOffset(0.007); _stack_7->GetXaxis()->SetTitleSize(0.05); _stack_7->GetXaxis()->SetTitleFont(42); _stack_7->GetYaxis()->SetLabelFont(42); _stack_7->GetYaxis()->SetLabelOffset(0.007); _stack_7->GetYaxis()->SetTitleSize(0.05); _stack_7->GetYaxis()->SetTitleOffset(1.1); _stack_7->GetYaxis()->SetTitleFont(42); _stack_7->GetZaxis()->SetLabelFont(42); _stack_7->GetZaxis()->SetLabelOffset(0.007); _stack_7->GetZaxis()->SetTitleSize(0.05); _stack_7->GetZaxis()->SetTitleFont(42); ->SetHistogram(_stack_7); TH1F *mll2jetsHTForwardOFpos25 = new TH1F("mll2jetsHTForwardOFpos25","",51,0,204); mll2jetsHTForwardOFpos25->SetBinContent(21,2.976713); mll2jetsHTForwardOFpos25->SetBinContent(22,5.641415); mll2jetsHTForwardOFpos25->SetBinContent(23,5.657777); mll2jetsHTForwardOFpos25->SetBinContent(24,4.341807); mll2jetsHTForwardOFpos25->SetBinContent(25,6.292001); mll2jetsHTForwardOFpos25->SetBinContent(26,1.684296); mll2jetsHTForwardOFpos25->SetBinError(21,0.6133899); mll2jetsHTForwardOFpos25->SetBinError(22,0.8081387); mll2jetsHTForwardOFpos25->SetBinError(23,0.8593441); mll2jetsHTForwardOFpos25->SetBinError(24,0.6625195); mll2jetsHTForwardOFpos25->SetBinError(25,0.9822991); mll2jetsHTForwardOFpos25->SetBinError(26,0.4046062); mll2jetsHTForwardOFpos25->SetEntries(51); mll2jetsHTForwardOFpos25->SetStats(0); mll2jetsHTForwardOFpos25->SetMarkerStyle(20); mll2jetsHTForwardOFpos25->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsHTForwardOFpos25->GetXaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos25->GetXaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos25->GetXaxis()->SetTitleSize(0.05); mll2jetsHTForwardOFpos25->GetXaxis()->SetTitleFont(42); mll2jetsHTForwardOFpos25->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsHTForwardOFpos25->GetYaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos25->GetYaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos25->GetYaxis()->SetTitleSize(0.05); mll2jetsHTForwardOFpos25->GetYaxis()->SetTitleOffset(1.1); mll2jetsHTForwardOFpos25->GetYaxis()->SetTitleFont(42); mll2jetsHTForwardOFpos25->GetZaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos25->GetZaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos25->GetZaxis()->SetTitleSize(0.05); mll2jetsHTForwardOFpos25->GetZaxis()->SetTitleFont(42); ->Add(mll2jetsHTForwardOFpos,""); TH1F *mll2jetsHTForwardSFneg26 = new TH1F("mll2jetsHTForwardSFneg26","",51,0,204); mll2jetsHTForwardSFneg26->SetBinContent(21,0.06078679); mll2jetsHTForwardSFneg26->SetBinContent(22,0.3235679); mll2jetsHTForwardSFneg26->SetBinContent(23,0.9739597); mll2jetsHTForwardSFneg26->SetBinContent(24,0.6301085); mll2jetsHTForwardSFneg26->SetBinContent(25,0.3118583); mll2jetsHTForwardSFneg26->SetBinContent(26,0.3707521); mll2jetsHTForwardSFneg26->SetBinError(21,0.05979168); mll2jetsHTForwardSFneg26->SetBinError(22,0.1475591); mll2jetsHTForwardSFneg26->SetBinError(23,0.185765); mll2jetsHTForwardSFneg26->SetBinError(24,0.1612984); mll2jetsHTForwardSFneg26->SetBinError(25,0.1204767); mll2jetsHTForwardSFneg26->SetBinError(26,0.1866185); mll2jetsHTForwardSFneg26->SetEntries(52.76326); mll2jetsHTForwardSFneg26->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); mll2jetsHTForwardSFneg26->SetFillColor(ci); mll2jetsHTForwardSFneg26->SetMarkerStyle(20); mll2jetsHTForwardSFneg26->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsHTForwardSFneg26->GetXaxis()->SetLabelFont(42); mll2jetsHTForwardSFneg26->GetXaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFneg26->GetXaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFneg26->GetXaxis()->SetTitleFont(42); mll2jetsHTForwardSFneg26->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsHTForwardSFneg26->GetYaxis()->SetLabelFont(42); mll2jetsHTForwardSFneg26->GetYaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFneg26->GetYaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFneg26->GetYaxis()->SetTitleOffset(1.1); mll2jetsHTForwardSFneg26->GetYaxis()->SetTitleFont(42); mll2jetsHTForwardSFneg26->GetZaxis()->SetLabelFont(42); mll2jetsHTForwardSFneg26->GetZaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFneg26->GetZaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFneg26->GetZaxis()->SetTitleFont(42); ->Add(mll2jetsHTForwardSFneg,""); ->Draw("hist"); TH1F *mll2jetsHTForwardSFpos27 = new TH1F("mll2jetsHTForwardSFpos27","",51,0,204); mll2jetsHTForwardSFpos27->SetBinContent(21,4.303039); mll2jetsHTForwardSFpos27->SetBinContent(22,6.578618); mll2jetsHTForwardSFpos27->SetBinContent(23,6.846097); mll2jetsHTForwardSFpos27->SetBinContent(24,5.06426); mll2jetsHTForwardSFpos27->SetBinContent(25,4.567624); mll2jetsHTForwardSFpos27->SetBinContent(26,1.020488); mll2jetsHTForwardSFpos27->SetBinError(21,0.7650694); mll2jetsHTForwardSFpos27->SetBinError(22,0.7666985); mll2jetsHTForwardSFpos27->SetBinError(23,0.7795411); mll2jetsHTForwardSFpos27->SetBinError(24,0.6244243); mll2jetsHTForwardSFpos27->SetBinError(25,0.7784285); mll2jetsHTForwardSFpos27->SetBinError(26,0.2892675); mll2jetsHTForwardSFpos27->SetEntries(51); mll2jetsHTForwardSFpos27->SetStats(0); mll2jetsHTForwardSFpos27->SetMarkerStyle(20); mll2jetsHTForwardSFpos27->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsHTForwardSFpos27->GetXaxis()->SetLabelFont(42); mll2jetsHTForwardSFpos27->GetXaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFpos27->GetXaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFpos27->GetXaxis()->SetTitleFont(42); mll2jetsHTForwardSFpos27->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsHTForwardSFpos27->GetYaxis()->SetLabelFont(42); mll2jetsHTForwardSFpos27->GetYaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFpos27->GetYaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFpos27->GetYaxis()->SetTitleOffset(1.1); mll2jetsHTForwardSFpos27->GetYaxis()->SetTitleFont(42); mll2jetsHTForwardSFpos27->GetZaxis()->SetLabelFont(42); mll2jetsHTForwardSFpos27->GetZaxis()->SetLabelOffset(0.007); mll2jetsHTForwardSFpos27->GetZaxis()->SetTitleSize(0.05); mll2jetsHTForwardSFpos27->GetZaxis()->SetTitleFont(42); mll2jetsHTForwardSFpos27->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("mll2jetsHTForwardOFpos","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("mll2jetsHTForwardSFpos","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("mll2jetsHTForwardSFneg","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_2jets_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 *mll2jetsHTForwardOFpos_ratio28 = new TH1F("mll2jetsHTForwardOFpos_ratio28","",51,0,204); mll2jetsHTForwardOFpos_ratio28->SetBinContent(21,1.416638); mll2jetsHTForwardOFpos_ratio28->SetBinContent(22,1.102873); mll2jetsHTForwardOFpos_ratio28->SetBinContent(23,1.032323); mll2jetsHTForwardOFpos_ratio28->SetBinContent(24,1.018573); mll2jetsHTForwardOFpos_ratio28->SetBinContent(25,0.6916597); mll2jetsHTForwardOFpos_ratio28->SetBinContent(26,0.4965761); mll2jetsHTForwardOFpos_ratio28->SetBinError(21,0.3821743); mll2jetsHTForwardOFpos_ratio28->SetBinError(22,0.1989743); mll2jetsHTForwardOFpos_ratio28->SetBinError(23,0.1804097); mll2jetsHTForwardOFpos_ratio28->SetBinError(24,0.1878477); mll2jetsHTForwardOFpos_ratio28->SetBinError(25,0.1569661); mll2jetsHTForwardOFpos_ratio28->SetBinError(26,0.1772153); mll2jetsHTForwardOFpos_ratio28->SetMinimum(0); mll2jetsHTForwardOFpos_ratio28->SetMaximum(2); mll2jetsHTForwardOFpos_ratio28->SetEntries(107.1379); mll2jetsHTForwardOFpos_ratio28->SetStats(0); mll2jetsHTForwardOFpos_ratio28->SetMarkerStyle(20); mll2jetsHTForwardOFpos_ratio28->GetXaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos_ratio28->GetXaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos_ratio28->GetXaxis()->SetLabelSize(0.12); mll2jetsHTForwardOFpos_ratio28->GetXaxis()->SetTitleSize(0.14); mll2jetsHTForwardOFpos_ratio28->GetXaxis()->SetTitleFont(42); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetTitle("Ratio"); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->CenterTitle(true); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetNdivisions(4); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetLabelSize(0.12); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetTitleSize(0.14); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetTitleOffset(0.3); mll2jetsHTForwardOFpos_ratio28->GetYaxis()->SetTitleFont(42); mll2jetsHTForwardOFpos_ratio28->GetZaxis()->SetLabelFont(42); mll2jetsHTForwardOFpos_ratio28->GetZaxis()->SetLabelOffset(0.007); mll2jetsHTForwardOFpos_ratio28->GetZaxis()->SetTitleSize(0.05); mll2jetsHTForwardOFpos_ratio28->GetZaxis()->SetTitleFont(42); mll2jetsHTForwardOFpos_ratio28->Draw("l, "); TLine *line = new TLine(0,1,204,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->cd(); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->Modified(); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->cd(); finalPlots/signalregions/estimation_2jets_HT_Forward_mll->SetSelected(finalPlots/signalregions/estimation_2jets_HT_Forward_mll); }