Skip to content

Conversation

@will-cern
Copy link
Contributor

Explanation is in comments for new methods - allows underlying dataHist to be cloned if necessary to take ownership

…ing dataHist in order to take ownership of it
@phsft-bot
Copy link

Can one of the admins verify this patch?

@guitargeek
Copy link
Contributor

@phsft-bot build

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.

Hi, thanks for the contribution!

I have only one request: can you please put the definitions in the cxx files, with the documentation? If the definition is in the header file, the compiler might inline the function, which is great if the function is cheap and the call overhead is large, but in general it makes debugging harder because there is no stack trace for the call, also binaries are a bit larger then.

@guitargeek guitargeek changed the title add cloneAndOwnDataHist method to RooHistFunc and RooDataHist [RF] Add cloneAndOwnDataHist() method to RooHistFunc and RooHistPdf Jan 15, 2023
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.

Thanks for implementing this new method and taking care of the review comments!

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