![]() |
ATLAS Offline Software
|
Namespaces | |
| namespace | AtlRunQueryCache |
| namespace | AtlRunQueryDQUtils |
| namespace | AtlRunQueryFastBlobRead |
| namespace | AtlRunQueryIOV |
| namespace | AtlRunQueryLookup |
| namespace | AtlRunQueryMemUtil |
| namespace | AtlRunQueryTimer |
| namespace | AtlRunQueryTriggerUtils |
| namespace | AtlRunQueryUtils |
Classes | |
| class | FolderTagResolver |
Functions | |
| worst_status (iovs, *dummy_args) | |
| worst (iterable) | |
| first (iterable) | |
| best (iterable, priorities=[3, 2, 1, -1, 0]) | |
| best_status (iovs, *dummy_args) | |
| iovs_in_time (wanted_start_time, wanted_end_time) | |
| get_root_version () | |
| fix_iovkey (iovkey) | |
| make_functor (expression, location, global_env={}, input_translation=None) | |
| make_floats_pretty (x) | |
| pprint_objects (objects, where=stdout) | |
| describe_colour (colour) | |
| AthConfigFlags | getFlagsForActiveConfig (AthConfigFlags flags, str config_name, logging.Logger log) |
| AthConfigFlags | cloneFlagsToActiveConfig (AthConfigFlags flags, str config_name, logging.Logger log) |
| AthConfigFlags | _cloneFlagsToActiveConfig (AthConfigFlags flags, str config_name) |
Variables | |
| dict | BUILTIN_NAMES = {"True", "False"} |
| WHITE = None | |
| int | GREY = 0 |
Utility module for dataquality specific things
|
protected |
Definition at line 71 of file Trigger/TrigTools/TrigInDetConfig/python/utils.py.
| python.utils.best | ( | iterable, | |
| priorities = [3, 2, 1, -1, 0] ) |
a min() function whose priorities can be chosen
Definition at line 49 of file DataQuality/DQUtils/python/utils.py.
| python.utils.best_status | ( | iovs, | |
| * | dummy_args ) |
Return the worst status. (Different from worst_of).
Definition at line 55 of file DataQuality/DQUtils/python/utils.py.
| AthConfigFlags python.utils.cloneFlagsToActiveConfig | ( | AthConfigFlags | flags, |
| str | config_name, | ||
| logging.Logger | log ) |
InDet/ITk specific clone and replace of ActiveConfig without checking flags vs config_name this function should be used only high up in the menu creation where a context of tracking flags does not exist yet and is created for the first time in generateChainConfigs function or there are multiple contexts for ActiveConfig like in LRT in other cases getFlagsForActiveConfig should be used instead
Definition at line 54 of file Trigger/TrigTools/TrigInDetConfig/python/utils.py.
| python.utils.describe_colour | ( | colour | ) |
Definition at line 137 of file DataQuality/DQUtils/python/utils.py.
| python.utils.first | ( | iterable | ) |
Return the first filled (and not grey) flag
Definition at line 37 of file DataQuality/DQUtils/python/utils.py.
| python.utils.fix_iovkey | ( | iovkey | ) |
If an IoV starts on the 0th lumiblock, then move it forward one.
Definition at line 93 of file DataQuality/DQUtils/python/utils.py.
| python.utils.get_root_version | ( | ) |
Return ROOT version tuple
Definition at line 85 of file DataQuality/DQUtils/python/utils.py.
| AthConfigFlags python.utils.getFlagsForActiveConfig | ( | AthConfigFlags | flags, |
| str | config_name, | ||
| logging.Logger | log ) |
Get the flags for the named config, ensure that they are set to be active
Parameters
----------
flags : AthConfigFlags
The instance of the flags to check
config_name : str
The name of the desired tracking config
log : logging.Logger
Logger to print related messages
Returns
-------
Either the current flags instance if all the ActiveConfig is correct or a new
version with cloned flags
the flags correspond to InDet/ITk format
Definition at line 9 of file Trigger/TrigTools/TrigInDetConfig/python/utils.py.
| python.utils.iovs_in_time | ( | wanted_start_time, | |
| wanted_end_time ) |
Return a function which selects iovs dependent on they occured in the desired time
Definition at line 63 of file DataQuality/DQUtils/python/utils.py.
| python.utils.make_floats_pretty | ( | x | ) |
Definition at line 123 of file DataQuality/DQUtils/python/utils.py.
| python.utils.make_functor | ( | expression, | |
| location, | |||
| global_env = {}, | |||
| input_translation = None ) |
Compile an expression, returning the variables used and a functor which can
be called with the namespace in which the expression is run
`expression` is a single python expression to be evaluated
`location` is a string describing where the snippet of code came from
(in case of exceptions, for debugging)
`global_env` is the global environment in which the expression is executed
`input_translation` is an optional function which is executed on the
functor's arguments before it is executed.
Definition at line 99 of file DataQuality/DQUtils/python/utils.py.
| python.utils.pprint_objects | ( | objects, | |
| where = stdout ) |
Pretty print a list of IoV-results
Definition at line 128 of file DataQuality/DQUtils/python/utils.py.
| python.utils.worst | ( | iterable | ) |
Definition at line 21 of file DataQuality/DQUtils/python/utils.py.
| python.utils.worst_status | ( | iovs, | |
| * | dummy_args ) |
Return the worst status of multiple IoVs. (Different from worst_of).
Definition at line 13 of file DataQuality/DQUtils/python/utils.py.
| dict python.utils.BUILTIN_NAMES = {"True", "False"} |
Definition at line 11 of file DataQuality/DQUtils/python/utils.py.
| int python.utils.GREY = 0 |
Definition at line 35 of file DataQuality/DQUtils/python/utils.py.
| python.utils.WHITE = None |
Definition at line 34 of file DataQuality/DQUtils/python/utils.py.