void closure_3jets_() { //=========Macro generated from canvas: finalPlots/closure_3jets_/finalPlots/closure_3jets_ //========= (Wed Mar 30 12:26:52 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,-1.803319,220.6829,4.104033); 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 *dy3jetsSFCentral_pos49 = new TH1F("dy3jetsSFCentral_pos49","",26,0,208); dy3jetsSFCentral_pos49->SetBinContent(1,2158.462); dy3jetsSFCentral_pos49->SetBinContent(2,1972.764); dy3jetsSFCentral_pos49->SetBinContent(3,1222.075); dy3jetsSFCentral_pos49->SetBinContent(4,838.1088); dy3jetsSFCentral_pos49->SetBinContent(5,405.1718); dy3jetsSFCentral_pos49->SetBinContent(6,279.8333); dy3jetsSFCentral_pos49->SetBinContent(7,128.6643); dy3jetsSFCentral_pos49->SetBinContent(8,94.8861); dy3jetsSFCentral_pos49->SetBinContent(9,35.02428); dy3jetsSFCentral_pos49->SetBinContent(10,12.65838); dy3jetsSFCentral_pos49->SetBinContent(11,23.79464); dy3jetsSFCentral_pos49->SetBinContent(12,5.923481); dy3jetsSFCentral_pos49->SetBinContent(13,10.54971); dy3jetsSFCentral_pos49->SetBinContent(14,-3.855464); dy3jetsSFCentral_pos49->SetBinContent(15,1.446446); dy3jetsSFCentral_pos49->SetBinContent(16,3.543743); dy3jetsSFCentral_pos49->SetBinContent(17,3.554031); dy3jetsSFCentral_pos49->SetBinContent(18,-2.561604); dy3jetsSFCentral_pos49->SetBinContent(19,-2.049024); dy3jetsSFCentral_pos49->SetBinContent(20,2.263912); dy3jetsSFCentral_pos49->SetBinContent(24,-1.587451); dy3jetsSFCentral_pos49->SetBinContent(25,0.1225875); dy3jetsSFCentral_pos49->SetBinContent(26,-0.8481128); dy3jetsSFCentral_pos49->SetBinError(1,100.4312); dy3jetsSFCentral_pos49->SetBinError(2,96.37877); dy3jetsSFCentral_pos49->SetBinError(3,77.73935); dy3jetsSFCentral_pos49->SetBinError(4,61.72304); dy3jetsSFCentral_pos49->SetBinError(5,43.95272); dy3jetsSFCentral_pos49->SetBinError(6,36.34779); dy3jetsSFCentral_pos49->SetBinError(7,25.68951); dy3jetsSFCentral_pos49->SetBinError(8,18.3538); dy3jetsSFCentral_pos49->SetBinError(9,13.10479); dy3jetsSFCentral_pos49->SetBinError(10,8.718402); dy3jetsSFCentral_pos49->SetBinError(11,15.1601); dy3jetsSFCentral_pos49->SetBinError(12,3.531687); dy3jetsSFCentral_pos49->SetBinError(13,4.739783); dy3jetsSFCentral_pos49->SetBinError(14,3.711067); dy3jetsSFCentral_pos49->SetBinError(15,2.047844); dy3jetsSFCentral_pos49->SetBinError(16,2.514989); dy3jetsSFCentral_pos49->SetBinError(17,3.894384); dy3jetsSFCentral_pos49->SetBinError(18,2.044109); dy3jetsSFCentral_pos49->SetBinError(19,2.103156); dy3jetsSFCentral_pos49->SetBinError(20,2.263481); dy3jetsSFCentral_pos49->SetBinError(24,1.587451); dy3jetsSFCentral_pos49->SetBinError(25,0.1225875); dy3jetsSFCentral_pos49->SetBinError(26,1.098641); dy3jetsSFCentral_pos49->SetEntries(1520.412); dy3jetsSFCentral_pos49->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); dy3jetsSFCentral_pos49->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); dy3jetsSFCentral_pos49->SetMarkerColor(ci); dy3jetsSFCentral_pos49->SetMarkerStyle(20); dy3jetsSFCentral_pos49->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsSFCentral_pos49->GetXaxis()->SetLabelFont(42); dy3jetsSFCentral_pos49->GetXaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_pos49->GetXaxis()->SetTitleSize(0.05); dy3jetsSFCentral_pos49->GetXaxis()->SetTitleFont(42); dy3jetsSFCentral_pos49->GetYaxis()->SetTitle("Events / 8 GeV"); dy3jetsSFCentral_pos49->GetYaxis()->SetLabelFont(42); dy3jetsSFCentral_pos49->GetYaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_pos49->GetYaxis()->SetTitleSize(0.05); dy3jetsSFCentral_pos49->GetYaxis()->SetTitleOffset(1.1); dy3jetsSFCentral_pos49->GetYaxis()->SetTitleFont(42); dy3jetsSFCentral_pos49->GetZaxis()->SetLabelFont(42); dy3jetsSFCentral_pos49->GetZaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_pos49->GetZaxis()->SetTitleSize(0.05); dy3jetsSFCentral_pos49->GetZaxis()->SetTitleFont(42); dy3jetsSFCentral_pos49->Draw("E,"); TH1F *dy3jetsSFCentral_neg50 = new TH1F("dy3jetsSFCentral_neg50","",26,0,208); dy3jetsSFCentral_neg50->SetBinContent(1,2171.839); dy3jetsSFCentral_neg50->SetBinContent(2,1740.146); dy3jetsSFCentral_neg50->SetBinContent(3,1372.156); dy3jetsSFCentral_neg50->SetBinContent(4,714.6143); dy3jetsSFCentral_neg50->SetBinContent(5,469.2246); dy3jetsSFCentral_neg50->SetBinContent(6,193.2026); dy3jetsSFCentral_neg50->SetBinContent(7,96.89272); dy3jetsSFCentral_neg50->SetBinContent(8,42.8934); dy3jetsSFCentral_neg50->SetBinContent(9,37.28711); dy3jetsSFCentral_neg50->SetBinContent(10,10.68); dy3jetsSFCentral_neg50->SetBinContent(11,16.09817); dy3jetsSFCentral_neg50->SetBinContent(12,0.8415658); dy3jetsSFCentral_neg50->SetBinContent(13,0.1625866); dy3jetsSFCentral_neg50->SetBinContent(14,3.496622); dy3jetsSFCentral_neg50->SetBinContent(15,-3.239001); dy3jetsSFCentral_neg50->SetBinContent(16,1.68378); dy3jetsSFCentral_neg50->SetBinContent(17,3.342524); dy3jetsSFCentral_neg50->SetBinContent(18,2.118376); dy3jetsSFCentral_neg50->SetBinContent(19,-0.02395636); dy3jetsSFCentral_neg50->SetBinContent(22,0.1225875); dy3jetsSFCentral_neg50->SetBinContent(23,-0.1066885); dy3jetsSFCentral_neg50->SetBinContent(26,1.949314); dy3jetsSFCentral_neg50->SetBinError(1,101.44); dy3jetsSFCentral_neg50->SetBinError(2,93.57414); dy3jetsSFCentral_neg50->SetBinError(3,79.81123); dy3jetsSFCentral_neg50->SetBinError(4,61.32731); dy3jetsSFCentral_neg50->SetBinError(5,45.6036); dy3jetsSFCentral_neg50->SetBinError(6,29.66355); dy3jetsSFCentral_neg50->SetBinError(7,22.70234); dy3jetsSFCentral_neg50->SetBinError(8,15.13366); dy3jetsSFCentral_neg50->SetBinError(9,10.98592); dy3jetsSFCentral_neg50->SetBinError(10,8.610085); dy3jetsSFCentral_neg50->SetBinError(11,7.224648); dy3jetsSFCentral_neg50->SetBinError(12,6.353941); dy3jetsSFCentral_neg50->SetBinError(13,2.916115); dy3jetsSFCentral_neg50->SetBinError(14,2.779158); dy3jetsSFCentral_neg50->SetBinError(15,4.545607); dy3jetsSFCentral_neg50->SetBinError(16,1.592417); dy3jetsSFCentral_neg50->SetBinError(17,2.279487); dy3jetsSFCentral_neg50->SetBinError(18,2.102537); dy3jetsSFCentral_neg50->SetBinError(19,0.02786794); dy3jetsSFCentral_neg50->SetBinError(22,0.1225875); dy3jetsSFCentral_neg50->SetBinError(23,0.1236142); dy3jetsSFCentral_neg50->SetBinError(26,1.950681); dy3jetsSFCentral_neg50->SetEntries(1423.256); dy3jetsSFCentral_neg50->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsSFCentral_neg50->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); dy3jetsSFCentral_neg50->SetMarkerColor(ci); dy3jetsSFCentral_neg50->SetMarkerStyle(20); dy3jetsSFCentral_neg50->GetXaxis()->SetTitle("JZB [GeV]"); dy3jetsSFCentral_neg50->GetXaxis()->SetLabelFont(42); dy3jetsSFCentral_neg50->GetXaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg50->GetXaxis()->SetTitleSize(0.05); dy3jetsSFCentral_neg50->GetXaxis()->SetTitleFont(42); dy3jetsSFCentral_neg50->GetYaxis()->SetTitle("Events / 8 GeV"); dy3jetsSFCentral_neg50->GetYaxis()->SetLabelFont(42); dy3jetsSFCentral_neg50->GetYaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg50->GetYaxis()->SetTitleSize(0.05); dy3jetsSFCentral_neg50->GetYaxis()->SetTitleOffset(1.1); dy3jetsSFCentral_neg50->GetYaxis()->SetTitleFont(42); dy3jetsSFCentral_neg50->GetZaxis()->SetLabelFont(42); dy3jetsSFCentral_neg50->GetZaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg50->GetZaxis()->SetTitleSize(0.05); dy3jetsSFCentral_neg50->GetZaxis()->SetTitleFont(42); dy3jetsSFCentral_neg50->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("dy3jetsSFCentral_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("dy3jetsSFCentral_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_->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 *dy3jetsSFCentral_neg_ratio51 = new TH1F("dy3jetsSFCentral_neg_ratio51","",26,0,208); dy3jetsSFCentral_neg_ratio51->SetBinContent(1,0.9938411); dy3jetsSFCentral_neg_ratio51->SetBinContent(2,1.133677); dy3jetsSFCentral_neg_ratio51->SetBinContent(3,0.8906242); dy3jetsSFCentral_neg_ratio51->SetBinContent(4,1.172813); dy3jetsSFCentral_neg_ratio51->SetBinContent(5,0.8634923); dy3jetsSFCentral_neg_ratio51->SetBinContent(6,1.448393); dy3jetsSFCentral_neg_ratio51->SetBinContent(7,1.327905); dy3jetsSFCentral_neg_ratio51->SetBinContent(8,2.212138); dy3jetsSFCentral_neg_ratio51->SetBinContent(9,0.9393134); dy3jetsSFCentral_neg_ratio51->SetBinContent(10,1.185241); dy3jetsSFCentral_neg_ratio51->SetBinContent(11,1.478096); dy3jetsSFCentral_neg_ratio51->SetBinContent(12,7.038643); dy3jetsSFCentral_neg_ratio51->SetBinContent(13,64.88669); dy3jetsSFCentral_neg_ratio51->SetBinContent(14,-1.102625); dy3jetsSFCentral_neg_ratio51->SetBinContent(15,-0.4465717); dy3jetsSFCentral_neg_ratio51->SetBinContent(16,2.104636); dy3jetsSFCentral_neg_ratio51->SetBinContent(17,1.063277); dy3jetsSFCentral_neg_ratio51->SetBinContent(18,-1.20923); dy3jetsSFCentral_neg_ratio51->SetBinContent(19,85.53152); dy3jetsSFCentral_neg_ratio51->SetBinContent(26,-0.4350827); dy3jetsSFCentral_neg_ratio51->SetBinError(1,0.06552192); dy3jetsSFCentral_neg_ratio51->SetBinError(2,0.08236456); dy3jetsSFCentral_neg_ratio51->SetBinError(3,0.07676804); dy3jetsSFCentral_neg_ratio51->SetBinError(4,0.1326292); dy3jetsSFCentral_neg_ratio51->SetBinError(5,0.1257664); dy3jetsSFCentral_neg_ratio51->SetBinError(6,0.2912853); dy3jetsSFCentral_neg_ratio51->SetBinError(7,0.4087783); dy3jetsSFCentral_neg_ratio51->SetBinError(8,0.890086); dy3jetsSFCentral_neg_ratio51->SetBinError(9,0.4473391); dy3jetsSFCentral_neg_ratio51->SetBinError(10,1.256752); dy3jetsSFCentral_neg_ratio51->SetBinError(11,1.151905); dy3jetsSFCentral_neg_ratio51->SetBinError(12,53.30819); dy3jetsSFCentral_neg_ratio51->SetBinError(13,1164.158); dy3jetsSFCentral_neg_ratio51->SetBinError(14,1.376394); dy3jetsSFCentral_neg_ratio51->SetBinError(15,0.8902301); dy3jetsSFCentral_neg_ratio51->SetBinError(16,2.488544); dy3jetsSFCentral_neg_ratio51->SetBinError(17,1.37232); dy3jetsSFCentral_neg_ratio51->SetBinError(18,1.539989); dy3jetsSFCentral_neg_ratio51->SetBinError(19,132.6911); dy3jetsSFCentral_neg_ratio51->SetBinError(26,0.712188); dy3jetsSFCentral_neg_ratio51->SetMinimum(0); dy3jetsSFCentral_neg_ratio51->SetMaximum(2); dy3jetsSFCentral_neg_ratio51->SetEntries(0.021274); dy3jetsSFCentral_neg_ratio51->SetStats(0); ci = TColor::GetColor("#0000ff"); dy3jetsSFCentral_neg_ratio51->SetLineColor(ci); ci = TColor::GetColor("#0000ff"); dy3jetsSFCentral_neg_ratio51->SetMarkerColor(ci); dy3jetsSFCentral_neg_ratio51->SetMarkerStyle(20); dy3jetsSFCentral_neg_ratio51->GetXaxis()->SetLabelFont(42); dy3jetsSFCentral_neg_ratio51->GetXaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg_ratio51->GetXaxis()->SetLabelSize(0.12); dy3jetsSFCentral_neg_ratio51->GetXaxis()->SetTitleSize(0.14); dy3jetsSFCentral_neg_ratio51->GetXaxis()->SetTitleFont(42); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetTitle("Ratio"); dy3jetsSFCentral_neg_ratio51->GetYaxis()->CenterTitle(true); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetNdivisions(4); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetLabelFont(42); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetLabelSize(0.12); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetTitleSize(0.14); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetTitleOffset(0.3); dy3jetsSFCentral_neg_ratio51->GetYaxis()->SetTitleFont(42); dy3jetsSFCentral_neg_ratio51->GetZaxis()->SetLabelFont(42); dy3jetsSFCentral_neg_ratio51->GetZaxis()->SetLabelOffset(0.007); dy3jetsSFCentral_neg_ratio51->GetZaxis()->SetTitleSize(0.05); dy3jetsSFCentral_neg_ratio51->GetZaxis()->SetTitleFont(42); dy3jetsSFCentral_neg_ratio51->Draw("l, "); TLine *line = new TLine(0,1,208,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); Double_t Graph0_fx9[4] = { 0, 250, 250, 0}; Double_t Graph0_fy9[4] = { 0.7, 0.7, 1.3, 1.3}; TGraph *graph = new TGraph(4,Graph0_fx9,Graph0_fy9); graph->SetName("Graph0"); graph->SetTitle("Graph"); ci = 1187; color = new TColor(ci, 1, 0, 0, " ", 0.4); graph->SetFillColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph9 = new TH1F("Graph_Graph9","Graph",100,0,275); Graph_Graph9->SetMinimum(0.64); Graph_Graph9->SetMaximum(1.36); Graph_Graph9->SetDirectory(0); Graph_Graph9->SetStats(0); Graph_Graph9->SetMarkerStyle(20); Graph_Graph9->GetXaxis()->SetLabelFont(42); Graph_Graph9->GetXaxis()->SetLabelOffset(0.007); Graph_Graph9->GetXaxis()->SetTitleSize(0.05); Graph_Graph9->GetXaxis()->SetTitleFont(42); Graph_Graph9->GetYaxis()->SetLabelFont(42); Graph_Graph9->GetYaxis()->SetLabelOffset(0.007); Graph_Graph9->GetYaxis()->SetTitleSize(0.05); Graph_Graph9->GetYaxis()->SetTitleOffset(1.1); Graph_Graph9->GetYaxis()->SetTitleFont(42); Graph_Graph9->GetZaxis()->SetLabelFont(42); Graph_Graph9->GetZaxis()->SetLabelOffset(0.007); Graph_Graph9->GetZaxis()->SetTitleSize(0.05); Graph_Graph9->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph9); graph->Draw("f"); pad2->Modified(); finalPlots/closure_3jets_->cd(); finalPlots/closure_3jets_->Modified(); finalPlots/closure_3jets_->cd(); finalPlots/closure_3jets_->SetSelected(finalPlots/closure_3jets_); }