void closure_3jets_HT() { //=========Macro generated from canvas: finalPlots/closure_3jets_HT/finalPlots/closure_3jets_HT //========= (Mon May 30 18:41:04 2016) by ROOT version6.02/05 TCanvas *finalPlots/closure_3jets_HT = new TCanvas("finalPlots/closure_3jets_HT", "finalPlots/closure_3jets_HT",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/closure_3jets_HT->SetHighLightColor(2); finalPlots/closure_3jets_HT->Range(0,0,1,1); finalPlots/closure_3jets_HT->SetFillColor(0); finalPlots/closure_3jets_HT->SetBorderMode(0); finalPlots/closure_3jets_HT->SetBorderSize(2); finalPlots/closure_3jets_HT->SetTickx(1); finalPlots/closure_3jets_HT->SetTicky(1); finalPlots/closure_3jets_HT->SetLeftMargin(0.13); finalPlots/closure_3jets_HT->SetRightMargin(0.05); finalPlots/closure_3jets_HT->SetTopMargin(0.08); finalPlots/closure_3jets_HT->SetBottomMargin(0.13); finalPlots/closure_3jets_HT->SetFrameFillStyle(0); finalPlots/closure_3jets_HT->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-31.70732,-1.733455,212.1951,3.78782); 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_pos_withOFBin7 = new TH1F("dy3jetsHTSFCentral_pos_withOFBin7","_withOFBin",20,0,200); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(1,2218.802); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(2,1717.277); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(3,1087.259); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(4,543.7032); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(5,268.8469); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(6,113.5194); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(7,52.87805); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(8,27.62082); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(9,12.0208); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(10,5.645284); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(11,2.951592); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(12,1.848851); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(13,1.031899); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(14,0.6844473); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(15,0.52659); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(16,0.384905); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(17,0.2153577); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(18,0.18917); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(19,1.081003); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(1,24.00714); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(2,21.17624); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(3,15.98527); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(4,10.66325); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(5,7.20547); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(6,4.384776); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(7,2.635635); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(8,1.912128); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(9,1.094927); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(10,0.4356717); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(11,0.4089309); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(12,0.1878096); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(13,0.1318702); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(14,0.1014091); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(15,0.1023563); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(16,0.07482908); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(17,0.0579429); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(18,0.0574346); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(19,0.1293134); dy3jetsHTSFCentral_pos_withOFBin7->SetMaximum(2218.802); dy3jetsHTSFCentral_pos_withOFBin7->SetEntries(20); dy3jetsHTSFCentral_pos_withOFBin7->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); dy3jetsHTSFCentral_pos_withOFBin7->SetLineColor(ci); dy3jetsHTSFCentral_pos_withOFBin7->SetLineWidth(2); ci = TColor::GetColor("#ff0000"); dy3jetsHTSFCentral_pos_withOFBin7->SetMarkerColor(ci); dy3jetsHTSFCentral_pos_withOFBin7->SetMarkerStyle(20); dy3jetsHTSFCentral_pos_withOFBin7->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos_withOFBin7->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos_withOFBin7->GetXaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos_withOFBin7->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos_withOFBin7->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos_withOFBin7->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos_withOFBin7->GetYaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos_withOFBin7->GetYaxis()->SetTitleOffset(1.1); dy3jetsHTSFCentral_pos_withOFBin7->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos_withOFBin7->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_pos_withOFBin7->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_pos_withOFBin7->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_pos_withOFBin7->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_pos_withOFBin7->Draw("E,"); TH1F *dy3jetsHTSFCentral_neg_withOFBin8 = new TH1F("dy3jetsHTSFCentral_neg_withOFBin8","_withOFBin",20,0,200); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(1,2215.456); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(2,1700.574); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(3,1022.512); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(4,524.3743); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(5,233.4767); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(6,107.5553); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(7,47.38026); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(8,20.04553); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(9,10.21206); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(10,5.909619); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(11,3.524637); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(12,2.130899); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(13,1.28245); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(14,0.8109579); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(15,0.7542307); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(16,0.2666998); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(17,0.2400805); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(18,0.2106637); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(19,0.6559036); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(1,24.09074); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(2,20.56619); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(3,15.36034); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(4,11.00294); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(5,6.601378); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(6,4.083508); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(7,2.589874); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(8,1.282245); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(9,0.9170123); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(10,0.6988061); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(11,0.584936); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(12,0.3700193); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(13,0.1525397); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(14,0.1559134); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(15,0.116649); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(16,0.06394214); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(17,0.08091114); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(18,0.05655454); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(19,0.09757545); dy3jetsHTSFCentral_neg_withOFBin8->SetMaximum(2215.456); dy3jetsHTSFCentral_neg_withOFBin8->SetEntries(20); dy3jetsHTSFCentral_neg_withOFBin8->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_withOFBin8->SetLineColor(ci); dy3jetsHTSFCentral_neg_withOFBin8->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_withOFBin8->SetMarkerColor(ci); dy3jetsHTSFCentral_neg_withOFBin8->SetMarkerStyle(20); dy3jetsHTSFCentral_neg_withOFBin8->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_withOFBin8->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_withOFBin8->GetXaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg_withOFBin8->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_withOFBin8->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_withOFBin8->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_withOFBin8->GetYaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg_withOFBin8->GetYaxis()->SetTitleOffset(1.1); dy3jetsHTSFCentral_neg_withOFBin8->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_withOFBin8->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_withOFBin8->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_withOFBin8->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg_withOFBin8->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_withOFBin8->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_withOFBin","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_withOFBin","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->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-31.70732,-1,212.1951,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_ratio9 = new TH1F("dy3jetsHTSFCentral_neg_ratio9","",19,0,190); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(1,1.00151); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(2,1.009822); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(3,1.063322); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(4,1.036861); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(5,1.151493); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(6,1.055452); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(7,1.116035); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(8,1.377904); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(9,1.177117); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(10,0.9552703); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(11,0.8374174); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(12,0.8676386); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(13,0.804631); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(14,0.8439986); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(15,0.6981816); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(16,1.443214); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(17,0.8970228); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(18,0.8979715); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(19,1.648113); dy3jetsHTSFCentral_neg_ratio9->SetBinError(1,0.01536305); dy3jetsHTSFCentral_neg_ratio9->SetBinError(2,0.01744152); dy3jetsHTSFCentral_neg_ratio9->SetBinError(3,0.02235063); dy3jetsHTSFCentral_neg_ratio9->SetBinError(4,0.02978023); dy3jetsHTSFCentral_neg_ratio9->SetBinError(5,0.0448602); dy3jetsHTSFCentral_neg_ratio9->SetBinError(6,0.0571643); dy3jetsHTSFCentral_neg_ratio9->SetBinError(7,0.08255843); dy3jetsHTSFCentral_neg_ratio9->SetBinError(8,0.1298759); dy3jetsHTSFCentral_neg_ratio9->SetBinError(9,0.1505614); dy3jetsHTSFCentral_neg_ratio9->SetBinError(10,0.1348884); dy3jetsHTSFCentral_neg_ratio9->SetBinError(11,0.1810381); dy3jetsHTSFCentral_neg_ratio9->SetBinError(12,0.1745471); dy3jetsHTSFCentral_neg_ratio9->SetBinError(13,0.1404742); dy3jetsHTSFCentral_neg_ratio9->SetBinError(14,0.2048593); dy3jetsHTSFCentral_neg_ratio9->SetBinError(15,0.1734268); dy3jetsHTSFCentral_neg_ratio9->SetBinError(16,0.4454755); dy3jetsHTSFCentral_neg_ratio9->SetBinError(17,0.3868347); dy3jetsHTSFCentral_neg_ratio9->SetBinError(18,0.3639293); dy3jetsHTSFCentral_neg_ratio9->SetBinError(19,0.314616); dy3jetsHTSFCentral_neg_ratio9->SetMinimum(0); dy3jetsHTSFCentral_neg_ratio9->SetMaximum(2); dy3jetsHTSFCentral_neg_ratio9->SetEntries(490.3108); dy3jetsHTSFCentral_neg_ratio9->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_ratio9->SetLineColor(ci); dy3jetsHTSFCentral_neg_ratio9->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_ratio9->SetMarkerColor(ci); dy3jetsHTSFCentral_neg_ratio9->SetMarkerStyle(20); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetRange(1,20); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetLabelSize(0.12); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetTitleSize(0.14); dy3jetsHTSFCentral_neg_ratio9->GetXaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetTitle("Ratio"); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->CenterTitle(true); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetNdivisions(4); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetLabelSize(0.12); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetTitleSize(0.14); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetTitleOffset(0.3); dy3jetsHTSFCentral_neg_ratio9->GetYaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio9->GetZaxis()->SetLabelFont(42); dy3jetsHTSFCentral_neg_ratio9->GetZaxis()->SetLabelOffset(0.007); dy3jetsHTSFCentral_neg_ratio9->GetZaxis()->SetTitleSize(0.05); dy3jetsHTSFCentral_neg_ratio9->GetZaxis()->SetTitleFont(42); dy3jetsHTSFCentral_neg_ratio9->Draw("l,"); TLine *line = new TLine(0,1,190,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); Double_t Graph0_fx3[4] = { 0, 350, 350, 0}; Double_t Graph0_fy3[4] = { 0.7, 0.7, 1.3, 1.3}; TGraph *graph = new TGraph(4,Graph0_fx3,Graph0_fy3); graph->SetName("Graph0"); graph->SetTitle("Graph"); ci = 1181; color = new TColor(ci, 1, 0, 0, " ", 0.4); graph->SetFillColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,0,385); Graph_Graph3->SetMinimum(0.64); Graph_Graph3->SetMaximum(1.36); Graph_Graph3->SetDirectory(0); Graph_Graph3->SetStats(0); Graph_Graph3->SetLineWidth(2); Graph_Graph3->SetMarkerStyle(20); Graph_Graph3->GetXaxis()->SetLabelFont(42); Graph_Graph3->GetXaxis()->SetLabelOffset(0.007); Graph_Graph3->GetXaxis()->SetTitleSize(0.05); Graph_Graph3->GetXaxis()->SetTitleFont(42); Graph_Graph3->GetYaxis()->SetLabelFont(42); Graph_Graph3->GetYaxis()->SetLabelOffset(0.007); Graph_Graph3->GetYaxis()->SetTitleSize(0.05); Graph_Graph3->GetYaxis()->SetTitleOffset(1.1); Graph_Graph3->GetYaxis()->SetTitleFont(42); Graph_Graph3->GetZaxis()->SetLabelFont(42); Graph_Graph3->GetZaxis()->SetLabelOffset(0.007); Graph_Graph3->GetZaxis()->SetTitleSize(0.05); Graph_Graph3->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph3); graph->Draw("f"); pad2->Modified(); finalPlots/closure_3jets_HT->cd(); finalPlots/closure_3jets_HT->Modified(); finalPlots/closure_3jets_HT->cd(); finalPlots/closure_3jets_HT->SetSelected(finalPlots/closure_3jets_HT); }