analyzer.modules.common.hlt_selection¶
Classes¶
Select events based on HLT triggers. |
|
Save HLT triggers to the output columns. |
|
Analyzer module applying complex HLT-based selections with dataset-dependent |
Module Contents¶
- class analyzer.modules.common.hlt_selection.SimpleHLT[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleSelect events based on HLT triggers.
Parameters¶
- triggerslist[str]
List of trigger names to select.
- selection_namestr
Name of the selection to be added to the columns.
- class analyzer.modules.common.hlt_selection.SaveHLT[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleSave HLT triggers to the output columns.
- class analyzer.modules.common.hlt_selection.ComplexHLT[source]¶
Bases:
analyzer.core.analysis_modules.AnalyzerModuleAnalyzer module applying complex HLT-based selections with dataset-dependent trigger logic.
This module evaluates High-Level Trigger (HLT) decisions using a configurable set of trigger and veto definitions. The configuration is selected dynamically based on the dataset name using regular-expression pattern matching.
- For a matched configuration:
All configured trigger paths are OR-combined to form the pass condition.
All configured veto paths are OR-combined to form the veto condition.
The final selection is defined as:
pass_trigger AND (NOT veto_trigger)
Parameters¶
- trigger_configlist[ComplexHLTConfig]
Ordered list of trigger configurations. Each configuration must define a regular-expression pattern used to match the dataset name, along with trigger and veto path names. The first matching configuration is used.
- selection_namestr, optional
Name of the selection written to the output columns. The selection is stored under
Selection.<selection_name>. Default is"PassHLT".
Raises¶
- ValueError
If no trigger configuration matches the dataset name.
- trigger_config: list[ComplexHLTConfig][source]¶