void closure_3jets_HT_Central() { //=========Macro generated from canvas: finalPlots/closure_3jets_HT_Central/finalPlots/closure_3jets_HT_Central //========= (Fri May 20 16:11:17 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,-2.176619,201.5854,3.934228); 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,1451.715); dy3jetsHTSFCentral_pos1->SetBinContent(2,1088.937); dy3jetsHTSFCentral_pos1->SetBinContent(3,632.472); dy3jetsHTSFCentral_pos1->SetBinContent(4,320.9012); dy3jetsHTSFCentral_pos1->SetBinContent(5,141.1872); dy3jetsHTSFCentral_pos1->SetBinContent(6,57.48198); dy3jetsHTSFCentral_pos1->SetBinContent(7,27.44675); dy3jetsHTSFCentral_pos1->SetBinContent(8,10.61835); dy3jetsHTSFCentral_pos1->SetBinContent(9,4.762313); dy3jetsHTSFCentral_pos1->SetBinContent(10,2.166149); dy3jetsHTSFCentral_pos1->SetBinContent(11,2.094162); dy3jetsHTSFCentral_pos1->SetBinContent(12,0.7987716); dy3jetsHTSFCentral_pos1->SetBinContent(13,0.6163313); dy3jetsHTSFCentral_pos1->SetBinContent(14,0.2819366); dy3jetsHTSFCentral_pos1->SetBinContent(15,0.19273); dy3jetsHTSFCentral_pos1->SetBinContent(16,0.2511637); dy3jetsHTSFCentral_pos1->SetBinContent(17,0.2160947); dy3jetsHTSFCentral_pos1->SetBinContent(18,0.09080148); dy3jetsHTSFCentral_pos1->SetBinContent(19,0.498204); dy3jetsHTSFCentral_pos1->SetBinError(1,19.95649); dy3jetsHTSFCentral_pos1->SetBinError(2,16.38458); dy3jetsHTSFCentral_pos1->SetBinError(3,12.11852); dy3jetsHTSFCentral_pos1->SetBinError(4,8.212826); dy3jetsHTSFCentral_pos1->SetBinError(5,5.107175); dy3jetsHTSFCentral_pos1->SetBinError(6,2.998468); dy3jetsHTSFCentral_pos1->SetBinError(7,1.976701); dy3jetsHTSFCentral_pos1->SetBinError(8,1.013827); dy3jetsHTSFCentral_pos1->SetBinError(9,0.4129362); dy3jetsHTSFCentral_pos1->SetBinError(10,0.2249248); dy3jetsHTSFCentral_pos1->SetBinError(11,0.426748); dy3jetsHTSFCentral_pos1->SetBinError(12,0.1254695); dy3jetsHTSFCentral_pos1->SetBinError(13,0.0948089); dy3jetsHTSFCentral_pos1->SetBinError(14,0.06124433); dy3jetsHTSFCentral_pos1->SetBinError(15,0.05165113); dy3jetsHTSFCentral_pos1->SetBinError(16,0.06602569); dy3jetsHTSFCentral_pos1->SetBinError(17,0.06013732); dy3jetsHTSFCentral_pos1->SetBinError(18,0.03641443); dy3jetsHTSFCentral_pos1->SetBinError(19,0.0897474); dy3jetsHTSFCentral_pos1->SetEntries(15201.55); 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); 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,1447.726); dy3jetsHTSFCentral_neg2->SetBinContent(2,1078.343); dy3jetsHTSFCentral_neg2->SetBinContent(3,632.7125); dy3jetsHTSFCentral_neg2->SetBinContent(4,307.7412); dy3jetsHTSFCentral_neg2->SetBinContent(5,128.3634); dy3jetsHTSFCentral_neg2->SetBinContent(6,51.15084); dy3jetsHTSFCentral_neg2->SetBinContent(7,22.51326); dy3jetsHTSFCentral_neg2->SetBinContent(8,11.00579); dy3jetsHTSFCentral_neg2->SetBinContent(9,4.761261); dy3jetsHTSFCentral_neg2->SetBinContent(10,2.826684); dy3jetsHTSFCentral_neg2->SetBinContent(11,2.444836); dy3jetsHTSFCentral_neg2->SetBinContent(12,0.9348249); dy3jetsHTSFCentral_neg2->SetBinContent(13,0.6853465); dy3jetsHTSFCentral_neg2->SetBinContent(14,0.455006); dy3jetsHTSFCentral_neg2->SetBinContent(15,0.2488315); dy3jetsHTSFCentral_neg2->SetBinContent(16,0.1976487); dy3jetsHTSFCentral_neg2->SetBinContent(17,0.1763512); dy3jetsHTSFCentral_neg2->SetBinContent(18,0.1810636); dy3jetsHTSFCentral_neg2->SetBinContent(19,0.2640077); dy3jetsHTSFCentral_neg2->SetBinError(1,19.58464); dy3jetsHTSFCentral_neg2->SetBinError(2,16.25874); dy3jetsHTSFCentral_neg2->SetBinError(3,12.01386); dy3jetsHTSFCentral_neg2->SetBinError(4,7.91251); dy3jetsHTSFCentral_neg2->SetBinError(5,4.63406); dy3jetsHTSFCentral_neg2->SetBinError(6,2.564826); dy3jetsHTSFCentral_neg2->SetBinError(7,1.583743); dy3jetsHTSFCentral_neg2->SetBinError(8,0.9648559); dy3jetsHTSFCentral_neg2->SetBinError(9,0.4711027); dy3jetsHTSFCentral_neg2->SetBinError(10,0.4377714); dy3jetsHTSFCentral_neg2->SetBinError(11,0.6119909); dy3jetsHTSFCentral_neg2->SetBinError(12,0.1327643); dy3jetsHTSFCentral_neg2->SetBinError(13,0.1147738); dy3jetsHTSFCentral_neg2->SetBinError(14,0.08733699); dy3jetsHTSFCentral_neg2->SetBinError(15,0.07297655); dy3jetsHTSFCentral_neg2->SetBinError(16,0.06834637); dy3jetsHTSFCentral_neg2->SetBinError(17,0.05173349); dy3jetsHTSFCentral_neg2->SetBinError(18,0.05119168); dy3jetsHTSFCentral_neg2->SetBinError(19,0.06080758); dy3jetsHTSFCentral_neg2->SetEntries(15370.3); dy3jetsHTSFCentral_neg2->SetDirectory(0); dy3jetsHTSFCentral_neg2->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg2->SetLineColor(ci); 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(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/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,1.002755); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(2,1.009825); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(3,0.9996199); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(4,1.042763); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(5,1.099902); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(6,1.123774); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(7,1.219137); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(8,0.9647964); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(9,1.000221); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(10,0.7663217); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(11,0.8565655); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(12,0.8544613); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(13,0.8992988); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(14,0.6196328); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(15,0.7745402); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(16,1.270758); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(17,1.225365); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(18,0.5014893); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(19,1.887081); dy3jetsHTSFCentral_neg_ratio3->SetBinError(1,0.01933988); dy3jetsHTSFCentral_neg_ratio3->SetBinError(2,0.02151012); dy3jetsHTSFCentral_neg_ratio3->SetBinError(3,0.02696503); dy3jetsHTSFCentral_neg_ratio3->SetBinError(4,0.03782927); dy3jetsHTSFCentral_neg_ratio3->SetBinError(5,0.05621113); dy3jetsHTSFCentral_neg_ratio3->SetBinError(6,0.08131111); dy3jetsHTSFCentral_neg_ratio3->SetBinError(7,0.122737); dy3jetsHTSFCentral_neg_ratio3->SetBinError(8,0.1250589); dy3jetsHTSFCentral_neg_ratio3->SetBinError(9,0.1315912); dy3jetsHTSFCentral_neg_ratio3->SetBinError(10,0.1428877); dy3jetsHTSFCentral_neg_ratio3->SetBinError(11,0.2764813); dy3jetsHTSFCentral_neg_ratio3->SetBinError(12,0.1809428); dy3jetsHTSFCentral_neg_ratio3->SetBinError(13,0.2044963); dy3jetsHTSFCentral_neg_ratio3->SetBinError(14,0.1796201); dy3jetsHTSFCentral_neg_ratio3->SetBinError(15,0.3077118); dy3jetsHTSFCentral_neg_ratio3->SetBinError(16,0.5519846); dy3jetsHTSFCentral_neg_ratio3->SetBinError(17,0.495483); dy3jetsHTSFCentral_neg_ratio3->SetBinError(18,0.2460687); dy3jetsHTSFCentral_neg_ratio3->SetBinError(19,0.5517921); dy3jetsHTSFCentral_neg_ratio3->SetMinimum(0); dy3jetsHTSFCentral_neg_ratio3->SetMaximum(2); dy3jetsHTSFCentral_neg_ratio3->SetEntries(286.8162); dy3jetsHTSFCentral_neg_ratio3->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsHTSFCentral_neg_ratio3->SetLineColor(ci); 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->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); }