Skip to content

[RF][HF] Check for consistent datasets across channels before combining#21101

Merged
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:issue-21066
Feb 3, 2026
Merged

[RF][HF] Check for consistent datasets across channels before combining#21101
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:issue-21066

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

@guitargeek guitargeek commented Feb 2, 2026

This makes problems like the one reported in #21066 easier to debug by the user, because there will be a meaningful error message like this instead of a crash:

[#2] FATAL:HistFactory -- ERROR: Inconsistent datasets across channel workspaces.
Workspace for channel "SR_3L_0RC_binary_binary_3L_0RC" does not match the datasets in channel "SR_2L_mva_2L_multiclass_ttll".
  Missing datasets:
    - obsData
All channel workspaces must contain exactly the same datasets.
terminate called after throwing an instance of 'RooStats::HistFactory::hf_exc'
  what():  HistFactory - Exception

Closes #21066

This makes problems like the one reported in root-project#21066 easier to debug by
the user, because there will be a meaningful error message like this
instead of a crash:
```txt
[#2] FATAL:HistFactory -- ERROR: Inconsistent datasets across channel workspaces.
Workspace for channel "SR_3L_0RC_binary_binary_3L_0RC" does not match the datasets in channel "SR_2L_mva_2L_multiclass_ttll".
  Missing datasets:
    - obsData
All channel workspaces must contain exactly the same datasets.
terminate called after throwing an instance of 'RooStats::HistFactory::hf_exc'
  what():  HistFactory - Exception
```
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 2, 2026

Test Results

    22 files      22 suites   3d 16h 56m 55s ⏱️
 3 776 tests  3 776 ✅ 0 💤 0 ❌
75 060 runs  75 060 ✅ 0 💤 0 ❌

Results for commit 3649c5f.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
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 adding this conistency check

@guitargeek guitargeek merged commit e37fefd into root-project:master Feb 3, 2026
57 of 59 checks passed
@guitargeek guitargeek deleted the issue-21066 branch February 3, 2026 21:35
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] Crash doing HistFactory Workspace combination

2 participants