Skip to content

[6.40] [RF] Fix implementation of RooGenericPdf/RooFormulaVar::binBoundaries()#22868

Merged
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22859
Jul 21, 2026
Merged

[6.40] [RF] Fix implementation of RooGenericPdf/RooFormulaVar::binBoundaries()#22868
guitargeek merged 1 commit into
root-project:v6-40-00-patchesfrom
root-project-bot:BP_6.40_pull_22859

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #22859, requested by @guitargeek.

Follows up on 9ea4ec6, which got the implementation of
`RooFormulaVar::binBoundaries()` and `RooGenericPdf::binBoundaries()`
wrong. The limis passed to the `binBoundaries()` call should not be
included in the returned `std::list<double>`.

I was led to believe that including the query boundaries was necessary,
because otherwise the numeric integrals didn't work, but I see now that
this is actually a bug on the RooBinIntegrator side, which is now
reported as root-project#22858.

Also, implement a unit test that ensures the fixed implementation of
`binBoundaries()` is consistent with the one of RooHistPdf and matches
the expected values.

Finally, move a remaining helper that was added in 9ea4ec6 from the
public to the private interface (from RooHelpers.h to
RooFitImplHelpers.h, which never gets installed).

(cherry picked from commit 28b3942)
@guitargeek
guitargeek merged commit 3bac487 into root-project:v6-40-00-patches Jul 21, 2026
39 checks passed
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.

3 participants