analyzer.modules.common.hlt_selection

Classes

SimpleHLT

Select events based on HLT triggers.

SaveHLT

Save HLT triggers to the output columns.

ComplexHLTConfig

ComplexHLT

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.AnalyzerModule

Select 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.

triggers: list[str][source]
selection_name: str = 'PassHLT'[source]
run(columns, params)[source]
inputs(metadata)[source]
outputs(metadata)[source]
adlExport(metadata)[source]
class analyzer.modules.common.hlt_selection.SaveHLT[source]

Bases: analyzer.core.analysis_modules.AnalyzerModule

Save HLT triggers to the output columns.

triggers: list[str][source]
save_name: str = 'SavedHLT'[source]
run(columns, params)[source]
inputs(metadata)[source]
outputs(metadata)[source]
class analyzer.modules.common.hlt_selection.ComplexHLTConfig[source]
pattern: analyzer.utils.querying.BasePattern[source]
triggers: list[str][source]
veto: list[str][source]
class analyzer.modules.common.hlt_selection.ComplexHLT[source]

Bases: analyzer.core.analysis_modules.AnalyzerModule

Analyzer 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]
selection_name: str = 'PassHLT'[source]
run(columns, params)[source]
inputs(metadata)[source]
outputs(metadata)[source]