Skip to content

[df] Handle containers in RHist* filling - #22899

Open
hahnjo wants to merge 3 commits into
root-project:masterfrom
hahnjo:hist-df-containers
Open

[df] Handle containers in RHist* filling#22899
hahnjo wants to merge 3 commits into
root-project:masterfrom
hahnjo:hist-df-containers

Conversation

@hahnjo

@hahnjo hahnjo commented Jul 23, 2026

Copy link
Copy Markdown
Member

As for the existing Histo actions, the sizes of all containers must match while scalars are broadcasted. As an extension, this works recursively, so nested vectors are handled one level at a time.

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 613e0bd.

♻️ This comment has been updated with latest results.

@gpetruc

gpetruc commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Hi!

Thanks, this feature is what I was looking for when trying to switch my code from Histo to Hist.
Would it cover also the case of a vector column and a scalar weight (to be broadcasted)?

Giovanni

@hahnjo

hahnjo commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Hi @gpetruc

Thanks, this feature is what I was looking for when trying to switch my code from Histo to Hist. Would it cover also the case of a vector column and a scalar weight (to be broadcasted)?

Yes, the support should be a superset of what Histo can do, notably for nested collections. Weight columns will follow the same rules as value columns wrt broadcasting.

hahnjo added 3 commits July 28, 2026 15:38
It abstracts the loop when Exec'uting with data containers, in the
following commit for RHist*FillHelper and in the future for the other
FillHelpers.
As for the existing Histo actions, the sizes of all containers must
match while scalars are broadcasted. As an extension, this works
recursively, so nested vectors are handled one level at a time.
This reduces repeated arguments that must be consistent.
@hahnjo
hahnjo force-pushed the hist-df-containers branch from 613e0bd to ecef742 Compare July 28, 2026 14:29
@hahnjo hahnjo changed the title [df] Handle containers in RHist filling [df] Handle containers in RHist* filling Jul 28, 2026
@hahnjo
hahnjo marked this pull request as ready for review July 28, 2026 14:29
@hahnjo
hahnjo requested a review from hageboeck as a code owner July 28, 2026 14:29
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.

2 participants