void closure_3jets_HT() { //=========Macro generated from canvas: finalPlots/closure_3jets_HT/finalPlots/closure_3jets_HT //========= (Mon May 30 10:40:24 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.73326,212.1951,3.786069); 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,2210.666); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(2,1695.483); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(3,1074.279); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(4,532.0079); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(5,263.1353); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(6,111.8382); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(7,51.21085); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(8,27.39597); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(9,11.50949); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(10,5.569012); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(11,2.967076); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(12,1.830188); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(13,1.009436); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(14,0.6557416); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(15,0.5270406); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(16,0.3981788); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(17,0.2185); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(18,0.18917); dy3jetsHTSFCentral_pos_withOFBin7->SetBinContent(19,1.064125); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(1,23.94024); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(2,21.04529); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(3,15.87735); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(4,10.54001); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(5,7.112318); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(6,4.368694); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(7,2.593038); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(8,1.900315); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(9,1.043307); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(10,0.4346326); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(11,0.4093637); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(12,0.1905509); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(13,0.1247464); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(14,0.09932162); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(15,0.1023573); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(16,0.0760779); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(17,0.05876732); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(18,0.0574346); dy3jetsHTSFCentral_pos_withOFBin7->SetBinError(19,0.1282071); dy3jetsHTSFCentral_pos_withOFBin7->SetMaximum(2210.666); 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()->SetRange(1,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,2223.175); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(2,1717.46); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(3,1044.002); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(4,530.8184); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(5,240.605); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(6,110.8863); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(7,48.00833); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(8,20.76745); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(9,10.2885); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(10,5.895638); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(11,3.606427); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(12,2.123336); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(13,1.329484); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(14,0.7687256); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(15,0.7773416); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(16,0.2769098); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(17,0.2492812); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(18,0.1912531); dy3jetsHTSFCentral_neg_withOFBin8->SetBinContent(19,0.6754887); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(1,24.13777); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(2,20.67655); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(3,15.55469); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(4,11.05617); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(5,6.737893); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(6,4.161763); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(7,2.607173); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(8,1.313716); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(9,0.91753); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(10,0.6975982); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(11,0.5873053); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(12,0.3699282); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(13,0.1547365); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(14,0.1537825); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(15,0.1178285); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(16,0.06621391); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(17,0.08145229); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(18,0.05305533); dy3jetsHTSFCentral_neg_withOFBin8->SetBinError(19,0.09952159); dy3jetsHTSFCentral_neg_withOFBin8->SetMaximum(2223.175); 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()->SetRange(1,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(-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_ratio9 = new TH1F("dy3jetsHTSFCentral_neg_ratio9","",19,0,190); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(1,0.994373); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(2,0.9872039); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(3,1.029001); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(4,1.002241); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(5,1.09364); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(6,1.008584); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(7,1.066708); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(8,1.319178); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(9,1.118676); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(10,0.9445988); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(11,0.8227192); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(12,0.8619396); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(13,0.7592697); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(14,0.8530242); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(15,0.6780038); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(16,1.437937); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(17,0.8765201); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(18,0.9891085); dy3jetsHTSFCentral_neg_ratio9->SetBinContent(19,1.57534); dy3jetsHTSFCentral_neg_ratio9->SetBinError(1,0.01524858); dy3jetsHTSFCentral_neg_ratio9->SetBinError(2,0.01707064); dy3jetsHTSFCentral_neg_ratio9->SetBinError(3,0.02159475); dy3jetsHTSFCentral_neg_ratio9->SetBinError(4,0.02881043); dy3jetsHTSFCentral_neg_ratio9->SetBinError(5,0.04256489); dy3jetsHTSFCentral_neg_ratio9->SetBinError(6,0.05463627); dy3jetsHTSFCentral_neg_ratio9->SetBinError(7,0.07920312); dy3jetsHTSFCentral_neg_ratio9->SetBinError(8,0.1238419); dy3jetsHTSFCentral_neg_ratio9->SetBinError(9,0.1422526); dy3jetsHTSFCentral_neg_ratio9->SetBinError(10,0.1338923); dy3jetsHTSFCentral_neg_ratio9->SetBinError(11,0.1755987); dy3jetsHTSFCentral_neg_ratio9->SetBinError(12,0.1749392); dy3jetsHTSFCentral_neg_ratio9->SetBinError(13,0.1288933); dy3jetsHTSFCentral_neg_ratio9->SetBinError(14,0.2140411); dy3jetsHTSFCentral_neg_ratio9->SetBinError(15,0.1670344); dy3jetsHTSFCentral_neg_ratio9->SetBinError(16,0.4401185); dy3jetsHTSFCentral_neg_ratio9->SetBinError(17,0.3709483); dy3jetsHTSFCentral_neg_ratio9->SetBinError(18,0.4067834); dy3jetsHTSFCentral_neg_ratio9->SetBinError(19,0.2998228); dy3jetsHTSFCentral_neg_ratio9->SetMinimum(0); dy3jetsHTSFCentral_neg_ratio9->SetMaximum(2); dy3jetsHTSFCentral_neg_ratio9->SetEntries(468.4982); 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,19); 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); }