Skip to content

Conversation

@will-cern
Copy link
Contributor

A set of, hopefully, non-controversial changes to some roofit classes to allow certain data members to be accessed publicly.

@phsft-bot
Copy link

Can one of the admins verify this patch?

Comment on lines +388 to +391
void selectComp(bool flag) {
// If flag is true, only selected component will be included in evaluates of RooAddPdf components
_selectComp = flag ;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
void selectComp(bool flag) {
// If flag is true, only selected component will be included in evaluates of RooAddPdf components
_selectComp = flag ;
}
/// If flag is true, only selected component will be included in evaluates of RooAddPdf components
void selectComp(bool flag) {
_selectComp = flag ;
}

Don't bother doing it now, but for the next time if you are changing the code and stumble across the old documentation strings, please take the opportunity to update them to the doxygen format (/// and . at the end).

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, not really controversial changes indeed! All the data member that are now publicly accessible before were already protected before, so basically public already. Only the _namedSets in the RooWorkspace was private, but it's content was already accessible to the user anyway via RooWorkspace::set().

@guitargeek guitargeek self-assigned this Jan 15, 2023
@guitargeek guitargeek changed the title New public accessor methods for various roofit data members [RF] New public accessor methods for various roofit data members Jan 15, 2023
@guitargeek
Copy link
Contributor

@phsft-bot build

@phsft-bot
Copy link

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

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

Warnings:

  • [2023-01-15T10:12:40.387Z] /Users/sftnight/build/jenkins/workspace/root-pullrequests-build/root/core/base/src/TDirectory.cxx:1245:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]

Failing tests:

And 63 more

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.

3 participants