[RF] Fix some design issues with the RooTreeDataStore #17165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The RooAbsDataStore has a virtual function
tree()
which is not meaningful for a general data store. This function should be removed.The RooTreeDataStore has one
const
version ontree()
and one non-const version. One returns a pointer and the other a reference, which is very confusing.The RooTreeDataStore has some methods that just forward to the underlying TTree, but they were not used.
Changes to the data store classes can be made without impacting users because they are implementation details of the RooFit dataset classes.