Skip to content

[HS3] Add parameter errors in HS3 JSON import/export#22405

Merged
guitargeek merged 1 commit into
root-project:masterfrom
Phmonski:feat/parameterErrors
Jun 12, 2026
Merged

[HS3] Add parameter errors in HS3 JSON import/export#22405
guitargeek merged 1 commit into
root-project:masterfrom
Phmonski:feat/parameterErrors

Conversation

@Phmonski

@Phmonski Phmonski commented May 26, 2026

Copy link
Copy Markdown
Contributor

This Pull request:

This PR adds support for exporting and importing RooRealVar parameter errors through HS3 JSON. Parameter uncertainties are written to misc.minimization.parameter_stepwidths and restored during import after the default parameter snapshot is loaded.

Changes or fixes:

The export logic collects relevant parameters from ModelConfig POI/nuisance sets and from PDF/data fallback discovery, while excluding observables and data axes. The PR also adds regression coverage for parameter-error round-tripping, data-axis exclusion, and preserving imported errors together with default snapshot values.

Checklist:

  • tested changes locally

@will-cern @cburgard

@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

Test Results

    21 files      21 suites   3d 6h 57m 15s ⏱️
 3 863 tests  3 863 ✅ 0 💤 0 ❌
73 716 runs  73 716 ✅ 0 💤 0 ❌

Results for commit 5897165.

♻️ This comment has been updated with latest results.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes look good to me!

The commit history: not yet. Extra commits that just reformat the code additions of previous commits are unnecessary noise. Could you please squash the clang-format commit with the commit that added this RooJSONFactoryWSTool::warning?

@Phmonski Phmonski force-pushed the feat/parameterErrors branch from e91e139 to 5897165 Compare June 11, 2026 17:36
@Phmonski

Copy link
Copy Markdown
Contributor Author

@guitargeek
I squashed the commits into a single one.

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@guitargeek guitargeek merged commit 283b12f into root-project:master Jun 12, 2026
32 of 33 checks passed
@guitargeek

Copy link
Copy Markdown
Contributor

/backport to 6.40

@root-project-bot

Copy link
Copy Markdown

Preparing to backport PR #22405 to branch 6.40 requested by guitargeek

@root-project-bot

Copy link
Copy Markdown

This PR has been backported to branch 6.40: #22585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants