void closure_3jets_HT_Central() { //=========Macro generated from canvas: finalPlots/closure_3jets_HT_Central/finalPlots/closure_3jets_HT_Central //========= (Mon May 30 18:41:04 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(-31.70732,-1.988274,212.1951,3.891674); 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,1373.275); dy3jetsHTSFCentral_pos1->SetBinContent(2,1063.872); dy3jetsHTSFCentral_pos1->SetBinContent(3,673.6978); dy3jetsHTSFCentral_pos1->SetBinContent(4,342.7792); dy3jetsHTSFCentral_pos1->SetBinContent(5,174.0157); dy3jetsHTSFCentral_pos1->SetBinContent(6,71.46273); dy3jetsHTSFCentral_pos1->SetBinContent(7,34.64081); dy3jetsHTSFCentral_pos1->SetBinContent(8,18.69559); dy3jetsHTSFCentral_pos1->SetBinContent(9,7.31854); dy3jetsHTSFCentral_pos1->SetBinContent(10,3.424529); dy3jetsHTSFCentral_pos1->SetBinContent(11,2.130638); dy3jetsHTSFCentral_pos1->SetBinContent(12,1.057004); dy3jetsHTSFCentral_pos1->SetBinContent(13,0.6203058); dy3jetsHTSFCentral_pos1->SetBinContent(14,0.5256149); dy3jetsHTSFCentral_pos1->SetBinContent(15,0.2637043); dy3jetsHTSFCentral_pos1->SetBinContent(16,0.302642); dy3jetsHTSFCentral_pos1->SetBinContent(17,0.1260434); dy3jetsHTSFCentral_pos1->SetBinContent(18,0.1373596); dy3jetsHTSFCentral_pos1->SetBinContent(19,0.6998572); dy3jetsHTSFCentral_pos1->SetBinError(1,19.01234); dy3jetsHTSFCentral_pos1->SetBinError(2,16.78217); dy3jetsHTSFCentral_pos1->SetBinError(3,12.52798); dy3jetsHTSFCentral_pos1->SetBinError(4,8.523963); dy3jetsHTSFCentral_pos1->SetBinError(5,5.853264); dy3jetsHTSFCentral_pos1->SetBinError(6,3.386305); dy3jetsHTSFCentral_pos1->SetBinError(7,2.12544); dy3jetsHTSFCentral_pos1->SetBinError(8,1.628401); dy3jetsHTSFCentral_pos1->SetBinError(9,0.6846689); dy3jetsHTSFCentral_pos1->SetBinError(10,0.2793849); dy3jetsHTSFCentral_pos1->SetBinError(11,0.3910571); dy3jetsHTSFCentral_pos1->SetBinError(12,0.1359684); dy3jetsHTSFCentral_pos1->SetBinError(13,0.1037986); dy3jetsHTSFCentral_pos1->SetBinError(14,0.08862338); dy3jetsHTSFCentral_pos1->SetBinError(15,0.05948203); dy3jetsHTSFCentral_pos1->SetBinError(16,0.0673347); dy3jetsHTSFCentral_pos1->SetBinError(17,0.04647306); dy3jetsHTSFCentral_pos1->SetBinError(18,0.05097827); dy3jetsHTSFCentral_pos1->SetBinError(19,0.1052312); dy3jetsHTSFCentral_pos1->SetEntries(15334.7); 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,20); 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,1376.391); dy3jetsHTSFCentral_neg2->SetBinContent(2,1048.2); dy3jetsHTSFCentral_neg2->SetBinContent(3,639.2814); dy3jetsHTSFCentral_neg2->SetBinContent(4,332.0158); dy3jetsHTSFCentral_neg2->SetBinContent(5,144.0688); dy3jetsHTSFCentral_neg2->SetBinContent(6,66.22896); dy3jetsHTSFCentral_neg2->SetBinContent(7,28.9609); dy3jetsHTSFCentral_neg2->SetBinContent(8,13.60023); dy3jetsHTSFCentral_neg2->SetBinContent(9,6.272995); dy3jetsHTSFCentral_neg2->SetBinContent(10,3.976471); dy3jetsHTSFCentral_neg2->SetBinContent(11,2.685254); dy3jetsHTSFCentral_neg2->SetBinContent(12,1.526996); dy3jetsHTSFCentral_neg2->SetBinContent(13,0.9700086); dy3jetsHTSFCentral_neg2->SetBinContent(14,0.5068537); dy3jetsHTSFCentral_neg2->SetBinContent(15,0.6189032); dy3jetsHTSFCentral_neg2->SetBinContent(16,0.188851); dy3jetsHTSFCentral_neg2->SetBinContent(17,0.2328709); dy3jetsHTSFCentral_neg2->SetBinContent(18,0.179717); dy3jetsHTSFCentral_neg2->SetBinContent(19,0.5136527); dy3jetsHTSFCentral_neg2->SetBinError(1,19.13205); dy3jetsHTSFCentral_neg2->SetBinError(2,16.09426); dy3jetsHTSFCentral_neg2->SetBinError(3,12.08829); dy3jetsHTSFCentral_neg2->SetBinError(4,8.325296); dy3jetsHTSFCentral_neg2->SetBinError(5,5.112745); dy3jetsHTSFCentral_neg2->SetBinError(6,3.109141); dy3jetsHTSFCentral_neg2->SetBinError(7,1.875989); dy3jetsHTSFCentral_neg2->SetBinError(8,1.108286); dy3jetsHTSFCentral_neg2->SetBinError(9,0.6611624); dy3jetsHTSFCentral_neg2->SetBinError(10,0.5405949); dy3jetsHTSFCentral_neg2->SetBinError(11,0.570858); dy3jetsHTSFCentral_neg2->SetBinError(12,0.3555297); dy3jetsHTSFCentral_neg2->SetBinError(13,0.1357649); dy3jetsHTSFCentral_neg2->SetBinError(14,0.09750546); dy3jetsHTSFCentral_neg2->SetBinError(15,0.1063373); dy3jetsHTSFCentral_neg2->SetBinError(16,0.05291793); dy3jetsHTSFCentral_neg2->SetBinError(17,0.08072951); dy3jetsHTSFCentral_neg2->SetBinError(18,0.05219912); dy3jetsHTSFCentral_neg2->SetBinError(19,0.08572846); dy3jetsHTSFCentral_neg2->SetEntries(15236.03); 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()->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(-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_ratio3 = new TH1F("dy3jetsHTSFCentral_neg_ratio3","",19,0,190); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(1,0.997736); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(2,1.014952); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(3,1.053836); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(4,1.032418); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(5,1.207865); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(6,1.079025); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(7,1.196123); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(8,1.374653); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(9,1.166674); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(10,0.8611979); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(11,0.7934584); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(12,0.692211); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(13,0.6394849); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(14,1.037015); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(15,0.4260833); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(16,1.602544); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(17,0.5412585); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(18,0.7643106); dy3jetsHTSFCentral_neg_ratio3->SetBinContent(19,1.362511); dy3jetsHTSFCentral_neg_ratio3->SetBinError(1,0.01957407); dy3jetsHTSFCentral_neg_ratio3->SetBinError(2,0.02234253); dy3jetsHTSFCentral_neg_ratio3->SetBinError(3,0.02794877); dy3jetsHTSFCentral_neg_ratio3->SetBinError(4,0.03645963); dy3jetsHTSFCentral_neg_ratio3->SetBinError(5,0.05905981); dy3jetsHTSFCentral_neg_ratio3->SetBinError(6,0.071974); dy3jetsHTSFCentral_neg_ratio3->SetBinError(7,0.106721); dy3jetsHTSFCentral_neg_ratio3->SetBinError(8,0.1639657); dy3jetsHTSFCentral_neg_ratio3->SetBinError(9,0.1644178); dy3jetsHTSFCentral_neg_ratio3->SetBinError(10,0.1365422); dy3jetsHTSFCentral_neg_ratio3->SetBinError(11,0.2228494); dy3jetsHTSFCentral_neg_ratio3->SetBinError(12,0.184129); dy3jetsHTSFCentral_neg_ratio3->SetBinError(13,0.139505); dy3jetsHTSFCentral_neg_ratio3->SetBinError(14,0.2652747); dy3jetsHTSFCentral_neg_ratio3->SetBinError(15,0.1208151); dy3jetsHTSFCentral_neg_ratio3->SetBinError(16,0.5733869); dy3jetsHTSFCentral_neg_ratio3->SetBinError(17,0.2739246); dy3jetsHTSFCentral_neg_ratio3->SetBinError(18,0.3602002); dy3jetsHTSFCentral_neg_ratio3->SetBinError(19,0.3060768); dy3jetsHTSFCentral_neg_ratio3->SetMinimum(0); dy3jetsHTSFCentral_neg_ratio3->SetMaximum(2); dy3jetsHTSFCentral_neg_ratio3->SetEntries(389.8291); 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,20); 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); }