-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] RooAddPdf::fixCoefRange cache issue with createIntegral #10988
Labels
Comments
guitargeek
changed the title
RooAddPdf::fixCoefRange cache issue with createIntegral
[RF] RooAddPdf::fixCoefRange cache issue with createIntegral
Jul 19, 2022
guitargeek
added a commit
to guitargeek/root
that referenced
this issue
Jul 19, 2022
When the normalization range for coefficient determination of a RooAddPdf is changed, the AddPdf's projection cache needs to be reset, just like it is already done in `RooAddPdf::fixCoefNormalization`. Otherwise, there will be problems in the pdf evaluation and integration because the projection cache is invalid. A unit test based on the GitHub issue that reported this problem is also implemented. Closes root-project#10988.
Thanks for reporting the problem! I have opened a PR to fix it: #10995 |
guitargeek
added a commit
that referenced
this issue
Jul 20, 2022
When the normalization range for coefficient determination of a RooAddPdf is changed, the AddPdf's projection cache needs to be reset, just like it is already done in `RooAddPdf::fixCoefNormalization`. Otherwise, there will be problems in the pdf evaluation and integration because the projection cache is invalid. A unit test based on the GitHub issue that reported this problem is also implemented. Closes #10988.
j-mathe
pushed a commit
to j-mathe/root
that referenced
this issue
Jul 26, 2022
When the normalization range for coefficient determination of a RooAddPdf is changed, the AddPdf's projection cache needs to be reset, just like it is already done in `RooAddPdf::fixCoefNormalization`. Otherwise, there will be problems in the pdf evaluation and integration because the projection cache is invalid. A unit test based on the GitHub issue that reported this problem is also implemented. Closes root-project#10988.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am experiencing strange behaviour with
RooAddPdf::fixCoefRange
. When I callcreateIntegral
on aRooAddPdf
, then callfixCoefRange
, then callcreateIntegral
again, the same value is returned (whilst the change of definition of the coefficients should change the integral). It seems to me the cache does not get cleared when callingfixCoefRange
, as the behaviour is correct when callingfixCoefRange
before any integral computation.To Reproduce
This prints :
whilst I would expect :
Setup
ROOT 6.26/02
The text was updated successfully, but these errors were encountered: