DaVinci.algorithms

Module Contents

Functions

create_lines_filter(→ PyConf.Algorithms.VoidFilter)

Create an event pre-filter requiring the specified lines.

apply_filters(→ dict[str, ...)

Adding filter algorithms.

make_fsr_algs(→ dict[str, list[Any]])

Make FSR related algorithms.

configured_FunTuple(→ dict[str, Any])

Function for the FunTuple configuration and instantiation of the related HDR filter.

Attributes

log

log[source]
create_lines_filter(name: str, lines: list[str]) PyConf.Algorithms.VoidFilter[source]

Create an event pre-filter requiring the specified lines.

Note that the lines are ‘split’ according to their source (Hlt1, Hlt2, Spruce), and for each thus specified source, at least one of the corresponding lines must have passed.

Parameters:
  • name (str) – filter’s name.

  • lines (list) – trigger lines requested.

Returns:

VoidFilter filter instance with name and code defined by the user.

apply_filters(options: DaVinci.LbExec.Options, algs_dict: dict[str, list[str]]) dict[str, list[PyConf.Algorithms.VoidFilter]][source]

Adding filter algorithms.

Parameters:
  • options (DaVinci.Options) – lbexec provided options object

  • algs_dict (dict) – dict of the user algorithms.

Returns:

Dict where at each node filters are prepended to the initial list of user algorithms.

make_fsr_algs(options: DaVinci.LbExec.Options) dict[str, list[Any]][source]

Make FSR related algorithms.

Parameters:

options (DaVinci.Options) – lbexec provided options object

Returns:

Dist with list of FSR algorithm instances to be configured.

configured_FunTuple(config: dict[str, Any]) dict[str, Any][source]

Function for the FunTuple configuration and instantiation of the related HDR filter.

Parameters:

config (dict) – configuration dict containing information for the tuple setting: - dict key: name of FunTuple algorithm to be instantiated. - tuple: name of the ntuple built by Funtuple. - fields: dict containing all the fields (branches) to be stored in Funtuple. - variables: dict containing FunctorCollection to be associated to the Funtuple fields (branches). - preamble: string for the LoKi preamble - location: string containing the particles location to be used as input. - filters: list of line decisions for filtering the events.

Returns:

  • List of filters and tupling algorithms.