Skip to content
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

[DF] Add FilterPerSample feature #13422

Open
martamaja10 opened this issue Aug 9, 2023 · 0 comments
Open

[DF] Add FilterPerSample feature #13422

martamaja10 opened this issue Aug 9, 2023 · 0 comments

Comments

@martamaja10
Copy link
Contributor

martamaja10 commented Aug 9, 2023

Feature description

As requested by the user on the forum (https://root-forum.cern.ch/t/rdataframe-feature-request-per-sample-histo-graph-fill-and-filter/), a FilterPerSample feature would improve and simplify physics analysis when a single RDataFrame with multiple samples is used.

There is an additional suggestion from the user concerning "an option to expose the RSampleInfo object as a default RDataFrame column (in the same way as rdfentry_ and rdfslot_), maybe “rdfsample_” ".

Alternatives considered

The current workaround is by using a DefinePerSample in an additional column, where weights are set to 0 for all but the sample of interest.

Additional context

No response

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

No branches or pull requests

1 participant