void closure_3jets_() { //=========Macro generated from canvas: finalPlots/closure_3jets_/finalPlots/closure_3jets_ //========= (Tue Mar 29 22:46:35 2016) by ROOT version6.02/05 TCanvas *finalPlots/closure_3jets_ = new TCanvas("finalPlots/closure_3jets_", "finalPlots/closure_3jets_",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); finalPlots/closure_3jets_->SetHighLightColor(2); finalPlots/closure_3jets_->Range(0,0,1,1); finalPlots/closure_3jets_->SetFillColor(0); finalPlots/closure_3jets_->SetBorderMode(0); finalPlots/closure_3jets_->SetBorderSize(2); finalPlots/closure_3jets_->SetTickx(1); finalPlots/closure_3jets_->SetTicky(1); finalPlots/closure_3jets_->SetLeftMargin(0.13); finalPlots/closure_3jets_->SetRightMargin(0.05); finalPlots/closure_3jets_->SetTopMargin(0.08); finalPlots/closure_3jets_->SetBottomMargin(0.13); finalPlots/closure_3jets_->SetFrameFillStyle(0); finalPlots/closure_3jets_->SetFrameBorderMode(0); // ------------>Primitives in pad: pad1 TPad *pad1 = new TPad("pad1", "pad1",0,0.25,1,1); pad1->Draw(); pad1->cd(); pad1->Range(-32.97561,-2.248702,220.6829,4.112589); 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 *dy3jetsSF_pos39 = new TH1F("dy3jetsSF_pos39","",26,0,208); dy3jetsSF_pos39->SetBinContent(1,2026.837); dy3jetsSF_pos39->SetBinContent(2,1740.13); dy3jetsSF_pos39->SetBinContent(3,1172.811); dy3jetsSF_pos39->SetBinContent(4,752.511); dy3jetsSF_pos39->SetBinContent(5,373.3827); dy3jetsSF_pos39->SetBinContent(6,253.9681); dy3jetsSF_pos39->SetBinContent(7,113.2657); dy3jetsSF_pos39->SetBinContent(8,85.57722); dy3jetsSF_pos39->SetBinContent(9,33.14993); dy3jetsSF_pos39->SetBinContent(10,12.95209); dy3jetsSF_pos39->SetBinContent(11,8.448245); dy3jetsSF_pos39->SetBinContent(12,20.76167); dy3jetsSF_pos39->SetBinContent(13,6.740689); dy3jetsSF_pos39->SetBinContent(14,-1.739148); dy3jetsSF_pos39->SetBinContent(15,-0.4603882); dy3jetsSF_pos39->SetBinContent(16,4.685003); dy3jetsSF_pos39->SetBinContent(17,1.795573); dy3jetsSF_pos39->SetBinContent(18,-4.258508); dy3jetsSF_pos39->SetBinContent(19,0.04880417); dy3jetsSF_pos39->SetBinContent(20,2.06705); dy3jetsSF_pos39->SetBinContent(24,-1.449412); dy3jetsSF_pos39->SetBinContent(25,0.1119277); dy3jetsSF_pos39->SetBinContent(26,-0.7743639); dy3jetsSF_pos39->SetBinError(1,92.19251); dy3jetsSF_pos39->SetBinError(2,87.76872); dy3jetsSF_pos39->SetBinError(3,71.12427); dy3jetsSF_pos39->SetBinError(4,56.7664); dy3jetsSF_pos39->SetBinError(5,39.63898); dy3jetsSF_pos39->SetBinError(6,33.26457); dy3jetsSF_pos39->SetBinError(7,23.42493); dy3jetsSF_pos39->SetBinError(8,17.20655); dy3jetsSF_pos39->SetBinError(9,11.63634); dy3jetsSF_pos39->SetBinError(10,7.864547); dy3jetsSF_pos39->SetBinError(11,5.968076); dy3jetsSF_pos39->SetBinError(12,12.90802); dy3jetsSF_pos39->SetBinError(13,4.326891); dy3jetsSF_pos39->SetBinError(14,3.827948); dy3jetsSF_pos39->SetBinError(15,0.5691035); dy3jetsSF_pos39->SetBinError(16,2.715467); dy3jetsSF_pos39->SetBinError(17,3.246922); dy3jetsSF_pos39->SetBinError(18,2.677381); dy3jetsSF_pos39->SetBinError(19,0.04880417); dy3jetsSF_pos39->SetBinError(20,2.066656); dy3jetsSF_pos39->SetBinError(24,1.449412); dy3jetsSF_pos39->SetBinError(25,0.1119277); dy3jetsSF_pos39->SetBinError(26,1.003107); dy3jetsSF_pos39->SetEntries(1530.178); dy3jetsSF_pos39->SetDirectory(0); dy3jetsSF_pos39->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); dy3jetsSF_pos39->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); dy3jetsSF_pos39->SetMarkerColor(ci); dy3jetsSF_pos39->SetMarkerStyle(20); dy3jetsSF_pos39->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsSF_pos39->GetXaxis()->SetLabelFont(42); dy3jetsSF_pos39->GetXaxis()->SetLabelOffset(0.007); dy3jetsSF_pos39->GetXaxis()->SetTitleSize(0.05); dy3jetsSF_pos39->GetXaxis()->SetTitleFont(42); dy3jetsSF_pos39->GetYaxis()->SetTitle("Events / 8 GeV"); dy3jetsSF_pos39->GetYaxis()->SetLabelFont(42); dy3jetsSF_pos39->GetYaxis()->SetLabelOffset(0.007); dy3jetsSF_pos39->GetYaxis()->SetTitleSize(0.05); dy3jetsSF_pos39->GetYaxis()->SetTitleOffset(1.1); dy3jetsSF_pos39->GetYaxis()->SetTitleFont(42); dy3jetsSF_pos39->GetZaxis()->SetLabelFont(42); dy3jetsSF_pos39->GetZaxis()->SetLabelOffset(0.007); dy3jetsSF_pos39->GetZaxis()->SetTitleSize(0.05); dy3jetsSF_pos39->GetZaxis()->SetTitleFont(42); dy3jetsSF_pos39->Draw("E,"); TH1F *dy3jetsSF_neg40 = new TH1F("dy3jetsSF_neg40","",26,0,208); dy3jetsSF_neg40->SetBinContent(1,1937.611); dy3jetsSF_neg40->SetBinContent(2,1634.087); dy3jetsSF_neg40->SetBinContent(3,1224.628); dy3jetsSF_neg40->SetBinContent(4,645.3404); dy3jetsSF_neg40->SetBinContent(5,425.3044); dy3jetsSF_neg40->SetBinContent(6,184.6858); dy3jetsSF_neg40->SetBinContent(7,82.82281); dy3jetsSF_neg40->SetBinContent(8,41.99675); dy3jetsSF_neg40->SetBinContent(9,28.75709); dy3jetsSF_neg40->SetBinContent(10,12.48487); dy3jetsSF_neg40->SetBinContent(11,11.32697); dy3jetsSF_neg40->SetBinContent(12,2.218126); dy3jetsSF_neg40->SetBinContent(13,0.1481203); dy3jetsSF_neg40->SetBinContent(14,3.192568); dy3jetsSF_neg40->SetBinContent(15,-2.957349); dy3jetsSF_neg40->SetBinContent(16,1.537364); dy3jetsSF_neg40->SetBinContent(17,3.05187); dy3jetsSF_neg40->SetBinContent(18,1.908946); dy3jetsSF_neg40->SetBinContent(19,0.00334995); dy3jetsSF_neg40->SetBinContent(22,0.1264442); dy3jetsSF_neg40->SetBinContent(23,-0.1119277); dy3jetsSF_neg40->SetBinContent(26,1.779809); dy3jetsSF_neg40->SetBinError(1,92.53927); dy3jetsSF_neg40->SetBinError(2,85.33604); dy3jetsSF_neg40->SetBinError(3,72.59129); dy3jetsSF_neg40->SetBinError(4,55.87436); dy3jetsSF_neg40->SetBinError(5,41.62476); dy3jetsSF_neg40->SetBinError(6,27.84058); dy3jetsSF_neg40->SetBinError(7,19.57031); dy3jetsSF_neg40->SetBinError(8,14.15505); dy3jetsSF_neg40->SetBinError(9,9.993355); dy3jetsSF_neg40->SetBinError(10,7.632573); dy3jetsSF_neg40->SetBinError(11,6.621065); dy3jetsSF_neg40->SetBinError(12,5.617449); dy3jetsSF_neg40->SetBinError(13,2.66254); dy3jetsSF_neg40->SetBinError(14,2.537492); dy3jetsSF_neg40->SetBinError(15,4.150337); dy3jetsSF_neg40->SetBinError(16,1.453946); dy3jetsSF_neg40->SetBinError(17,2.081271); dy3jetsSF_neg40->SetBinError(18,1.919873); dy3jetsSF_neg40->SetBinError(19,0.00334995); dy3jetsSF_neg40->SetBinError(22,0.1128652); dy3jetsSF_neg40->SetBinError(23,0.1119277); dy3jetsSF_neg40->SetBinError(26,1.781057); dy3jetsSF_neg40->SetEntries(1410.456); dy3jetsSF_neg40->SetDirectory(0); dy3jetsSF_neg40->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsSF_neg40->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); dy3jetsSF_neg40->SetMarkerColor(ci); dy3jetsSF_neg40->SetMarkerStyle(20); dy3jetsSF_neg40->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsSF_neg40->GetXaxis()->SetLabelFont(42); dy3jetsSF_neg40->GetXaxis()->SetLabelOffset(0.007); dy3jetsSF_neg40->GetXaxis()->SetTitleSize(0.05); dy3jetsSF_neg40->GetXaxis()->SetTitleFont(42); dy3jetsSF_neg40->GetYaxis()->SetTitle("Events / 8 GeV"); dy3jetsSF_neg40->GetYaxis()->SetLabelFont(42); dy3jetsSF_neg40->GetYaxis()->SetLabelOffset(0.007); dy3jetsSF_neg40->GetYaxis()->SetTitleSize(0.05); dy3jetsSF_neg40->GetYaxis()->SetTitleOffset(1.1); dy3jetsSF_neg40->GetYaxis()->SetTitleFont(42); dy3jetsSF_neg40->GetZaxis()->SetLabelFont(42); dy3jetsSF_neg40->GetZaxis()->SetLabelOffset(0.007); dy3jetsSF_neg40->GetZaxis()->SetTitleSize(0.05); dy3jetsSF_neg40->GetZaxis()->SetTitleFont(42); dy3jetsSF_neg40->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("dy3jetsSF_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("dy3jetsSF_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.1 fb^{-1} (13 TeV)"); tex->SetNDC(); tex->SetTextAlign(31); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); pad1->Modified(); finalPlots/closure_3jets_->cd(); // ------------>Primitives in pad: pad2 TPad *pad2 = new TPad("pad2", "pad2",0,0.05,1,0.25); pad2->Draw(); pad2->cd(); pad2->Range(-32.97561,-1,220.6829,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 *dy3jetsSF_neg_ratio41 = new TH1F("dy3jetsSF_neg_ratio41","",26,0,208); dy3jetsSF_neg_ratio41->SetBinContent(1,1.04605); dy3jetsSF_neg_ratio41->SetBinContent(2,1.064895); dy3jetsSF_neg_ratio41->SetBinContent(3,0.9576879); dy3jetsSF_neg_ratio41->SetBinContent(4,1.166068); dy3jetsSF_neg_ratio41->SetBinContent(5,0.8779187); dy3jetsSF_neg_ratio41->SetBinContent(6,1.375136); dy3jetsSF_neg_ratio41->SetBinContent(7,1.367567); dy3jetsSF_neg_ratio41->SetBinContent(8,2.037711); dy3jetsSF_neg_ratio41->SetBinContent(9,1.152757); dy3jetsSF_neg_ratio41->SetBinContent(10,1.037423); dy3jetsSF_neg_ratio41->SetBinContent(11,0.7458523); dy3jetsSF_neg_ratio41->SetBinContent(12,9.360006); dy3jetsSF_neg_ratio41->SetBinContent(13,45.50821); dy3jetsSF_neg_ratio41->SetBinContent(14,-0.5447491); dy3jetsSF_neg_ratio41->SetBinContent(15,0.155676); dy3jetsSF_neg_ratio41->SetBinContent(16,3.047426); dy3jetsSF_neg_ratio41->SetBinContent(17,0.5883517); dy3jetsSF_neg_ratio41->SetBinContent(18,-2.230817); dy3jetsSF_neg_ratio41->SetBinContent(19,14.56863); dy3jetsSF_neg_ratio41->SetBinContent(26,-0.4350827); dy3jetsSF_neg_ratio41->SetBinError(1,0.06899119); dy3jetsSF_neg_ratio41->SetBinError(2,0.07731441); dy3jetsSF_neg_ratio41->SetBinError(3,0.08121392); dy3jetsSF_neg_ratio41->SetBinError(4,0.1339045); dy3jetsSF_neg_ratio41->SetBinError(5,0.1267642); dy3jetsSF_neg_ratio41->SetBinError(6,0.2746137); dy3jetsSF_neg_ratio41->SetBinError(7,0.4294369); dy3jetsSF_neg_ratio41->SetBinError(8,0.7997344); dy3jetsSF_neg_ratio41->SetBinError(9,0.5693953); dy3jetsSF_neg_ratio41->SetBinError(10,0.8938944); dy3jetsSF_neg_ratio41->SetBinError(11,0.6838808); dy3jetsSF_neg_ratio41->SetBinError(12,24.40826); dy3jetsSF_neg_ratio41->SetBinError(13,818.5555); dy3jetsSF_neg_ratio41->SetBinError(14,1.274798); dy3jetsSF_neg_ratio41->SetBinError(15,0.2911417); dy3jetsSF_neg_ratio41->SetBinError(16,3.380266); dy3jetsSF_neg_ratio41->SetBinError(17,1.137058); dy3jetsSF_neg_ratio41->SetBinError(18,2.645904); dy3jetsSF_neg_ratio41->SetBinError(19,20.60315); dy3jetsSF_neg_ratio41->SetBinError(26,0.712188); dy3jetsSF_neg_ratio41->SetMinimum(0); dy3jetsSF_neg_ratio41->SetMaximum(2); dy3jetsSF_neg_ratio41->SetEntries(0.01022769); dy3jetsSF_neg_ratio41->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsSF_neg_ratio41->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); dy3jetsSF_neg_ratio41->SetMarkerColor(ci); dy3jetsSF_neg_ratio41->SetMarkerStyle(20); dy3jetsSF_neg_ratio41->GetXaxis()->SetLabelFont(42); dy3jetsSF_neg_ratio41->GetXaxis()->SetLabelOffset(0.007); dy3jetsSF_neg_ratio41->GetXaxis()->SetLabelSize(0.12); dy3jetsSF_neg_ratio41->GetXaxis()->SetTitleSize(0.14); dy3jetsSF_neg_ratio41->GetXaxis()->SetTitleFont(42); dy3jetsSF_neg_ratio41->GetYaxis()->SetTitle("Ratio"); dy3jetsSF_neg_ratio41->GetYaxis()->CenterTitle(true); dy3jetsSF_neg_ratio41->GetYaxis()->SetNdivisions(4); dy3jetsSF_neg_ratio41->GetYaxis()->SetLabelFont(42); dy3jetsSF_neg_ratio41->GetYaxis()->SetLabelOffset(0.007); dy3jetsSF_neg_ratio41->GetYaxis()->SetLabelSize(0.12); dy3jetsSF_neg_ratio41->GetYaxis()->SetTitleSize(0.14); dy3jetsSF_neg_ratio41->GetYaxis()->SetTitleOffset(0.3); dy3jetsSF_neg_ratio41->GetYaxis()->SetTitleFont(42); dy3jetsSF_neg_ratio41->GetZaxis()->SetLabelFont(42); dy3jetsSF_neg_ratio41->GetZaxis()->SetLabelOffset(0.007); dy3jetsSF_neg_ratio41->GetZaxis()->SetTitleSize(0.05); dy3jetsSF_neg_ratio41->GetZaxis()->SetTitleFont(42); dy3jetsSF_neg_ratio41->Draw("l, "); TLine *line = new TLine(0,1,208,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); Double_t Graph0_fx3[4] = { 0, 250, 250, 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,275); Graph_Graph3->SetMinimum(0.64); Graph_Graph3->SetMaximum(1.36); Graph_Graph3->SetDirectory(0); Graph_Graph3->SetStats(0); 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_->cd(); finalPlots/closure_3jets_->Modified(); finalPlots/closure_3jets_->cd(); finalPlots/closure_3jets_->SetSelected(finalPlots/closure_3jets_); }