Repository navigation
[6.42] [RF] Don't wrap jointly normalized RooProdPdf factors for normalization - #24064
Merged
guitargeek merged 1 commit intoNov 9, 2026
Merged
guitargeek merged 1 commit into
guitargeek merged 1 commit into
Conversation
Factors of a RooProdPdf with overlapping normalization observables are
normalized together by a RooGenProdProj. RooProdPdf::compileForNormSet()
now creates the computation graph of the RooFixedProdPdf from a shallow
clone of the product where these factors are unwrapped from their
RooNormalizedPdf, so the RooGenProdProj integrates the unnormalized pdfs
like the scalar evaluation. The RooFixedProdPdf still forwards
analytical integrals to the product with the wrapped pdfs: with the
unwrapped ones, these integrals would not match its normalized value,
which breaks nested products.
This fixes two problems with the wrapped pdfs:
* The RooGenProdProj clones its pdfs, and the clone of a
RooNormalizedPdf owns a copy of its normalization integral, which
the RooFit::Evaluator doesn't keep up to date. If the normalization
depends on an observable, for example for a pdf conditional on it,
the likelihood in the new test was wrong by 36 %.
* Integrals of normalized pdfs are smaller, so the absolute tolerance
of the numerical integration costs more precision. For the
rf305_condcorrprod model of the HS3 test suite, the relative error
of 1e-6 exceeded the tolerance of the suite.
The new test requires agreement with the scalar evaluation to 1e-10.
🤖 Done with the help of AI
(cherry picked from commit f441b56)
root-project-bot
requested review from
guitargeek and
hageboeck
as code owners
November 9, 2026 13:01
Test Results 24 files 24 suites 4d 3h 46m 49s ⏱️ For more details on these failures, see this check. Results for commit 4cff101. |
guitargeek
merged commit Nov 9, 2026
72d3929
into
root-project:v6-42-00-patches
38 of 40 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #24039, requested by @guitargeek.