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][RS] Fix StandardHistFactoryPlotsWithCategories tutorial #18020

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

guitargeek
Copy link
Contributor

The StandardHistFactoryPlotsWithCategories tutorial assumed that the nominal and plus-minus one sigma values of all nuisance parameters was zero, plus one, and minus one respectively. This is not true, especially for gamma parameters, where the nominal value is one.

The actual values and uncertainties should be taken from the parameters with getVal() and getError(). This also fixes the output plot in the tutorial for the gamma parameters:

https://root.cern/doc/master/StandardHistFactoryPlotsWithCategories_8C.html

The StandardHistFactoryPlotsWithCategories tutorial assumed that the
nominal and plus-minus one sigma values of all nuisance parameters was
zero, plus one, and minus one respectively. This is not true, especially
for `gamma` parameters, where the nominal value is one.

The actual values and uncertainties should be taken from the parameters
with `getVal()` and `getError()`. This also fixes the output plot in the
tutorial for the gamma parameters:

https://root.cern/doc/master/StandardHistFactoryPlotsWithCategories_8C.html
Copy link

github-actions bot commented Mar 16, 2025

Test Results

    20 files      20 suites   5d 7h 4m 25s ⏱️
 2 726 tests  2 726 ✅ 0 💤 0 ❌
52 593 runs  52 593 ✅ 0 💤 0 ❌

Results for commit f2b0203.

♻️ This comment has been updated with latest results.

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 for fixing this tutorial!

@guitargeek guitargeek merged commit ca5b243 into root-project:master Mar 19, 2025
43 of 44 checks passed
@guitargeek guitargeek deleted the roostats_tutorial branch March 19, 2025 10:22
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.

2 participants