Skip to content

Conversation

@guitargeek
Copy link
Contributor

Since a8ef8b0, any RooAbsPdf that makes a prediction for the expected number of events will use this prediction for the normalization when plotting.

This made is more meaningful to compare models with data because the model normalization was not automatically scaled to match the data.

However, it also broke plots with projections of RooSimultaneous pdfs over data, because the temporary RooAddPdf that is created in this case did not use coefficients that were scaled to the actual dataset, but to unity. Correctly normalizing to the sum of entries in the dataset fixes this problem.

A unit test is also implemented.

Closes #20383.

Since a8ef8b0, any RooAbsPdf that makes a prediction for the expected
number of events will use this prediction for the normalization when
plotting.

This made is more meaningful to compare models with data because the
model normalization was not automatically scaled to match the data.

However, it also broke plots with projections of RooSimultaneous pdfs
over data, because the temporary RooAddPdf that is created in this case
did not use coefficients that were scaled to the actual dataset, but to
unity. Correctly normalizing to the sum of entries in the dataset fixes this
problem.

A unit test is also implemented.

Closes root-project#20383.
Avoid warning about duplicate command arguments by removing old
arguments when overriding them.
@github-actions
Copy link

Test Results

    22 files      22 suites   3d 15h 49m 38s ⏱️
 3 779 tests  3 434 ✅   0 💤 345 ❌
81 179 runs  80 434 ✅ 400 💤 345 ❌

For more details on these failures, see this check.

Results for commit a1c38f9.

Copy link
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

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

LGTM!
Thank you Jonas to fix this imporatnt issue.

@guitargeek guitargeek merged commit d4b150c into root-project:master Nov 17, 2025
27 of 30 checks passed
@guitargeek guitargeek deleted the issue-20383 branch November 17, 2025 10:43
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.

Broken rf501_simultaneouspdf.py in dev3/nighlies

2 participants