DaVinci.LbExec

Classes

Options

A class that holds the user-specified DaVinci options.

TestOptions

Specialized Options class for Davinci Tests

Module Contents

class Options(/, **data: Any)[source]

Bases: GaudiConf.LbExec.Options

A class that holds the user-specified DaVinci options.

This class inherits from the default GaudiConf.LbExec.Options.

This class also configures several PyConf functions, see the list in the apply_binds method, where their keyword arguments are globally bound to the user-specified values. This way, users do not have to manually configure these functions themselves.

The optional parameters that need to be set are:

  • input_stream (str): Stream name, internally converted to lowercase. Default is “default”. (Note: for input_process=Hlt2 the stream must be strictly empty. The default value is overwritten in this case.)

  • lumi (bool): Flag to store luminosity information. Default value is True and if Data the “lumiTree” is written by default. If MC the “lumiTree” is not written

  • write_fsr (bool): Flag to write the old file summary record. Requires also ntuple_file != None. Default is False.

  • write_fsr_json_file (str): “” If not empty, file to which the file summary record will be dump in json format (on top of the output Root file)

_input_config is an ugly hack so that the configuration can be retrieved in config.py This is needed due to the way DaVinci configures itself, which is kind of not compatible with the PyConf spirit

input_stream: str | None = 'default'
lumi: bool = True
write_fsr: bool = False
write_fsr_json_file: str = ''

Logging

dstformat: GaudiConf.LbExec.DSTFormatTypes | None = 'uDST'
validate_input_output()[source]

Validator for the consistency of the input process and input/output file formats for Sprucing jobs.

validate_fsr_options()[source]

Validator for the consistency of writing FSRs and other settings.

apply_binds()[source]

This function configures the following PyConf functions, where their keyword arguments are globally bound to the user-specified values: - default_raw_event - reconstruction - tes_root - tes_root_for_tistos - tes_root_mc This way users do not have to manually configure these functions themselves.

class TestOptions(/, **data: Any)[source]

Bases: GaudiConf.LbExec.TestOptionsBase, Options

Specialized Options class for Davinci Tests