void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Thu Jun 9 10:35:18 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.9032196,201.5854,5.118676); 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,22725); atlas_pos_sf7->SetBinContent(2,18400); atlas_pos_sf7->SetBinContent(3,13148); atlas_pos_sf7->SetBinContent(4,8008); atlas_pos_sf7->SetBinContent(5,4556); atlas_pos_sf7->SetBinContent(6,2394); atlas_pos_sf7->SetBinContent(7,1218); atlas_pos_sf7->SetBinContent(8,561); atlas_pos_sf7->SetBinContent(9,267); atlas_pos_sf7->SetBinContent(10,110); atlas_pos_sf7->SetBinContent(11,49); atlas_pos_sf7->SetBinContent(12,25); atlas_pos_sf7->SetBinContent(13,24); 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.768); atlas_pos_sf7->SetBinError(2,135.654); atlas_pos_sf7->SetBinError(3,114.6822); atlas_pos_sf7->SetBinError(4,89.52095); atlas_pos_sf7->SetBinError(5,67.51296); atlas_pos_sf7->SetBinError(6,48.96938); atlas_pos_sf7->SetBinError(7,34.9285); atlas_pos_sf7->SetBinError(8,23.72762); atlas_pos_sf7->SetBinError(9,16.40122); atlas_pos_sf7->SetBinError(10,10.58301); atlas_pos_sf7->SetBinError(11,7.141428); atlas_pos_sf7->SetBinError(12,5); atlas_pos_sf7->SetBinError(13,4.898979); 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(71468.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,23584); atlas_neg_sf8->SetBinContent(2,18422); atlas_neg_sf8->SetBinContent(3,12423); atlas_neg_sf8->SetBinContent(4,7233); atlas_neg_sf8->SetBinContent(5,3939); atlas_neg_sf8->SetBinContent(6,2017); atlas_neg_sf8->SetBinContent(7,997); atlas_neg_sf8->SetBinContent(8,481); atlas_neg_sf8->SetBinContent(9,227); atlas_neg_sf8->SetBinContent(10,118); atlas_neg_sf8->SetBinContent(11,64); atlas_neg_sf8->SetBinContent(12,41); atlas_neg_sf8->SetBinContent(13,17); atlas_neg_sf8->SetBinContent(14,6); atlas_neg_sf8->SetBinContent(15,9); atlas_neg_sf8->SetBinContent(16,1); atlas_neg_sf8->SetBinContent(17,1); atlas_neg_sf8->SetBinContent(19,6); atlas_neg_sf8->SetBinError(1,153.5904); atlas_neg_sf8->SetBinError(2,135.735); atlas_neg_sf8->SetBinError(3,111.4675); atlas_neg_sf8->SetBinError(4,85.04705); atlas_neg_sf8->SetBinError(5,62.76145); atlas_neg_sf8->SetBinError(6,44.91102); atlas_neg_sf8->SetBinError(7,31.57531); atlas_neg_sf8->SetBinError(8,21.93171); atlas_neg_sf8->SetBinError(9,15.06652); atlas_neg_sf8->SetBinError(10,10.86278); atlas_neg_sf8->SetBinError(11,8); atlas_neg_sf8->SetBinError(12,6.403124); atlas_neg_sf8->SetBinError(13,4.123106); atlas_neg_sf8->SetBinError(14,2.44949); atlas_neg_sf8->SetBinError(15,3); atlas_neg_sf8->SetBinError(16,1); atlas_neg_sf8->SetBinError(17,1); atlas_neg_sf8->SetBinError(19,2.44949); atlas_neg_sf8->SetEntries(69576); 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.963577); atlas_neg_sf_ratio9->SetBinContent(2,0.9988058); atlas_neg_sf_ratio9->SetBinContent(3,1.05836); atlas_neg_sf_ratio9->SetBinContent(4,1.107148); atlas_neg_sf_ratio9->SetBinContent(5,1.156639); atlas_neg_sf_ratio9->SetBinContent(6,1.186911); atlas_neg_sf_ratio9->SetBinContent(7,1.221665); atlas_neg_sf_ratio9->SetBinContent(8,1.16632); atlas_neg_sf_ratio9->SetBinContent(9,1.176211); atlas_neg_sf_ratio9->SetBinContent(10,0.9322034); atlas_neg_sf_ratio9->SetBinContent(11,0.765625); atlas_neg_sf_ratio9->SetBinContent(12,0.6097561); atlas_neg_sf_ratio9->SetBinContent(13,1.411765); atlas_neg_sf_ratio9->SetBinContent(14,1); atlas_neg_sf_ratio9->SetBinContent(15,0.5555556); 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.008958076); atlas_neg_sf_ratio9->SetBinError(2,0.01041073); atlas_neg_sf_ratio9->SetBinError(3,0.01324384); atlas_neg_sf_ratio9->SetBinError(4,0.01796256); atlas_neg_sf_ratio9->SetBinError(5,0.02516742); atlas_neg_sf_ratio9->SetBinError(6,0.03588704); atlas_neg_sf_ratio9->SetBinError(7,0.05219492); atlas_neg_sf_ratio9->SetBinError(8,0.07253619); atlas_neg_sf_ratio9->SetBinError(9,0.1063718); atlas_neg_sf_ratio9->SetBinError(10,0.1241294); atlas_neg_sf_ratio9->SetBinError(11,0.1470043); atlas_neg_sf_ratio9->SetBinError(12,0.154727); atlas_neg_sf_ratio9->SetBinError(13,0.4475321); atlas_neg_sf_ratio9->SetBinError(14,0.5773503); atlas_neg_sf_ratio9->SetBinError(15,0.3474382); 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(47.69259); 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); }