Skip to content

[RF] Consistent behavior for uniform constraint terms in HistFactory#10525

Merged
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:issue-9070
May 4, 2022
Merged

[RF] Consistent behavior for uniform constraint terms in HistFactory#10525
guitargeek merged 1 commit intoroot-project:masterfrom
guitargeek:issue-9070

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

In HistFactory, normalization uncertainties and shape uncertainties were
treated differently when setting the constraint type to uniform, e.g.:

<ConstraintTerm Type="Uniform" RelativeUncertainty="1">NP_shape</ConstraintTerm>
<ConstraintTerm Type="Uniform" RelativeUncertainty="1">NP_norm</ConstraintTerm>

See #9070 for a very good explanation of the problem.

For non-shape uncertainties, the uniform constraint was treated as a
special case of the Gaussian constraint with "infinite" sigma. For shape
uncertainties, the Uniform type was ignored.

This commit suggests to refactor the creation of Gaussian constraints
such that the logic that considers the "Uniform" tag is also used for
shape uncertainties.

Closes #9070.

In HistFactory, normalization uncertainties and shape uncertainties were
treated differently when setting the constraint type to uniform, e.g.:

```xml
<ConstraintTerm Type="Uniform" RelativeUncertainty="1">NP_shape</ConstraintTerm>
<ConstraintTerm Type="Uniform" RelativeUncertainty="1">NP_norm</ConstraintTerm>
```

See root-project#9070 for a very good explanation of the problem.

For non-shape uncertainties, the uniform constraint was treated as a
special case of the Gaussian constraint with "infinite" sigma. For shape
uncertainties, the `Uniform` type was ignored.

This commit suggests to refactor the creation of Gaussian constraints
such that the logic that considers the "Uniform" tag is also used for
shape uncertainties.

Closes root-project#9070.
@guitargeek guitargeek self-assigned this May 4, 2022
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

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!

@guitargeek guitargeek merged commit 35e27dd into root-project:master May 4, 2022
@guitargeek guitargeek deleted the issue-9070 branch May 4, 2022 17:07
@phsft-bot
Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

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] Inconsistent behavior when editing constraint terms in HistFactory models

3 participants