Skip to content

support per-event weights for PackedSelection.cutflow #1270

@kratsg

Description

@kratsg

Is your feature request related to a problem? Please describe.

Right now, cutflow provides a histogram that is effectively raw event yields (where weight is just 1 (num of events). The current problem is that this is hard-coded.

Describe the solution you'd like

It would be great to pass in an array or broadcast-able value for the weights to fill (such as weights=1 recovers original behavior and weights=events.weight allows per-event weighting).

Describe alternatives you've considered

None? Unless I make my own histograms lazily...

Additional context

From discussion with @ikrommyd on IRIS-HEP Slack in #coffea channel

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions