Skip to content

Add "column" mode to EventPreprocessor: keep but mark events that don't pass qualityquery #2954

@kosack

Description

@kosack

Please describe the use case that requires this feature.

Currently the EventPreprocessor, #2928 (and the older DL2EventPreprocessor) drop events that do not pass the QualityQuery, which is the normal use case. However when debugging, it is often useful to have a second mode: where all events are kept, but new boolean columns are added for each quality criterion. This makes it then easy to study which events are affected by specific cuts.

Describe the solution you'd like

Add an option to EventPreprocessor like quality_selection_mode that can be drop or mark. drop gives the standard behavior of dropping events that do not pass, while mark keeps all events but adds a boolean column for each criterion to the output.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions