-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[RF] Use integral of PDF curves for pull plots and residuals #7239
Comments
Thanks @hageboeck ! I will give this a go, when I find some time. |
@olantwin do you want this to be assigned to you then? |
I can't promise being able to look at this soon, but as long as that is understood, feel free to do so. |
Stop, stop, stop! It's much easier, all the code is already there! See this:
So, Revised version of what has to happen
|
Thanks @hageboeck! I'll take care of it. |
guitargeek
added a commit
to guitargeek/root
that referenced
this issue
Feb 18, 2021
When making residual or pull distributions with `RooPlot::residHist` or `RooPlot::pullHist`, the histogram is now compared with the curve's average values within a given bin by default, ensuring that residual and pull distributions are valid for strongly curved distributions. The old default behaviour was to interpolate the curve at the bin centres, which can still be enabled by setting the useAverage parameter of `RooPlot::residHist` or `RooPlot::pullHist` to `false`. Fixes root-project#7239.
Thanks Jonas, Stephan! |
nicknagi
pushed a commit
to nicknagi/root
that referenced
this issue
Mar 30, 2021
When making residual or pull distributions with `RooPlot::residHist` or `RooPlot::pullHist`, the histogram is now compared with the curve's average values within a given bin by default, ensuring that residual and pull distributions are valid for strongly curved distributions. The old default behaviour was to interpolate the curve at the bin centres, which can still be enabled by setting the useAverage parameter of `RooPlot::residHist` or `RooPlot::pullHist` to `false`. Fixes root-project#7239.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explain what you would like to see improved
When using pullHist, don't take curve at bin centre, but integrate curve over the bin. That should fix the following pull plot:
Optional: share how it could be improved
root/roofit/roofitcore/src/RooHist.cxx
Lines 777 to 787 in 478d84e
Code to produce such a plot
From here
The text was updated successfully, but these errors were encountered: