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] Implement weighted Filters #12303

Open
eguiraud opened this issue Feb 13, 2023 · 0 comments
Open

[DF] Implement weighted Filters #12303

eguiraud opened this issue Feb 13, 2023 · 0 comments

Comments

@eguiraud
Copy link
Member

Serious analyses involve running on MC samples which are tipically assigned a weight.
If Filters could be informed of event weights, Reports could take that into account (as requested at https://root-forum.cern.ch/t/rdataframe-feature-request-weighted-cut-reports/53570).

Alternative we could add a mechanism to keep track of event weights separately, in a dedicated "virtual" column (that by default contains all ones, e.g., as discussed with G. Petrucciani from CMS a couple of times:

df.UpdateEventWeight("w1")
  .UpdateEventWeight("w2")
  .Filter("x > 0")
  .Histo1D("x", "rdfeventweight_")
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

4 participants