-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[RF] Fix copy-paste error in rf205 tutorial and related stressRooFit test
#11985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Starting build on |
rf205 tutorial and related stressRooFit test
|
Build failed on mac12/noimt. Warnings:
And 53 more Failing tests:
|
|
Build failed on ROOT-performance-centos8-multicore/cxx17. Errors:
Warnings:
And 130 more Failing tests:
|
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
And 60 more Failing tests:
|
|
Build failed on mac11/cxx14. Errors:
Warnings:
And 54 more Failing tests:
|
lmoneta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Jonas for fixing this.
I have just a comment on the title of the pdf representing the total background.
tutorials/roofit/rf205_compplot.C
Outdated
| RooRealVar bkg1frac("sig1frac", "fraction of component 1 in background", 0.2, 0., 1.); | ||
| RooAddPdf bkg("bkg", "Signal", RooArgList(bkg1, bkg2), sig1frac); | ||
| RooRealVar bkg1frac("bkg1frac", "fraction of component 1 in background", 0.8, 0., 1.); | ||
| RooAddPdf bkg("bkg", "Signal", {bkg1, bkg2}, bkg1frac); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting this!
tutorials/roofit/rf205_compplot.py
Outdated
| bkg1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in background", 0.2, 0.0, 1.0) | ||
| bkg = ROOT.RooAddPdf("bkg", "Signal", [bkg1, bkg2], [sig1frac]) | ||
| bkg1frac = ROOT.RooRealVar("bkg1frac", "fraction of component 1 in background", 0.8, 0.0, 1.0) | ||
| bkg = ROOT.RooAddPdf("bkg", "Signal", [bkg1, bkg2], [bkg1frac]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as before for the C++ version of the tutorial
test/stressRooFit_tests.h
Outdated
| RooRealVar bkg1frac("sig1frac","fraction of component 1 in background",0.2,0.,1.) ; | ||
| RooAddPdf bkg("bkg","Signal",RooArgList(bkg1,bkg2),sig1frac) ; | ||
| RooRealVar bkg1frac("bkg1frac","fraction of component 1 in background",0.8,0.,1.) ; | ||
| RooAddPdf bkg("bkg", "Signal", {bkg1,bkg2}, bkg1frac); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the title of the pdf should be changed to something like "Total Background"
9f60d3f to
f51f85f
Compare
|
Starting build on |
|
Build failed on ROOT-performance-centos8-multicore/cxx17. Errors:
Warnings:
And 130 more Failing tests:
|
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
And 60 more Failing tests:
|
|
Build failed on mac12/noimt. Warnings:
And 53 more Failing tests:
|
|
Build failed on mac11/cxx14. Errors:
Warnings:
And 54 more Failing tests:
|
In the `rf205` tutorial and the associated stressRooFit test, the `bkg` RooAddPdf was created using the `sig1frac`, while it is clearly the idea to use the `bkg1frac` parameter. This is fixed in this commit, also fixing the name of the `bkg1frac` parameter, which was accidentally set to `sig1frac` (probably a copy-paste error). However, to not change the output of the tutorial and the stressRooFit test, the value of `bkg1frac` was set to the same value as `sig1frac`, such that this commit only fixes the model but doesn't change the tutorial and test output.
f51f85f to
32fded3
Compare
|
Starting build on |
|
Build failed on mac12/noimt. Warnings:
And 53 more Failing tests:
|
|
Build failed on ROOT-performance-centos8-multicore/cxx17. Warnings:
And 130 more Failing tests:
|
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
And 60 more Failing tests:
|
|
Build failed on mac11/cxx14. Warnings:
And 54 more Failing tests:
|
|
Build failed on ROOT-ubuntu2004/python3. Errors:
|
In the
rf205tutorial and the associated stressRooFit test, thebkgRooAddPdf was created using thesig1frac, while it is clearly the idea to use thebkg1fracparameter.This is fixed in this commit, also fixing the name of the
bkg1fracparameter, which was accidentally set tosig1frac(probably a copy-paste error).However, to not change the output of the tutorial and the stressRooFit test, the value of
bkg1fracwas set to the same value assig1frac, such that this commit only fixes the model but doesn't change the tutorial and test output.