Skip to content

[RF] Fix RooAddPdf::fixCoefRange cache issue with createIntegral#10995

Merged
guitargeek merged 2 commits into
root-project:masterfrom
guitargeek:issue-10988
Jul 20, 2022
Merged

[RF] Fix RooAddPdf::fixCoefRange cache issue with createIntegral#10995
guitargeek merged 2 commits into
root-project:masterfrom
guitargeek:issue-10988

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

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.

Furthermore, another potential RooAddPdf problem is fixed, where several instances of RooRecursiveFraction were created with the same name (which could become problematic for example when using the new BatchMode).

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.
It should be avoided to have RooAbsArgs with the same object name as
part of the same computation graph.

This has happened in RooAddPdf when using internally defined recursive
coefficients, which is changed with this commit.
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac1015/cxx17, mac11/cxx14, windows10/cxx14
How to customize builds

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you for the fix and nice you have included also a test !

@guitargeek guitargeek merged commit 28247cf into root-project:master Jul 20, 2022
@guitargeek guitargeek deleted the issue-10988 branch July 20, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RF] RooAddPdf::fixCoefRange cache issue with createIntegral

3 participants