-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Deprecate some RooDataSet constructors #14317
Conversation
Starting build on |
Build failed on ROOT-ubuntu2204/nortcxxmod. Failing tests: |
Build failed on ROOT-performance-centos8-multicore/soversion. Errors:
Failing tests:
|
Build failed on windows10/default. Failing tests: |
Build failed on ROOT-ubuntu2004/python3. Failing tests: |
Avoid using some redundant RooDataSet constructors that will be deprecated.
Avoid using some redundant RooDataSet constructors that will be deprecated. Separate commit from the previous one so it can be backported.
When using the `RooFit::Cut("...")` command argument in the RooDataSet constructor to filter imported datasets, the `RooFormulaVar` representing the cut should not check if all the variables in the dataset are used for the expression. This is already done in other code branches like the `RooVectorDataStore` constructors, and this commit adds this tweak also to the remaining `RooDataSet` constructors to make the behavior consistent.
The RooDataSet has some constructors that are redundant with specific cases that can be covered with the command-argument constructor. This can cause confusion like here in the forum: https://root-forum.cern.ch/t/how-to-use-weighted-unbinned-dataset-in-roofit/57631 To avoid this interface duplication, these constructors are deprecated and will be removed in ROOT 6.34.
The correct signature is `RooFit::Import(TTree&)`. This was noticed thanks to the following forum post. https://root-forum.cern.ch/t/how-to-use-weighted-unbinned-dataset-in-roofit/57631
Starting build on |
Test Results 9 files 9 suites 1d 22h 14m 9s ⏱️ Results for commit d3086d4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The RooDataSet constructor that takes a weight variable name was deprecated in ROOT 6.32: root-project/root#14317 The general command argument constructor should be used, which doesn't change the functionality and is also backwards compatible with older ROOT versions. Also, avoid a unused variable warning.
The RooDataSet constructor that takes a weight variable name was deprecated in ROOT 6.32: root-project/root#14317 The general command argument constructor should be used, which doesn't change the functionality and is also backwards compatible with older ROOT versions. Also, avoid a unused variable warning.
The RooDataSet constructor that takes a weight variable name was deprecated in ROOT 6.32: root-project/root#14317 The general command argument constructor should be used, which doesn't change the functionality and is also backwards compatible with older ROOT versions. Also, avoid a unused variable warning.
The other constructors can cause some confusion to the users.
For now, this change is only to see the result of the CI.