analyzer.modules.common.selection¶
Classes¶
Apply a selection based on one or more boolean selection columns and |
|
Select events based on the number of objects in a collection. |
|
Selection trigger by trigger for each dataset. Takes advantage of the selection flow to get the yield. |
Module Contents¶
- class analyzer.modules.common.selection.SelectOnColumns[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleApply a selection based on one or more boolean selection columns and optionally save the cutflow.
This analyzer performs an AND of the specified selection columns (or all default selections if none are provided) and filters the events accordingly. Optionally, it stores a cutflow summary for monitoring.
Parameters¶
- sel_namestr
Name of the selection to be saved in the cutflow summary, eg
selectionorpreselection.- selection_nameslist of str or None, optional
List of selection column names to use. If None, defaults to all selections in
columns.pipeline_data["Selections"]that have not yet been processed.- save_cutflowbool, optional
If True, stores cutflow information for monitoring, by default True.
- class analyzer.modules.common.selection.NObjFilter[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleSelect events based on the number of objects in a collection.
- This analyzer filters events according to the number of objects
in a given column, requiring the count to be within specified limits.
Parameters¶
- selection_namestr
Name of the selection to store the result.
- input_colColumn
Column containing the collection of objects to count.
- min_countint or None, optional
Minimum number of objects required to pass, by default None.
- max_countint or None, optional
Maximum number of objects allowed to pass, by default None.
- input_col: analyzer.core.columns.Column[source]¶
- class analyzer.modules.common.selection.SelectAllTriggers[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleSelection trigger by trigger for each dataset. Takes advantage of the selection flow to get the yield.
Parameters¶
- sel_namestr
Name of the selection to be saved in the cutflow summary, eg
selectionorpreselection.