Skip to content
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] Make it clear when to use RooSimultaneous::generateSimGlobal #17638

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Feb 5, 2025

More details in the comments in the code added in this commit.

To make it short: the user probably wants to use generateSimGlobal
when not generating the index category value (or taking it from a proto
dataset), and RooAbsPdf::generate() otherwise.

To avoid confusion, there are now new errors when one does the opposite,
which is certainly a user error.

Revert also the commit where I deprecated generateSimGlobal for a lack of a real understanding of its purpose.

Thanks to @TomasDado for pointing out that it's still needed, and for privately providing a code example where it's necessary.

More details in the comments in the code added in this commit.

To make it short: the user probably wants to use `generateSimGlobal`
when not generating the index category value (or taking it from a proto
dataset), and `RooAbsPdf::generate()` otherwise.

To avoid confusion, there are now new errors when one does the opposite,
which is certainly a user error.
Copy link

github-actions bot commented Feb 6, 2025

Test Results

    18 files      18 suites   4d 11h 23m 17s ⏱️
 2 690 tests  2 689 ✅ 0 💤 1 ❌
46 724 runs  46 723 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 4b0ba94.

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.

1 participant