void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Thu Jun 9 12:10:36 2016) by ROOT version6.02/05 TCanvas *atlasClosure/atlasClosure_inc = new TCanvas("atlasClosure/atlasClosure_inc", "atlasClosure/atlasClosure_inc",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); atlasClosure/atlasClosure_inc->SetHighLightColor(2); atlasClosure/atlasClosure_inc->Range(0,0,1,1); atlasClosure/atlasClosure_inc->SetFillColor(0); atlasClosure/atlasClosure_inc->SetBorderMode(0); atlasClosure/atlasClosure_inc->SetBorderSize(2); atlasClosure/atlasClosure_inc->SetTickx(1); atlasClosure/atlasClosure_inc->SetTicky(1); atlasClosure/atlasClosure_inc->SetLeftMargin(0.13); atlasClosure/atlasClosure_inc->SetRightMargin(0.05); atlasClosure/atlasClosure_inc->SetTopMargin(0.08); atlasClosure/atlasClosure_inc->SetBottomMargin(0.13); atlasClosure/atlasClosure_inc->SetFrameFillStyle(0); atlasClosure/atlasClosure_inc->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,-0.903115,201.5854,5.117735); 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 *atlas_pos_sf7 = new TH1F("atlas_pos_sf7","",19,0,190); atlas_pos_sf7->SetBinContent(1,22680); atlas_pos_sf7->SetBinContent(2,18476); atlas_pos_sf7->SetBinContent(3,13175); atlas_pos_sf7->SetBinContent(4,8048); atlas_pos_sf7->SetBinContent(5,4595); atlas_pos_sf7->SetBinContent(6,2412); atlas_pos_sf7->SetBinContent(7,1225); atlas_pos_sf7->SetBinContent(8,566); atlas_pos_sf7->SetBinContent(9,269); atlas_pos_sf7->SetBinContent(10,111); atlas_pos_sf7->SetBinContent(11,50); atlas_pos_sf7->SetBinContent(12,26); atlas_pos_sf7->SetBinContent(13,22); atlas_pos_sf7->SetBinContent(14,6); atlas_pos_sf7->SetBinContent(15,5); atlas_pos_sf7->SetBinContent(16,1); atlas_pos_sf7->SetBinContent(17,1); atlas_pos_sf7->SetBinContent(18,1); atlas_pos_sf7->SetBinContent(19,7); atlas_pos_sf7->SetBinError(1,150.6187); atlas_pos_sf7->SetBinError(2,135.9338); atlas_pos_sf7->SetBinError(3,114.7998); atlas_pos_sf7->SetBinError(4,89.74408); atlas_pos_sf7->SetBinError(5,67.80118); atlas_pos_sf7->SetBinError(6,49.15282); atlas_pos_sf7->SetBinError(7,35.02856); atlas_pos_sf7->SetBinError(8,23.83275); atlas_pos_sf7->SetBinError(9,16.46208); atlas_pos_sf7->SetBinError(10,10.63015); atlas_pos_sf7->SetBinError(11,7.211103); atlas_pos_sf7->SetBinError(12,5.09902); atlas_pos_sf7->SetBinError(13,4.690416); atlas_pos_sf7->SetBinError(14,2.44949); atlas_pos_sf7->SetBinError(15,2.645751); atlas_pos_sf7->SetBinError(16,1); atlas_pos_sf7->SetBinError(17,1.732051); atlas_pos_sf7->SetBinError(18,1); atlas_pos_sf7->SetBinError(19,2.645751); atlas_pos_sf7->SetEntries(71638.02); atlas_pos_sf7->SetDirectory(0); atlas_pos_sf7->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); atlas_pos_sf7->SetLineColor(ci); atlas_pos_sf7->SetLineWidth(2); ci = TColor::GetColor("#ff0000"); atlas_pos_sf7->SetMarkerColor(ci); atlas_pos_sf7->SetMarkerStyle(20); atlas_pos_sf7->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sf7->GetXaxis()->SetLabelFont(42); atlas_pos_sf7->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetXaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetXaxis()->SetTitleFont(42); atlas_pos_sf7->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_pos_sf7->GetYaxis()->SetLabelFont(42); atlas_pos_sf7->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetYaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sf7->GetYaxis()->SetTitleFont(42); atlas_pos_sf7->GetZaxis()->SetLabelFont(42); atlas_pos_sf7->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sf7->GetZaxis()->SetTitleSize(0.05); atlas_pos_sf7->GetZaxis()->SetTitleFont(42); atlas_pos_sf7->Draw("E,"); TH1F *atlas_neg_sf8 = new TH1F("atlas_neg_sf8","",19,0,190); atlas_neg_sf8->SetBinContent(1,23440); atlas_neg_sf8->SetBinContent(2,18406); atlas_neg_sf8->SetBinContent(3,12380); atlas_neg_sf8->SetBinContent(4,7231); atlas_neg_sf8->SetBinContent(5,3930); atlas_neg_sf8->SetBinContent(6,2029); atlas_neg_sf8->SetBinContent(7,1011); atlas_neg_sf8->SetBinContent(8,491); atlas_neg_sf8->SetBinContent(9,223); atlas_neg_sf8->SetBinContent(10,125); atlas_neg_sf8->SetBinContent(11,65); atlas_neg_sf8->SetBinContent(12,41); atlas_neg_sf8->SetBinContent(13,18); atlas_neg_sf8->SetBinContent(14,7); atlas_neg_sf8->SetBinContent(15,11); atlas_neg_sf8->SetBinContent(16,1); atlas_neg_sf8->SetBinContent(17,1); atlas_neg_sf8->SetBinContent(19,6); atlas_neg_sf8->SetBinError(1,153.1209); atlas_neg_sf8->SetBinError(2,135.6761); atlas_neg_sf8->SetBinError(3,111.2744); atlas_neg_sf8->SetBinError(4,85.03529); atlas_neg_sf8->SetBinError(5,62.68971); atlas_neg_sf8->SetBinError(6,45.04442); atlas_neg_sf8->SetBinError(7,31.79623); atlas_neg_sf8->SetBinError(8,22.15852); atlas_neg_sf8->SetBinError(9,14.93318); atlas_neg_sf8->SetBinError(10,11.18034); atlas_neg_sf8->SetBinError(11,8.062258); atlas_neg_sf8->SetBinError(12,6.403124); atlas_neg_sf8->SetBinError(13,4.242641); atlas_neg_sf8->SetBinError(14,2.645751); atlas_neg_sf8->SetBinError(15,3.316625); atlas_neg_sf8->SetBinError(16,1); atlas_neg_sf8->SetBinError(17,1); atlas_neg_sf8->SetBinError(19,2.44949); atlas_neg_sf8->SetEntries(69406); atlas_neg_sf8->SetDirectory(0); atlas_neg_sf8->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf8->SetLineColor(ci); atlas_neg_sf8->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf8->SetMarkerColor(ci); atlas_neg_sf8->SetMarkerStyle(20); atlas_neg_sf8->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sf8->GetXaxis()->SetLabelFont(42); atlas_neg_sf8->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetXaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetXaxis()->SetTitleFont(42); atlas_neg_sf8->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_neg_sf8->GetYaxis()->SetLabelFont(42); atlas_neg_sf8->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetYaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sf8->GetYaxis()->SetTitleFont(42); atlas_neg_sf8->GetZaxis()->SetLabelFont(42); atlas_neg_sf8->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf8->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf8->GetZaxis()->SetTitleFont(42); atlas_neg_sf8->Draw("HIST,SAME"); TLegend *leg = new TLegend(0.15,0.4,0.35,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("atlas_pos_sf","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("atlas_neg_sf","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(); atlasClosure/atlasClosure_inc->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 *atlas_neg_sf_ratio9 = new TH1F("atlas_neg_sf_ratio9","",19,0,190); atlas_neg_sf_ratio9->SetBinContent(1,0.9675768); atlas_neg_sf_ratio9->SetBinContent(2,1.003803); atlas_neg_sf_ratio9->SetBinContent(3,1.064216); atlas_neg_sf_ratio9->SetBinContent(4,1.112986); atlas_neg_sf_ratio9->SetBinContent(5,1.169211); atlas_neg_sf_ratio9->SetBinContent(6,1.188763); atlas_neg_sf_ratio9->SetBinContent(7,1.211672); atlas_neg_sf_ratio9->SetBinContent(8,1.15275); atlas_neg_sf_ratio9->SetBinContent(9,1.206278); atlas_neg_sf_ratio9->SetBinContent(10,0.888); atlas_neg_sf_ratio9->SetBinContent(11,0.7692308); atlas_neg_sf_ratio9->SetBinContent(12,0.6341463); atlas_neg_sf_ratio9->SetBinContent(13,1.222222); atlas_neg_sf_ratio9->SetBinContent(14,0.8571429); atlas_neg_sf_ratio9->SetBinContent(15,0.4545455); atlas_neg_sf_ratio9->SetBinContent(16,1); atlas_neg_sf_ratio9->SetBinContent(17,1); atlas_neg_sf_ratio9->SetBinContent(19,1.166667); atlas_neg_sf_ratio9->SetBinError(1,0.009013351); atlas_neg_sf_ratio9->SetBinError(2,0.01045432); atlas_neg_sf_ratio9->SetBinError(3,0.01332239); atlas_neg_sf_ratio9->SetBinError(4,0.01803726); atlas_neg_sf_ratio9->SetBinError(5,0.02540649); atlas_neg_sf_ratio9->SetBinError(6,0.0358237); atlas_neg_sf_ratio9->SetBinError(7,0.05150358); atlas_neg_sf_ratio9->SetBinError(8,0.07115077); atlas_neg_sf_ratio9->SetBinError(9,0.1094289); atlas_neg_sf_ratio9->SetBinError(10,0.116363); atlas_neg_sf_ratio9->SetBinError(11,0.146325); atlas_neg_sf_ratio9->SetBinError(12,0.1589821); atlas_neg_sf_ratio9->SetBinError(13,0.3884477); atlas_neg_sf_ratio9->SetBinError(14,0.4768703); atlas_neg_sf_ratio9->SetBinError(15,0.2768287); atlas_neg_sf_ratio9->SetBinError(16,1.414214); atlas_neg_sf_ratio9->SetBinError(17,2); atlas_neg_sf_ratio9->SetBinError(19,0.6490734); atlas_neg_sf_ratio9->SetMinimum(0); atlas_neg_sf_ratio9->SetMaximum(2); atlas_neg_sf_ratio9->SetEntries(46.91871); atlas_neg_sf_ratio9->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio9->SetLineColor(ci); atlas_neg_sf_ratio9->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio9->SetMarkerColor(ci); atlas_neg_sf_ratio9->SetMarkerStyle(20); atlas_neg_sf_ratio9->GetXaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetXaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio9->GetXaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio9->GetXaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->GetYaxis()->SetTitle("Ratio"); atlas_neg_sf_ratio9->GetYaxis()->CenterTitle(true); atlas_neg_sf_ratio9->GetYaxis()->SetNdivisions(4); atlas_neg_sf_ratio9->GetYaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetYaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio9->GetYaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio9->GetYaxis()->SetTitleOffset(0.3); atlas_neg_sf_ratio9->GetYaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->GetZaxis()->SetLabelFont(42); atlas_neg_sf_ratio9->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio9->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf_ratio9->GetZaxis()->SetTitleFont(42); atlas_neg_sf_ratio9->Draw("HIST,"); TLine *line = new TLine(0,1,190,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->Modified(); atlasClosure/atlasClosure_inc->cd(); atlasClosure/atlasClosure_inc->SetSelected(atlasClosure/atlasClosure_inc); }