void atlasClosure_Forward() { //=========Macro generated from canvas: atlasClosure/atlasClosure_Forward/atlasClosure/atlasClosure_Forward //========= (Wed Jun 8 12:01:41 2016) by ROOT version6.02/05 TCanvas *atlasClosure/atlasClosure_Forward = new TCanvas("atlasClosure/atlasClosure_Forward", "atlasClosure/atlasClosure_Forward",0,0,600,600); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); atlasClosure/atlasClosure_Forward->SetHighLightColor(2); atlasClosure/atlasClosure_Forward->Range(0,0,1,1); atlasClosure/atlasClosure_Forward->SetFillColor(0); atlasClosure/atlasClosure_Forward->SetBorderMode(0); atlasClosure/atlasClosure_Forward->SetBorderSize(2); atlasClosure/atlasClosure_Forward->SetTickx(1); atlasClosure/atlasClosure_Forward->SetTicky(1); atlasClosure/atlasClosure_Forward->SetLeftMargin(0.13); atlasClosure/atlasClosure_Forward->SetRightMargin(0.05); atlasClosure/atlasClosure_Forward->SetTopMargin(0.08); atlasClosure/atlasClosure_Forward->SetBottomMargin(0.13); atlasClosure/atlasClosure_Forward->SetFrameFillStyle(0); atlasClosure/atlasClosure_Forward->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.1329503,201.5854,4.648668); 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_sf4 = new TH1F("atlas_pos_sf4","",19,0,190); atlas_pos_sf4->SetBinContent(1,10129); atlas_pos_sf4->SetBinContent(2,8500); atlas_pos_sf4->SetBinContent(3,6722); atlas_pos_sf4->SetBinContent(4,4703); atlas_pos_sf4->SetBinContent(5,3031); atlas_pos_sf4->SetBinContent(6,1839); atlas_pos_sf4->SetBinContent(7,1130); atlas_pos_sf4->SetBinContent(8,639); atlas_pos_sf4->SetBinContent(9,323); atlas_pos_sf4->SetBinContent(10,240); atlas_pos_sf4->SetBinContent(11,133); atlas_pos_sf4->SetBinContent(12,92); atlas_pos_sf4->SetBinContent(13,62); atlas_pos_sf4->SetBinContent(14,27); atlas_pos_sf4->SetBinContent(15,28); atlas_pos_sf4->SetBinContent(16,16); atlas_pos_sf4->SetBinContent(17,17); atlas_pos_sf4->SetBinContent(18,11); atlas_pos_sf4->SetBinContent(19,53); atlas_pos_sf4->SetBinError(1,100.6628); atlas_pos_sf4->SetBinError(2,92.20629); atlas_pos_sf4->SetBinError(3,82.02439); atlas_pos_sf4->SetBinError(4,68.60758); atlas_pos_sf4->SetBinError(5,55.07268); atlas_pos_sf4->SetBinError(6,42.88356); atlas_pos_sf4->SetBinError(7,33.61547); atlas_pos_sf4->SetBinError(8,25.27845); atlas_pos_sf4->SetBinError(9,18.02776); atlas_pos_sf4->SetBinError(10,15.49193); atlas_pos_sf4->SetBinError(11,11.53256); atlas_pos_sf4->SetBinError(12,9.591663); atlas_pos_sf4->SetBinError(13,7.874008); atlas_pos_sf4->SetBinError(14,5.196152); atlas_pos_sf4->SetBinError(15,5.477226); atlas_pos_sf4->SetBinError(16,4); atlas_pos_sf4->SetBinError(17,4.123106); atlas_pos_sf4->SetBinError(18,3.316625); atlas_pos_sf4->SetBinError(19,7.28011); atlas_pos_sf4->SetEntries(37673.01); atlas_pos_sf4->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); atlas_pos_sf4->SetLineColor(ci); atlas_pos_sf4->SetLineWidth(2); ci = TColor::GetColor("#ff0000"); atlas_pos_sf4->SetMarkerColor(ci); atlas_pos_sf4->SetMarkerStyle(20); atlas_pos_sf4->GetXaxis()->SetTitle("JZB [GeV]"); atlas_pos_sf4->GetXaxis()->SetLabelFont(42); atlas_pos_sf4->GetXaxis()->SetLabelOffset(0.007); atlas_pos_sf4->GetXaxis()->SetTitleSize(0.05); atlas_pos_sf4->GetXaxis()->SetTitleFont(42); atlas_pos_sf4->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_pos_sf4->GetYaxis()->SetLabelFont(42); atlas_pos_sf4->GetYaxis()->SetLabelOffset(0.007); atlas_pos_sf4->GetYaxis()->SetTitleSize(0.05); atlas_pos_sf4->GetYaxis()->SetTitleOffset(1.1); atlas_pos_sf4->GetYaxis()->SetTitleFont(42); atlas_pos_sf4->GetZaxis()->SetLabelFont(42); atlas_pos_sf4->GetZaxis()->SetLabelOffset(0.007); atlas_pos_sf4->GetZaxis()->SetTitleSize(0.05); atlas_pos_sf4->GetZaxis()->SetTitleFont(42); atlas_pos_sf4->Draw("E,"); TH1F *atlas_neg_sf5 = new TH1F("atlas_neg_sf5","",19,0,190); atlas_neg_sf5->SetBinContent(1,9910); atlas_neg_sf5->SetBinContent(2,8498); atlas_neg_sf5->SetBinContent(3,6638); atlas_neg_sf5->SetBinContent(4,4507); atlas_neg_sf5->SetBinContent(5,2908); atlas_neg_sf5->SetBinContent(6,1678); atlas_neg_sf5->SetBinContent(7,998); atlas_neg_sf5->SetBinContent(8,573); atlas_neg_sf5->SetBinContent(9,326); atlas_neg_sf5->SetBinContent(10,169); atlas_neg_sf5->SetBinContent(11,126); atlas_neg_sf5->SetBinContent(12,70); atlas_neg_sf5->SetBinContent(13,53); atlas_neg_sf5->SetBinContent(14,27); atlas_neg_sf5->SetBinContent(15,25); atlas_neg_sf5->SetBinContent(16,17); atlas_neg_sf5->SetBinContent(17,7); atlas_neg_sf5->SetBinContent(18,3); atlas_neg_sf5->SetBinContent(19,24); atlas_neg_sf5->SetBinError(1,99.55903); atlas_neg_sf5->SetBinError(2,92.1846); atlas_neg_sf5->SetBinError(3,81.47392); atlas_neg_sf5->SetBinError(4,67.14909); atlas_neg_sf5->SetBinError(5,53.94442); atlas_neg_sf5->SetBinError(6,40.9634); atlas_neg_sf5->SetBinError(7,31.59114); atlas_neg_sf5->SetBinError(8,23.93742); atlas_neg_sf5->SetBinError(9,18.05547); atlas_neg_sf5->SetBinError(10,13); atlas_neg_sf5->SetBinError(11,11.22497); atlas_neg_sf5->SetBinError(12,8.3666); atlas_neg_sf5->SetBinError(13,7.28011); atlas_neg_sf5->SetBinError(14,5.196152); atlas_neg_sf5->SetBinError(15,5); atlas_neg_sf5->SetBinError(16,4.123106); atlas_neg_sf5->SetBinError(17,2.645751); atlas_neg_sf5->SetBinError(18,1.732051); atlas_neg_sf5->SetBinError(19,4.898979); atlas_neg_sf5->SetEntries(36551); atlas_neg_sf5->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf5->SetLineColor(ci); atlas_neg_sf5->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf5->SetMarkerColor(ci); atlas_neg_sf5->SetMarkerStyle(20); atlas_neg_sf5->GetXaxis()->SetTitle("JZB [GeV]"); atlas_neg_sf5->GetXaxis()->SetLabelFont(42); atlas_neg_sf5->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf5->GetXaxis()->SetTitleSize(0.05); atlas_neg_sf5->GetXaxis()->SetTitleFont(42); atlas_neg_sf5->GetYaxis()->SetTitle("Events / 10 GeV"); atlas_neg_sf5->GetYaxis()->SetLabelFont(42); atlas_neg_sf5->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf5->GetYaxis()->SetTitleSize(0.05); atlas_neg_sf5->GetYaxis()->SetTitleOffset(1.1); atlas_neg_sf5->GetYaxis()->SetTitleFont(42); atlas_neg_sf5->GetZaxis()->SetLabelFont(42); atlas_neg_sf5->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf5->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf5->GetZaxis()->SetTitleFont(42); atlas_neg_sf5->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_Forward->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_ratio6 = new TH1F("atlas_neg_sf_ratio6","",19,0,190); atlas_neg_sf_ratio6->SetBinContent(1,1.022099); atlas_neg_sf_ratio6->SetBinContent(2,1.000235); atlas_neg_sf_ratio6->SetBinContent(3,1.012654); atlas_neg_sf_ratio6->SetBinContent(4,1.043488); atlas_neg_sf_ratio6->SetBinContent(5,1.042297); atlas_neg_sf_ratio6->SetBinContent(6,1.095948); atlas_neg_sf_ratio6->SetBinContent(7,1.132264); atlas_neg_sf_ratio6->SetBinContent(8,1.115183); atlas_neg_sf_ratio6->SetBinContent(9,0.9907975); atlas_neg_sf_ratio6->SetBinContent(10,1.420118); atlas_neg_sf_ratio6->SetBinContent(11,1.055556); atlas_neg_sf_ratio6->SetBinContent(12,1.314286); atlas_neg_sf_ratio6->SetBinContent(13,1.169811); atlas_neg_sf_ratio6->SetBinContent(14,1); atlas_neg_sf_ratio6->SetBinContent(15,1.12); atlas_neg_sf_ratio6->SetBinContent(16,0.9411765); atlas_neg_sf_ratio6->SetBinContent(17,2.428571); atlas_neg_sf_ratio6->SetBinContent(18,3.666667); atlas_neg_sf_ratio6->SetBinContent(19,2.208333); atlas_neg_sf_ratio6->SetBinError(1,0.0144436); atlas_neg_sf_ratio6->SetBinError(2,0.01534472); atlas_neg_sf_ratio6->SetBinError(3,0.01752641); atlas_neg_sf_ratio6->SetBinError(4,0.02175833); atlas_neg_sf_ratio6->SetBinError(5,0.02706477); atlas_neg_sf_ratio6->SetBinError(6,0.03699893); atlas_neg_sf_ratio6->SetBinError(7,0.04918461); atlas_neg_sf_ratio6->SetBinError(8,0.06416081); atlas_neg_sf_ratio6->SetBinError(9,0.07790612); atlas_neg_sf_ratio6->SetBinError(10,0.1426058); atlas_neg_sf_ratio6->SetBinError(11,0.131226); atlas_neg_sf_ratio6->SetBinError(12,0.2084512); atlas_neg_sf_ratio6->SetBinError(13,0.2188421); atlas_neg_sf_ratio6->SetBinError(14,0.2721655); atlas_neg_sf_ratio6->SetBinError(15,0.3133305); atlas_neg_sf_ratio6->SetBinError(16,0.3278261); atlas_neg_sf_ratio6->SetBinError(17,1.090644); atlas_neg_sf_ratio6->SetBinError(18,2.388243); atlas_neg_sf_ratio6->SetBinError(19,0.5433334); atlas_neg_sf_ratio6->SetMinimum(0); atlas_neg_sf_ratio6->SetMaximum(2); atlas_neg_sf_ratio6->SetEntries(87.29599); atlas_neg_sf_ratio6->SetStats(0); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio6->SetLineColor(ci); atlas_neg_sf_ratio6->SetLineWidth(2); ci = TColor::GetColor("#0000ff"); atlas_neg_sf_ratio6->SetMarkerColor(ci); atlas_neg_sf_ratio6->SetMarkerStyle(20); atlas_neg_sf_ratio6->GetXaxis()->SetLabelFont(42); atlas_neg_sf_ratio6->GetXaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio6->GetXaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio6->GetXaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio6->GetXaxis()->SetTitleFont(42); atlas_neg_sf_ratio6->GetYaxis()->SetTitle("Ratio"); atlas_neg_sf_ratio6->GetYaxis()->CenterTitle(true); atlas_neg_sf_ratio6->GetYaxis()->SetNdivisions(4); atlas_neg_sf_ratio6->GetYaxis()->SetLabelFont(42); atlas_neg_sf_ratio6->GetYaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio6->GetYaxis()->SetLabelSize(0.12); atlas_neg_sf_ratio6->GetYaxis()->SetTitleSize(0.14); atlas_neg_sf_ratio6->GetYaxis()->SetTitleOffset(0.3); atlas_neg_sf_ratio6->GetYaxis()->SetTitleFont(42); atlas_neg_sf_ratio6->GetZaxis()->SetLabelFont(42); atlas_neg_sf_ratio6->GetZaxis()->SetLabelOffset(0.007); atlas_neg_sf_ratio6->GetZaxis()->SetTitleSize(0.05); atlas_neg_sf_ratio6->GetZaxis()->SetTitleFont(42); atlas_neg_sf_ratio6->Draw("HIST,"); TLine *line = new TLine(0,1,190,1); ci = TColor::GetColor("#666666"); line->SetLineColor(ci); line->Draw(); pad2->Modified(); atlasClosure/atlasClosure_Forward->cd(); atlasClosure/atlasClosure_Forward->Modified(); atlasClosure/atlasClosure_Forward->cd(); atlasClosure/atlasClosure_Forward->SetSelected(atlasClosure/atlasClosure_Forward); }