Skip to content

[DF] Support for RHist with VariationsFor (on root master) - #22956

Open
gpetruc wants to merge 3 commits into
root-project:masterfrom
gpetruc:rhist_variationsfor
Open

[DF] Support for RHist with VariationsFor (on root master)#22956
gpetruc wants to merge 3 commits into
root-project:masterfrom
gpetruc:rhist_variationsfor

Conversation

@gpetruc

@gpetruc gpetruc commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Support for RHist with VariationsFor

Changes or fixes:

In order to allow VariationsFor on RHist, this PR does two things:

  • change the plain copy of the object with a call to a template function that I can specialise to use Clone() on RHist and RHistEngine that are non-copiable.
  • implements the MakeNew method for RHistFillHelper and RHistEngineFillHelper

Both changes are trivial, all the existing logic for VariationsFor, copying and filling RHists is unchanged.

To check that the code compiles and run, two unit tests are added, for RHistFillHelper and RHistEngineFillHelper.
No attempt is made of testing VariationsFor on all possible code paths (JIT vs compile time, 1D vs multi-D, weights vs no weights, etc.) because the code changes are agnostic to all that.

This PR is based on the current master, but I have also a branch on top of #22899 from @hahnjo : the two features are orthogonal, but some trivial merge conflicts are expected in the unit tests.

Checklist:

  • tested changes locally
  • tested with ctest -R gtest-tree-dataframe-dataframe-hist

This PR fixes #22954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DF] Support for RHist with VariationsFor

3 participants