void closure_3jets_HT_Central() { //=========Macro generated from canvas: finalPlots/closure_3jets_HT_Central/finalPlots/closure_3jets_HT_Central //========= (Mon May 30 10:40:24 2016) by ROOT version6.02/05 TCanvas *finalPlots/closure_3jets_HT_Central = new TCanvas("finalPlots/closure_3jets_HT_Central", "finalPlots/closure_3jets_HT_Central",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/closure_3jets_HT_Central->SetHighLightColor(2); finalPlots/closure_3jets_HT_Central->Range(0,0,1,1); finalPlots/closure_3jets_HT_Central->SetFillColor(0); finalPlots/closure_3jets_HT_Central->SetBorderMode(0); finalPlots/closure_3jets_HT_Central->SetBorderSize(2); finalPlots/closure_3jets_HT_Central->SetTickx(1); finalPlots/closure_3jets_HT_Central->SetTicky(1); finalPlots/closure_3jets_HT_Central->SetLeftMargin(0.13); finalPlots/closure_3jets_HT_Central->SetRightMargin(0.05); finalPlots/closure_3jets_HT_Central->SetTopMargin(0.08); finalPlots/closure_3jets_HT_Central->SetBottomMargin(0.13); finalPlots/closure_3jets_HT_Central->SetFrameFillStyle(0); finalPlots/closure_3jets_HT_Central->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-30.12195,-1.988098,201.5854,3.890055); 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); TH1F *dy3jetsHTSFCentral_pos1 = new TH1F("dy3jetsHTSFCentral_pos1","",19,0,190); dy3jetsHTSFCentral_pos1->SetBinContent(1,1368.601); dy3jetsHTSFCentral_pos1->SetBinContent(2,1056.181); dy3jetsHTSFCentral_pos1->SetBinContent(3,670.7598); dy3jetsHTSFCentral_pos1->SetBinContent(4,335.0964); dy3jetsHTSFCentral_pos1->SetBinContent(5,171.5478); dy3jetsHTSFCentral_pos1->SetBinContent(6,70.2747); dy3jetsHTSFCentral_pos1->SetBinContent(7,34.61532); dy3jetsHTSFCentral_pos1->SetBinContent(8,18.16492); dy3jetsHTSFCentral_pos1->SetBinContent(9,7.263289); dy3jetsHTSFCentral_pos1->SetBinContent(10,3.421483); dy3jetsHTSFCentral_pos1->SetBinContent(11,2.09867); dy3jetsHTSFCentral_pos1->SetBinContent(12,1.083322); dy3jetsHTSFCentral_pos1->SetBinContent(13,0.5968144); dy3jetsHTSFCentral_pos1->SetBinContent(14,0.5004847); dy3jetsHTSFCentral_pos1->SetBinContent(15,0.264155); dy3jetsHTSFCentral_pos1->SetBinContent(16,0.3021802); dy3jetsHTSFCentral_pos1->SetBinContent(17,0.1260428); dy3jetsHTSFCentral_pos1->SetBinContent(18,0.1542382); dy3jetsHTSFCentral_pos1->SetBinContent(19,0.6829785); dy3jetsHTSFCentral_pos1->SetBinError(1,18.96521); dy3jetsHTSFCentral_pos1->SetBinError(2,16.72153); dy3jetsHTSFCentral_pos1->SetBinError(3,12.51131); dy3jetsHTSFCentral_pos1->SetBinError(4,8.399824); dy3jetsHTSFCentral_pos1->SetBinError(5,5.805376); dy3jetsHTSFCentral_pos1->SetBinError(6,3.357411); dy3jetsHTSFCentral_pos1->SetBinError(7,2.156926); dy3jetsHTSFCentral_pos1->SetBinError(8,1.581208); dy3jetsHTSFCentral_pos1->SetBinError(9,0.6841671); dy3jetsHTSFCentral_pos1->SetBinError(10,0.2792452); dy3jetsHTSFCentral_pos1->SetBinError(11,0.39054); dy3jetsHTSFCentral_pos1->SetBinError(12,0.1423963); dy3jetsHTSFCentral_pos1->SetBinError(13,0.0945776); dy3jetsHTSFCentral_pos1->SetBinError(14,0.08627007); dy3jetsHTSFCentral_pos1->SetBinError(15,0.05948383); dy3jetsHTSFCentral_pos1->SetBinError(16,0.06733311); dy3jetsHTSFCentral_pos1->SetBinError(17,0.04647306); dy3jetsHTSFCentral_pos1->SetBinError(18,0.05369983); dy3jetsHTSFCentral_pos1->SetBinError(19,0.1038688); dy3jetsHTSFCentral_pos1->SetEntries(15230.19); dy3jetsHTSFCentral_pos1->SetDirectory(0); dy3jetsHTSFCentral_pos1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); dy3jetsHTSFCentral_pos1->SetLineColor(ci); dy3jetsHTSFCentral_pos1->SetLineWidth(2); ci = TColor::GetColor("#ff0000"); dy3jetsHTSFCentral_pos1->SetMarkerColor(ci); dy3jetsHTSFCentral_pos1->SetMarkerStyle(20); dy3jetsHTSFCentral_pos1->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsHTSFCentral_pos1->GetXaxis()->SetRange(1,19); dy3jetsHTSFCentral_pos1->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos1->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos1->GetXaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos1->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos1->GetYaxis()->SetTitle("Events / 10 GeV"); dy3jetsHTSFCentral_pos1->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos1->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos1->GetYaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos1->GetYaxis()->SetTitleOffset(1.1); dy3jetsHTSFCentral_pos1->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos1->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos1->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos1->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos1->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos1->Draw("E,"); TH1F *dy3jetsHTSFCentral_neg2 = new TH1F("dy3jetsHTSFCentral_neg2","",19,0,190); dy3jetsHTSFCentral_neg2->SetBinContent(1,1379.93); dy3jetsHTSFCentral_neg2->SetBinContent(2,1054.693); dy3jetsHTSFCentral_neg2->SetBinContent(3,649.3964); dy3jetsHTSFCentral_neg2->SetBinContent(4,333.1796); dy3jetsHTSFCentral_neg2->SetBinContent(5,148.4198); dy3jetsHTSFCentral_neg2->SetBinContent(6,67.1722); dy3jetsHTSFCentral_neg2->SetBinContent(7,29.45701); dy3jetsHTSFCentral_neg2->SetBinContent(8,13.75492); dy3jetsHTSFCentral_neg2->SetBinContent(9,6.269327); dy3jetsHTSFCentral_neg2->SetBinContent(10,3.937724); dy3jetsHTSFCentral_neg2->SetBinContent(11,2.776912); dy3jetsHTSFCentral_neg2->SetBinContent(12,1.488367); dy3jetsHTSFCentral_neg2->SetBinContent(13,1.014061); dy3jetsHTSFCentral_neg2->SetBinContent(14,0.4877323); dy3jetsHTSFCentral_neg2->SetBinContent(15,0.6189032); dy3jetsHTSFCentral_neg2->SetBinContent(16,0.2084361); dy3jetsHTSFCentral_neg2->SetBinContent(17,0.2326964); dy3jetsHTSFCentral_neg2->SetBinContent(18,0.1603063); dy3jetsHTSFCentral_neg2->SetBinContent(19,0.5332378); dy3jetsHTSFCentral_neg2->SetBinError(1,19.15512); dy3jetsHTSFCentral_neg2->SetBinError(2,16.1561); dy3jetsHTSFCentral_neg2->SetBinError(3,12.20432); dy3jetsHTSFCentral_neg2->SetBinError(4,8.340107); dy3jetsHTSFCentral_neg2->SetBinError(5,5.205443); dy3jetsHTSFCentral_neg2->SetBinError(6,3.128946); dy3jetsHTSFCentral_neg2->SetBinError(7,1.898393); dy3jetsHTSFCentral_neg2->SetBinError(8,1.109555); dy3jetsHTSFCentral_neg2->SetBinError(9,0.6609998); dy3jetsHTSFCentral_neg2->SetBinError(10,0.5386425); dy3jetsHTSFCentral_neg2->SetBinError(11,0.5734778); dy3jetsHTSFCentral_neg2->SetBinError(12,0.3546278); dy3jetsHTSFCentral_neg2->SetBinError(13,0.1382049); dy3jetsHTSFCentral_neg2->SetBinError(14,0.09551937); dy3jetsHTSFCentral_neg2->SetBinError(15,0.1063373); dy3jetsHTSFCentral_neg2->SetBinError(16,0.05642593); dy3jetsHTSFCentral_neg2->SetBinError(17,0.08072932); dy3jetsHTSFCentral_neg2->SetBinError(18,0.04838595); dy3jetsHTSFCentral_neg2->SetBinError(19,0.08793718); dy3jetsHTSFCentral_neg2->SetEntries(15340.2); dy3jetsHTSFCentral_neg2->SetDirectory(0); dy3jetsHTSFCentral_neg2->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg2->SetLineColor(ci); dy3jetsHTSFCentral_neg2->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg2->SetMarkerColor(ci); dy3jetsHTSFCentral_neg2->SetMarkerStyle(20); dy3jetsHTSFCentral_neg2->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsHTSFCentral_neg2->GetXaxis()->SetRange(1,19); dy3jetsHTSFCentral_neg2->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg2->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg2->GetXaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg2->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg2->GetYaxis()->SetTitle("Events / 10 GeV"); dy3jetsHTSFCentral_neg2->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg2->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg2->GetYaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg2->GetYaxis()->SetTitleOffset(1.1); dy3jetsHTSFCentral_neg2->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg2->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg2->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg2->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg2->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg2->Draw("HIST,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("dy3jetsHTSFCentral_pos","JZB > 0","P"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#ff0000"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(20); entry->SetMarkerSize(1); entry->SetTextFont(42); entry=leg->AddEntry("dy3jetsHTSFCentral_neg","JZB < 0","L"); ci = TColor::GetColor("#0000ff"); entry->SetLineColor(ci); entry->SetLineStyle(1); entry->SetLineWidth(2); 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/closure_3jets_HT_Central->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-30.12195,-1,201.5854,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 *dy3jetsHTSFCentral_neg_ratio3 = new TH1F("dy3jetsHTSFCentral_neg_ratio3","",19,0,190); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(1,0.9917901); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(2,1.001412); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(3,1.032897); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(4,1.005753); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(5,1.155828); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(6,1.046187); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(7,1.175113); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(8,1.320612); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(9,1.158544); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(10,0.8688986); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(11,0.7557566); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(12,0.7278599); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(13,0.5885389); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(14,1.026146); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(15,0.4268115); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(16,1.44975); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(17,0.5416618); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(18,0.9621468); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(19,1.280814); dy3jetsHTSFCentral_neg_ratio3->SetBinError(1,0.01945313); dy3jetsHTSFCentral_neg_ratio3->SetBinError(2,0.02206073); dy3jetsHTSFCentral_neg_ratio3->SetBinError(3,0.02734942); dy3jetsHTSFCentral_neg_ratio3->SetBinError(4,0.03562899); dy3jetsHTSFCentral_neg_ratio3->SetBinError(5,0.05633167); dy3jetsHTSFCentral_neg_ratio3->SetBinError(6,0.06980733); dy3jetsHTSFCentral_neg_ratio3->SetBinError(7,0.1053416); dy3jetsHTSFCentral_neg_ratio3->SetBinError(8,0.1567264); dy3jetsHTSFCentral_neg_ratio3->SetBinError(9,0.163798); dy3jetsHTSFCentral_neg_ratio3->SetBinError(10,0.138405); dy3jetsHTSFCentral_neg_ratio3->SetBinError(11,0.2100925); dy3jetsHTSFCentral_neg_ratio3->SetBinError(12,0.1980641); dy3jetsHTSFCentral_neg_ratio3->SetBinError(13,0.1230138); dy3jetsHTSFCentral_neg_ratio3->SetBinError(14,0.2677185); dy3jetsHTSFCentral_neg_ratio3->SetBinError(15,0.1208932); dy3jetsHTSFCentral_neg_ratio3->SetBinError(16,0.5083127); dy3jetsHTSFCentral_neg_ratio3->SetBinError(17,0.2742255); dy3jetsHTSFCentral_neg_ratio3->SetBinError(18,0.4433404); dy3jetsHTSFCentral_neg_ratio3->SetBinError(19,0.2873276); dy3jetsHTSFCentral_neg_ratio3->SetMinimum(0); dy3jetsHTSFCentral_neg_ratio3->SetMaximum(2); dy3jetsHTSFCentral_neg_ratio3->SetEntries(385.2148); dy3jetsHTSFCentral_neg_ratio3->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_ratio3->SetLineColor(ci); dy3jetsHTSFCentral_neg_ratio3->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_ratio3->SetMarkerColor(ci); dy3jetsHTSFCentral_neg_ratio3->SetMarkerStyle(20); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetRange(1,19); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetLabelSize(0.12); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetTitleSize(0.14); dy3jetsHTSFCentral_neg_ratio3->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetTitle("Ratio"); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->CenterTitle(true); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetNdivisions(4); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetLabelSize(0.12); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetTitleSize(0.14); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetTitleOffset(0.3); dy3jetsHTSFCentral_neg_ratio3->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio3->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio3->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio3->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg_ratio3->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio3->Draw("l,"); TLine *line = new TLine(0,1,190,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); Double_t Graph0_fx1[4] = { 0, 400, 400, 0}; Double_t Graph0_fy1[4] = { 0.7, 0.7, 1.3, 1.3}; TGraph *graph = new TGraph(4,Graph0_fx1,Graph0_fy1); graph->SetName("Graph0"); graph->SetTitle("Graph"); ci = 1179; color = new TColor(ci, 1, 0, 0, " ", 0.4); graph->SetFillColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","Graph",100,0,440); Graph_Graph1->SetMinimum(0.64); Graph_Graph1->SetMaximum(1.36); Graph_Graph1->SetDirectory(0); Graph_Graph1->SetStats(0); Graph_Graph1->SetLineWidth(2); Graph_Graph1->SetMarkerStyle(20); Graph_Graph1->GetXaxis()->SetLabelFont(42); Graph_Graph1->GetXaxis()->SetLabelOffset(0.007); Graph_Graph1->GetXaxis()->SetTitleSize(0.05); Graph_Graph1->GetXaxis()->SetTitleFont(42); Graph_Graph1->GetYaxis()->SetLabelFont(42); Graph_Graph1->GetYaxis()->SetLabelOffset(0.007); Graph_Graph1->GetYaxis()->SetTitleSize(0.05); Graph_Graph1->GetYaxis()->SetTitleOffset(1.1); Graph_Graph1->GetYaxis()->SetTitleFont(42); Graph_Graph1->GetZaxis()->SetLabelFont(42); Graph_Graph1->GetZaxis()->SetLabelOffset(0.007); Graph_Graph1->GetZaxis()->SetTitleSize(0.05); Graph_Graph1->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph1); graph->Draw("f"); pad2->Modified(); finalPlots/closure_3jets_HT_Central->cd(); finalPlots/closure_3jets_HT_Central->Modified(); finalPlots/closure_3jets_HT_Central->cd(); finalPlots/closure_3jets_HT_Central->SetSelected(finalPlots/closure_3jets_HT_Central); }