void atlasClosure_inc() { //=========Macro generated from canvas: atlasClosure/atlasClosure_inc/atlasClosure/atlasClosure_inc //========= (Wed Jun 8 11:52:14 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.9935196,201.5854,5.361974); 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,54086); atlas_pos_sf7->SetBinContent(2,47610); atlas_pos_sf7->SetBinContent(3,37556); atlas_pos_sf7->SetBinContent(4,26850); atlas_pos_sf7->SetBinContent(5,17772); atlas_pos_sf7->SetBinContent(6,11274); atlas_pos_sf7->SetBinContent(7,6780); atlas_pos_sf7->SetBinContent(8,4176); atlas_pos_sf7->SetBinContent(9,2472); atlas_pos_sf7->SetBinContent(10,1460); atlas_pos_sf7->SetBinContent(11,920); atlas_pos_sf7->SetBinContent(12,574); atlas_pos_sf7->SetBinContent(13,346); atlas_pos_sf7->SetBinContent(14,260); atlas_pos_sf7->SetBinContent(15,160); atlas_pos_sf7->SetBinContent(16,116); atlas_pos_sf7->SetBinContent(17,80); atlas_pos_sf7->SetBinContent(18,62); atlas_pos_sf7->SetBinContent(19,288); atlas_pos_sf7->SetBinError(1,232.5898); atlas_pos_sf7->SetBinError(2,218.2338); atlas_pos_sf7->SetBinError(3,193.804); atlas_pos_sf7->SetBinError(4,163.8963); atlas_pos_sf7->SetBinError(5,133.3117); atlas_pos_sf7->SetBinError(6,106.1979); atlas_pos_sf7->SetBinError(7,82.38932); atlas_pos_sf7->SetBinError(8,64.71476); atlas_pos_sf7->SetBinError(9,49.71921); atlas_pos_sf7->SetBinError(10,38.26225); atlas_pos_sf7->SetBinError(11,30.39737); atlas_pos_sf7->SetBinError(12,24.04163); atlas_pos_sf7->SetBinError(13,18.60108); atlas_pos_sf7->SetBinError(14,16.12452); atlas_pos_sf7->SetBinError(15,12.64911); atlas_pos_sf7->SetBinError(16,10.95445); atlas_pos_sf7->SetBinError(17,9.165151); atlas_pos_sf7->SetBinError(18,8.124038); atlas_pos_sf7->SetBinError(19,17.77639); atlas_pos_sf7->SetEntries(212722.1); 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,53034); atlas_neg_sf8->SetBinContent(2,46538); atlas_neg_sf8->SetBinContent(3,36258); atlas_neg_sf8->SetBinContent(4,25636); atlas_neg_sf8->SetBinContent(5,16368); atlas_neg_sf8->SetBinContent(6,10578); atlas_neg_sf8->SetBinContent(7,6498); atlas_neg_sf8->SetBinContent(8,3766); atlas_neg_sf8->SetBinContent(9,2280); atlas_neg_sf8->SetBinContent(10,1452); atlas_neg_sf8->SetBinContent(11,964); atlas_neg_sf8->SetBinContent(12,614); atlas_neg_sf8->SetBinContent(13,424); atlas_neg_sf8->SetBinContent(14,282); atlas_neg_sf8->SetBinContent(15,246); atlas_neg_sf8->SetBinContent(16,118); atlas_neg_sf8->SetBinContent(17,104); atlas_neg_sf8->SetBinContent(18,90); atlas_neg_sf8->SetBinContent(19,392); atlas_neg_sf8->SetBinError(1,230.3172); atlas_neg_sf8->SetBinError(2,215.7359); atlas_neg_sf8->SetBinError(3,190.4363); atlas_neg_sf8->SetBinError(4,160.1125); atlas_neg_sf8->SetBinError(5,127.9375); atlas_neg_sf8->SetBinError(6,102.8494); atlas_neg_sf8->SetBinError(7,80.61017); atlas_neg_sf8->SetBinError(8,61.36774); atlas_neg_sf8->SetBinError(9,47.74935); atlas_neg_sf8->SetBinError(10,38.10512); atlas_neg_sf8->SetBinError(11,31.1127); atlas_neg_sf8->SetBinError(12,24.77902); atlas_neg_sf8->SetBinError(13,20.59126); atlas_neg_sf8->SetBinError(14,16.79286); atlas_neg_sf8->SetBinError(15,15.68439); atlas_neg_sf8->SetBinError(16,10.86278); atlas_neg_sf8->SetBinError(17,10.19804); atlas_neg_sf8->SetBinError(18,9.486833); atlas_neg_sf8->SetBinError(19,19.79899); atlas_neg_sf8->SetEntries(205614); 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,1.019836); atlas_neg_sf_ratio9->SetBinContent(2,1.023035); atlas_neg_sf_ratio9->SetBinContent(3,1.035799); atlas_neg_sf_ratio9->SetBinContent(4,1.047355); atlas_neg_sf_ratio9->SetBinContent(5,1.085777); atlas_neg_sf_ratio9->SetBinContent(6,1.065797); atlas_neg_sf_ratio9->SetBinContent(7,1.043398); atlas_neg_sf_ratio9->SetBinContent(8,1.108869); atlas_neg_sf_ratio9->SetBinContent(9,1.084211); atlas_neg_sf_ratio9->SetBinContent(10,1.00551); atlas_neg_sf_ratio9->SetBinContent(11,0.9543568); atlas_neg_sf_ratio9->SetBinContent(12,0.9348534); atlas_neg_sf_ratio9->SetBinContent(13,0.8160377); atlas_neg_sf_ratio9->SetBinContent(14,0.9219858); atlas_neg_sf_ratio9->SetBinContent(15,0.6504065); atlas_neg_sf_ratio9->SetBinContent(16,0.9830508); atlas_neg_sf_ratio9->SetBinContent(17,0.7692308); atlas_neg_sf_ratio9->SetBinContent(18,0.6888889); atlas_neg_sf_ratio9->SetBinContent(19,0.7346939); atlas_neg_sf_ratio9->SetBinError(1,0.006232967); atlas_neg_sf_ratio9->SetBinError(2,0.006669428); atlas_neg_sf_ratio9->SetBinError(3,0.007626741); atlas_neg_sf_ratio9->SetBinError(4,0.009146731); atlas_neg_sf_ratio9->SetBinError(5,0.01176269); atlas_neg_sf_ratio9->SetBinError(6,0.01442835); atlas_neg_sf_ratio9->SetBinError(7,0.01811911); atlas_neg_sf_ratio9->SetBinError(8,0.02493563); atlas_neg_sf_ratio9->SetBinError(9,0.03148185); atlas_neg_sf_ratio9->SetBinError(10,0.03729225); atlas_neg_sf_ratio9->SetBinError(11,0.04407983); atlas_neg_sf_ratio9->SetBinError(12,0.05437413); atlas_neg_sf_ratio9->SetBinError(13,0.05912003); atlas_neg_sf_ratio9->SetBinError(14,0.07927069); atlas_neg_sf_ratio9->SetBinError(15,0.06605723); atlas_neg_sf_ratio9->SetBinError(16,0.1296455); atlas_neg_sf_ratio9->SetBinError(17,0.1159993); atlas_neg_sf_ratio9->SetBinError(18,0.1158496); atlas_neg_sf_ratio9->SetBinError(19,0.05859532); atlas_neg_sf_ratio9->SetMinimum(0); atlas_neg_sf_ratio9->SetMaximum(2); atlas_neg_sf_ratio9->SetEntries(4610.521); 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); }