Skip to content

Commit

Permalink
Fix construct_models_part6.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon-langford committed May 8, 2024
1 parent 74b3d60 commit ec7f836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/tutorials/parametric_exercise/construct_models_part6.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
# # Build a RooDataSet for the category
# t = f.Get("data_%s"%cat)
# data[cat] = ROOT.RooDataSet("data_%s"%cat, "data_%s"%cat,
# t, ROOT.RooArgSet(mass), "", "weight"
# t, ROOT.RooArgSet(mass, weight), "", "weight"
# )
#
# alpha[cat] = ROOT.RooRealVar("alpha_%s"%cat, "alpha_%s"%cat,
Expand Down Expand Up @@ -296,9 +296,9 @@
# for syst in ['JEC','photonID']:
# key_up = "%s_%sUp01Sigma"%(key,syst)
# key_down = "%s_%sDown01Sigma"%(key,syst)
# yield_variation_up = mc[key_up].sumEntries() /
# yield_variation_up = mc[key_up].sumEntries() / \
# mc[key].sumEntries()
# yield_variation_down = mc[key_down].sumEntries() /
# yield_variation_down = mc[key_down].sumEntries() / \
# mc[key].sumEntries()
# print("Yield variation for %s syst for (%s,%s): %.3f/%.3f" %
# (syst,proc,cat,yield_variation_down,yield_variation_up)
Expand Down

0 comments on commit ec7f836

Please sign in to comment.