Skip to content

[RF][RS] Sync events per toy with observed data in HypoTest if needed #19448

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

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

Conversation

guitargeek
Copy link
Contributor

For non-extended pdfs, the number of generated events in toy studies
should be synced with the number of events in the observed dataset.
Otherwise, the generation of the toy data will fail.

Closes #19419.

@ferdymercury
Copy link
Collaborator

Thanks!! Does this also have some relation to #6949 and #9490?

Copy link

github-actions bot commented Jul 23, 2025

Test Results

    20 files      20 suites   3d 9h 38m 53s ⏱️
 3 215 tests  3 209 ✅ 0 💤 6 ❌
62 642 runs  62 636 ✅ 0 💤 6 ❌

For more details on these failures, see this check.

Results for commit ceac460.

♻️ This comment has been updated with latest results.

Just printing an error message is not enough, because this might be
silenced or not seen. Also, the downstream code might not always check
for a `nullptr` return value and do proper error handling, leading to
crashes down the line that are hard to understand.
For non-extended pdfs, the number of generated events in toy studies
should be synced with the number of events in the observed dataset.
Otherwise, the generation of the toy data will fail.

Closes root-project#19419.
Don't run minimizer if there are no free parameters in the profile
likelihood calculator. This is already done for conditional fits, but
not unconditional fits. Refactor the code such that the same logic is
used for both kinds of fits.
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] FrequentistCalculator cannot handle non-parametric Pdfs
2 participants