void estimation_2jets__Forward_mll() { //=========Macro generated from canvas: finalPlots/signalregions/estimation_2jets__Forward_mll/finalPlots/signalregions/estimation_2jets__Forward_mll //========= (Wed Mar 30 19:26:57 2016) by ROOT version6.02/05 TCanvas *finalPlots/signalregions/estimation_2jets__Forward_mll = new TCanvas("finalPlots/signalregions/estimation_2jets__Forward_mll", "finalPlots/signalregions/estimation_2jets__Forward_mll",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/signalregions/estimation_2jets__Forward_mll->SetHighLightColor(2); finalPlots/signalregions/estimation_2jets__Forward_mll->Range(0,0,1,1); finalPlots/signalregions/estimation_2jets__Forward_mll->SetFillColor(0); finalPlots/signalregions/estimation_2jets__Forward_mll->SetBorderMode(0); finalPlots/signalregions/estimation_2jets__Forward_mll->SetBorderSize(2); finalPlots/signalregions/estimation_2jets__Forward_mll->SetTickx(1); finalPlots/signalregions/estimation_2jets__Forward_mll->SetTicky(1); finalPlots/signalregions/estimation_2jets__Forward_mll->SetLeftMargin(0.13); finalPlots/signalregions/estimation_2jets__Forward_mll->SetRightMargin(0.05); finalPlots/signalregions/estimation_2jets__Forward_mll->SetTopMargin(0.08); finalPlots/signalregions/estimation_2jets__Forward_mll->SetBottomMargin(0.13); finalPlots/signalregions/estimation_2jets__Forward_mll->SetFrameFillStyle(0); finalPlots/signalregions/estimation_2jets__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.039912,216.439,9.359208); 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_3 = new TH1F("_stack_3","",51,0,204); _stack_3->SetMinimum(0); _stack_3->SetMaximum(8.527279); _stack_3->SetDirectory(0); _stack_3->SetStats(0); _stack_3->SetMarkerStyle(20); _stack_3->GetXaxis()->SetLabelFont(42); _stack_3->GetXaxis()->SetLabelOffset(0.007); _stack_3->GetXaxis()->SetTitleSize(0.05); _stack_3->GetXaxis()->SetTitleFont(42); _stack_3->GetYaxis()->SetLabelFont(42); _stack_3->GetYaxis()->SetLabelOffset(0.007); _stack_3->GetYaxis()->SetTitleSize(0.05); _stack_3->GetYaxis()->SetTitleOffset(1.1); _stack_3->GetYaxis()->SetTitleFont(42); _stack_3->GetZaxis()->SetLabelFont(42); _stack_3->GetZaxis()->SetLabelOffset(0.007); _stack_3->GetZaxis()->SetTitleSize(0.05); _stack_3->GetZaxis()->SetTitleFont(42); ->SetHistogram(_stack_3); TH1F *mll2jetsForwardOFpos9 = new TH1F("mll2jetsForwardOFpos9","",51,0,204); mll2jetsForwardOFpos9->SetBinContent(21,2.97369); mll2jetsForwardOFpos9->SetBinContent(22,6.197834); mll2jetsForwardOFpos9->SetBinContent(23,5.488057); mll2jetsForwardOFpos9->SetBinContent(24,4.340744); mll2jetsForwardOFpos9->SetBinContent(25,6.250139); mll2jetsForwardOFpos9->SetBinContent(26,1.684296); mll2jetsForwardOFpos9->SetBinError(21,0.6133868); mll2jetsForwardOFpos9->SetBinError(22,1.359608); mll2jetsForwardOFpos9->SetBinError(23,0.852468); mll2jetsForwardOFpos9->SetBinError(24,0.6625188); mll2jetsForwardOFpos9->SetBinError(25,0.9806691); mll2jetsForwardOFpos9->SetBinError(26,0.4046062); mll2jetsForwardOFpos9->SetEntries(51); mll2jetsForwardOFpos9->SetStats(0); mll2jetsForwardOFpos9->SetMarkerStyle(20); mll2jetsForwardOFpos9->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsForwardOFpos9->GetXaxis()->SetLabelFont(42); mll2jetsForwardOFpos9->GetXaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos9->GetXaxis()->SetTitleSize(0.05); mll2jetsForwardOFpos9->GetXaxis()->SetTitleFont(42); mll2jetsForwardOFpos9->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsForwardOFpos9->GetYaxis()->SetLabelFont(42); mll2jetsForwardOFpos9->GetYaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos9->GetYaxis()->SetTitleSize(0.05); mll2jetsForwardOFpos9->GetYaxis()->SetTitleOffset(1.1); mll2jetsForwardOFpos9->GetYaxis()->SetTitleFont(42); mll2jetsForwardOFpos9->GetZaxis()->SetLabelFont(42); mll2jetsForwardOFpos9->GetZaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos9->GetZaxis()->SetTitleSize(0.05); mll2jetsForwardOFpos9->GetZaxis()->SetTitleFont(42); ->Add(mll2jetsForwardOFpos,""); TH1F *mll2jetsForwardSFneg10 = new TH1F("mll2jetsForwardSFneg10","",51,0,204); mll2jetsForwardSFneg10->SetBinContent(21,0.006056219); mll2jetsForwardSFneg10->SetBinContent(22,0.2152079); mll2jetsForwardSFneg10->SetBinContent(23,2.633161); mll2jetsForwardSFneg10->SetBinContent(24,3.395542); mll2jetsForwardSFneg10->SetBinContent(25,0.1536864); mll2jetsForwardSFneg10->SetBinContent(26,0.8700923); mll2jetsForwardSFneg10->SetBinError(21,0.04674778); mll2jetsForwardSFneg10->SetBinError(22,0.1415298); mll2jetsForwardSFneg10->SetBinError(23,2.130474); mll2jetsForwardSFneg10->SetBinError(24,2.275053); mll2jetsForwardSFneg10->SetBinError(25,0.1122592); mll2jetsForwardSFneg10->SetBinError(26,0.6356925); mll2jetsForwardSFneg10->SetEntries(5.210646); mll2jetsForwardSFneg10->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); mll2jetsForwardSFneg10->SetFillColor(ci); mll2jetsForwardSFneg10->SetMarkerStyle(20); mll2jetsForwardSFneg10->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsForwardSFneg10->GetXaxis()->SetLabelFont(42); mll2jetsForwardSFneg10->GetXaxis()->SetLabelOffset(0.007); mll2jetsForwardSFneg10->GetXaxis()->SetTitleSize(0.05); mll2jetsForwardSFneg10->GetXaxis()->SetTitleFont(42); mll2jetsForwardSFneg10->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsForwardSFneg10->GetYaxis()->SetLabelFont(42); mll2jetsForwardSFneg10->GetYaxis()->SetLabelOffset(0.007); mll2jetsForwardSFneg10->GetYaxis()->SetTitleSize(0.05); mll2jetsForwardSFneg10->GetYaxis()->SetTitleOffset(1.1); mll2jetsForwardSFneg10->GetYaxis()->SetTitleFont(42); mll2jetsForwardSFneg10->GetZaxis()->SetLabelFont(42); mll2jetsForwardSFneg10->GetZaxis()->SetLabelOffset(0.007); mll2jetsForwardSFneg10->GetZaxis()->SetTitleSize(0.05); mll2jetsForwardSFneg10->GetZaxis()->SetTitleFont(42); ->Add(mll2jetsForwardSFneg,""); ->Draw("hist"); TH1F *mll2jetsForwardSFpos11 = new TH1F("mll2jetsForwardSFpos11","",51,0,204); mll2jetsForwardSFpos11->SetBinContent(21,4.283372); mll2jetsForwardSFpos11->SetBinContent(22,6.066823); mll2jetsForwardSFpos11->SetBinContent(23,5.986966); mll2jetsForwardSFpos11->SetBinContent(24,4.968496); mll2jetsForwardSFpos11->SetBinContent(25,4.072594); mll2jetsForwardSFpos11->SetBinContent(26,1.006752); mll2jetsForwardSFpos11->SetBinError(21,0.8027664); mll2jetsForwardSFpos11->SetBinError(22,0.7500252); mll2jetsForwardSFpos11->SetBinError(23,0.7014214); mll2jetsForwardSFpos11->SetBinError(24,0.6837364); mll2jetsForwardSFpos11->SetBinError(25,0.7257634); mll2jetsForwardSFpos11->SetBinError(26,0.2889412); mll2jetsForwardSFpos11->SetEntries(51); mll2jetsForwardSFpos11->SetStats(0); mll2jetsForwardSFpos11->SetMarkerStyle(20); mll2jetsForwardSFpos11->GetXaxis()->SetTitle("M_{ll} [GeV]"); mll2jetsForwardSFpos11->GetXaxis()->SetLabelFont(42); mll2jetsForwardSFpos11->GetXaxis()->SetLabelOffset(0.007); mll2jetsForwardSFpos11->GetXaxis()->SetTitleSize(0.05); mll2jetsForwardSFpos11->GetXaxis()->SetTitleFont(42); mll2jetsForwardSFpos11->GetYaxis()->SetTitle("Events / 4 GeV"); mll2jetsForwardSFpos11->GetYaxis()->SetLabelFont(42); mll2jetsForwardSFpos11->GetYaxis()->SetLabelOffset(0.007); mll2jetsForwardSFpos11->GetYaxis()->SetTitleSize(0.05); mll2jetsForwardSFpos11->GetYaxis()->SetTitleOffset(1.1); mll2jetsForwardSFpos11->GetYaxis()->SetTitleFont(42); mll2jetsForwardSFpos11->GetZaxis()->SetLabelFont(42); mll2jetsForwardSFpos11->GetZaxis()->SetLabelOffset(0.007); mll2jetsForwardSFpos11->GetZaxis()->SetTitleSize(0.05); mll2jetsForwardSFpos11->GetZaxis()->SetTitleFont(42); mll2jetsForwardSFpos11->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("mll2jetsForwardOFpos","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("mll2jetsForwardSFpos","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("mll2jetsForwardSFneg","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__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 *mll2jetsForwardOFpos_ratio12 = new TH1F("mll2jetsForwardOFpos_ratio12","",51,0,204); mll2jetsForwardOFpos_ratio12->SetBinContent(21,1.437496); mll2jetsForwardOFpos_ratio12->SetBinContent(22,0.9460135); mll2jetsForwardOFpos_ratio12->SetBinContent(23,0.7372006); mll2jetsForwardOFpos_ratio12->SetBinContent(24,0.6422327); mll2jetsForwardOFpos_ratio12->SetBinContent(25,0.6359627); mll2jetsForwardOFpos_ratio12->SetBinContent(26,0.3941265); mll2jetsForwardOFpos_ratio12->SetBinError(21,0.400815); mll2jetsForwardOFpos_ratio12->SetBinError(22,0.2331066); mll2jetsForwardOFpos_ratio12->SetBinError(23,0.2254961); mll2jetsForwardOFpos_ratio12->SetBinError(24,0.2156525); mll2jetsForwardOFpos_ratio12->SetBinError(25,0.1498447); mll2jetsForwardOFpos_ratio12->SetBinError(26,0.1622122); mll2jetsForwardOFpos_ratio12->SetMinimum(0); mll2jetsForwardOFpos_ratio12->SetMaximum(2); mll2jetsForwardOFpos_ratio12->SetEntries(63.61778); mll2jetsForwardOFpos_ratio12->SetStats(0); mll2jetsForwardOFpos_ratio12->SetMarkerStyle(20); mll2jetsForwardOFpos_ratio12->GetXaxis()->SetLabelFont(42); mll2jetsForwardOFpos_ratio12->GetXaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos_ratio12->GetXaxis()->SetLabelSize(0.12); mll2jetsForwardOFpos_ratio12->GetXaxis()->SetTitleSize(0.14); mll2jetsForwardOFpos_ratio12->GetXaxis()->SetTitleFont(42); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetTitle("Ratio"); mll2jetsForwardOFpos_ratio12->GetYaxis()->CenterTitle(true); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetNdivisions(4); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetLabelFont(42); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetLabelSize(0.12); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetTitleSize(0.14); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetTitleOffset(0.3); mll2jetsForwardOFpos_ratio12->GetYaxis()->SetTitleFont(42); mll2jetsForwardOFpos_ratio12->GetZaxis()->SetLabelFont(42); mll2jetsForwardOFpos_ratio12->GetZaxis()->SetLabelOffset(0.007); mll2jetsForwardOFpos_ratio12->GetZaxis()->SetTitleSize(0.05); mll2jetsForwardOFpos_ratio12->GetZaxis()->SetTitleFont(42); mll2jetsForwardOFpos_ratio12->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__Forward_mll->cd(); finalPlots/signalregions/estimation_2jets__Forward_mll->Modified(); finalPlots/signalregions/estimation_2jets__Forward_mll->cd(); finalPlots/signalregions/estimation_2jets__Forward_mll->SetSelected(finalPlots/signalregions/estimation_2jets__Forward_mll); }