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] RooBarlowBeestonLL: Avoid removing elements of RooArgSet while looping over them #10921

Conversation

MichelDC
Copy link
Contributor

@MichelDC MichelDC commented Jul 7, 2022

This Pull request:

Avoid removing elements of RooArgSet in RooBarlowBeestonLL while looping over them. This was broken since ROOT v6.18, after RooAbsCollection was moved to std::vector . This (re)enables the analytical treatment of statistical uncertainties in bins with the Barlow-Beeston-Lite procedure.

Changes or fixes:

As described above.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

@phsft-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@bellenot
Copy link
Member

bellenot commented Jul 7, 2022

@phsft-bot build

@phsft-bot
Copy link
Collaborator

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

@guitargeek guitargeek changed the title RooBarlowBeestonLL: Avoid removing elements of RooArgSet while looping over them [RF] RooBarlowBeestonLL: Avoid removing elements of RooArgSet while looping over them Jul 8, 2022
Copy link
Contributor

@guitargeek guitargeek 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 so much for investigating and fixing this error! Really awesome 👍

As this is an important bugfix, I will also backport this to the 6.26 branch to enter the next 6.26 patch release.

This PR fixes the following issue reported on the forum:
https://root-forum.cern.ch/t/problems-with-histfactory-and-beeston-barlow-light-statistical-uncertainty

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.

4 participants