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

[v626][RF] Backports of RooFit PRs to v6-26-00-patches: Part 24 #11748

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Nov 19, 2022

This is a backport of all the relevant bugfix RooFit PRs that were recently merged to master to v6-26-00-patches (in the right order, to not have the commit history diverge too much).

  1. [RF] Fix wrong order of iterating over curves in RooPlot::residHist()  #11566
  2. [RF] Remove error in RooWorkspace::getSnapshot() if no snapshot found #11584
    Only the first commit that is not code modernization

Related to #11534.

This virtual funciton was only implemented as a dummy and didn't get
overloaded in any for the classes deriving from RooPlot (there are none).
The iteration over the plotted `_items` should be in reverse order to
consider the last-plotted curve for the residual histogram.

Also, this commit imporves the support for multi-range residuals by
making sure that multiple curves with the same name are only considered
if the curves are not overlapping.

This commit is a fixup to commit b4bf80c.
In this forum post, the point was made that
`RooWorkspace::getSnapshot()` should not print an error if a snapshot
with the passed name is not found.

https://root-forum.cern.ch/t/roofit-check-if-snapshot-exist-without-showing-objecthandling-error

Just like in the other `RooWorkspace` access functions, like `arg()`,
`pdf()`, or `function()`, users expect to use `getSnapshot()` also to
query if a snapshot exists and check if the returned value is `nullptr`.
So there should be no error printed in `getSnapshot()` itself. If it is
actually an error for th caller that no snapshot has been found, an
error or exception should be raised by the caller.
@phsft-bot
Copy link
Collaborator

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

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/cxx17.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2004/python3.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft18.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2022-11-19T15:39:05.778Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2022-11-19T15:39:16.666Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2022-11-19T15:39:23.644Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mfree.c:194:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-19T15:39:23.644Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:51:9: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-19T15:39:23.644Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:200:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-19T15:39:23.644Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmemalign.c:37:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-19T15:39:28.930Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/unix/src/TUnixSystem.cxx:4922:17: warning: variable 'vsize' set but not used [-Wunused-but-set-variable]
  • [2022-11-19T15:39:59.990Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/bindings/pyroot/cppyy/CPyCppyy/src/CPPOverload.cxx:302:44: warning: parameter 'pymeth' set but not used [-Wunused-but-set-parameter]
  • [2022-11-19T15:40:09.646Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/io/io/src/TMemFile.cxx:180:13: warning: variable 'mode' set but not used [-Wunused-but-set-variable]
  • [2022-11-19T15:40:09.904Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/io/io/src/TStreamerInfo.cxx:4095:11: warning: variable 'ninc' set but not used [-Wunused-but-set-variable]

And 64 more

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu18.04/nortcxxmod.
Running on sft-ubuntu-1804-2.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-debian10-i386/soversion.
Running on pcepsft11.dyndns.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11/cxx14.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

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

Failing tests:

@guitargeek guitargeek force-pushed the v6-26-00-patches_roofit_backports_24 branch from 8ffdc28 to 0752e45 Compare November 21, 2022 02:28
@phsft-bot
Copy link
Collaborator

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

@phsft-bot
Copy link
Collaborator

Build failed on mac12/noimt.
Running on macphsft18.dyndns.cern.ch:/Users/sftnight/build/jenkins/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2022-11-21T03:49:15.817Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2022-11-21T03:49:19.429Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/interpreter/cling/include/cling/MetaProcessor/MetaLexer.h:60:5: warning: definition of implicit copy assignment operator for 'Token' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
  • [2022-11-21T03:49:36.303Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/unix/src/TUnixSystem.cxx:4922:17: warning: variable 'vsize' set but not used [-Wunused-but-set-variable]
  • [2022-11-21T03:49:43.721Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:51:9: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-21T03:49:43.722Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmalloc.c:200:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-21T03:49:43.722Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mmemalign.c:37:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-21T03:49:43.722Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/clib/src/mfree.c:194:13: warning: performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
  • [2022-11-21T03:50:36.534Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/bindings/pyroot/cppyy/CPyCppyy/src/CPPOverload.cxx:302:44: warning: parameter 'pymeth' set but not used [-Wunused-but-set-parameter]
  • [2022-11-21T03:50:52.015Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/io/io/src/TStreamerInfo.cxx:4095:11: warning: variable 'ninc' set but not used [-Wunused-but-set-variable]
  • [2022-11-21T03:50:52.273Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/io/io/src/TStreamerInfoActions.cxx:3981:13: warning: variable 'asize' set but not used [-Wunused-but-set-variable]

And 64 more

@guitargeek guitargeek merged commit c698832 into root-project:v6-26-00-patches Nov 21, 2022
@guitargeek guitargeek deleted the v6-26-00-patches_roofit_backports_24 branch November 21, 2022 10:03
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] ROOT v6.26/08 plots wrong pull distribution with RooPlot::pullHist
2 participants