![]() |
ATLAS Offline Software
|
Namespaces | |
unixtools | |
Classes | |
class | Campaign |
Functions | |
def | loadDefaultComps (allcomps) |
def | exposeHandles (allcomps) |
def | setupLoggingLevels (flags, ca) |
def | getRunFromName (name, default='', asInt=False) |
def | fileListSnippet (files, dsName, taskName, jobDir=None) |
def | blankIfNone (s) |
def | getUserName (default='UNKNOWN') |
def | getHostName () |
def | getMCCampaign (files) |
def | getEDMVersionFromBS (filename) |
def | edmDictToList (edmDict) |
def | edmListToDict (edmList) |
def | getEDMListFromWriteHandles (configurables) |
Variables | |
string | __version__ = '1.0.0' |
string | __author__ = 'Wim Lavrijsen (WLavrijsen@lbl.gov)' |
list | __all__ = [ 'unixtools' ] |
campaign_runs | |
log | |
maxsize | |
def python.Utils.blankIfNone | ( | s | ) |
Definition at line 41 of file InnerDetector/InDetExample/InDetBeamSpotExample/python/Utils.py.
def python.Utils.edmDictToList | ( | edmDict | ) |
Convert EDM dictionary in the format: {'type1': ['key1','key2'], 'type2': ['key3']} to a flat list in the format: ['type1#key1', 'type1#key2', 'type2#key3']
Definition at line 68 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.
def python.Utils.edmListToDict | ( | edmList | ) |
Convert EDM list in the format: ['type1#key1', 'type1#key2', 'type2#key3'] to a dictionary in the format: {'type1': ['key1','key2'], 'type2': ['key3']}
Definition at line 78 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.
def python.Utils.exposeHandles | ( | allcomps | ) |
Sets all handle keys explicitly
Definition at line 36 of file Control/AthenaConfiguration/python/Utils.py.
def python.Utils.fileListSnippet | ( | files, | |
dsName, | |||
taskName, | |||
jobDir = None |
|||
) |
Definition at line 30 of file InnerDetector/InDetExample/InDetBeamSpotExample/python/Utils.py.
def python.Utils.getEDMListFromWriteHandles | ( | configurables | ) |
Build OutputStream ItemList from all WriteHandles in a list of components (configurables), for example a list of AlgTools. The output is in flat list format: ['type1#key1', 'type1#key2', 'type2#key3']
Definition at line 92 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.
def python.Utils.getEDMVersionFromBS | ( | filename | ) |
Determine Trigger EDM version based on the input ByteStream file. Run-3 EDM is indicated by HLT ROD version > 1.0. For Run 1 and 2 the HLT ROD version was 0.0 and the run number is used to disambiguate between them.
Definition at line 11 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.
def python.Utils.getHostName | ( | ) |
Definition at line 60 of file InnerDetector/InDetExample/InDetBeamSpotExample/python/Utils.py.
def python.Utils.getMCCampaign | ( | files | ) |
Definition at line 38 of file Tools/Campaigns/python/Utils.py.
def python.Utils.getRunFromName | ( | name, | |
default = '' , |
|||
asInt = False |
|||
) |
Extract the run number from a file name whose first part is a standard dataset name. If the run number cannot be determined, returns the default value, which, by default is an empty string.
Definition at line 13 of file InnerDetector/InDetExample/InDetBeamSpotExample/python/Utils.py.
def python.Utils.getUserName | ( | default = 'UNKNOWN' | ) |
Get login name in a platform-independent manner.
Definition at line 48 of file InnerDetector/InDetExample/InDetBeamSpotExample/python/Utils.py.
def python.Utils.loadDefaultComps | ( | allcomps | ) |
Attempts to load all default components (those that are not actually configured)
Definition at line 10 of file Control/AthenaConfiguration/python/Utils.py.
def python.Utils.setupLoggingLevels | ( | flags, | |
ca | |||
) |
Read the Exec.*MessageComponents flags and modify OutputLevel of component(s). The specification of components uses the Python `fnmatch` library and resembles UNIX paths. An event algorithm MyAlgo/MyInstance has the following path: MasterSeq/AthAllAlgSeq/AthAlgSeq/MyAlgo/MyInstance A private tool MyTool of name ToolInstance used by that algorithm: MasterSeq/AthAllAlgSeq/AthAlgSeq/MyAlgo/MyInstance/MyTool/ToolInstance A public tool: ToolSvc/MyTool/ToolInstance The path specification can take the following forms: '*/ToolInstance' : all tools that have matching instance name '*/MyTool/*' : all instances of type MyTool '*/MyAlgo/MyInstance' : specific algorithm instance '*/MyAlgo/*' : all instances of the specific algorithm class '*/AthAlgSeq/*' : all algorithms of the given sequence 'ToolSvc/My*/*' : all public tools with instance name starting with "My" The modifications to the OutputLevel are applied in the order ERROR to VERBOSE, i.e. it is possible to set higher verbosities with more specific selections. Each setting can be either a string or a list of strings. If the component path contains no '/' it is assumed to be a plain component name. In this case, the OutputLevel is set using the property MessageSvc.setDebug or equivalent. This works also for converters, which do not have any properties.
Definition at line 50 of file Control/AthenaConfiguration/python/Utils.py.
|
private |
Definition at line 9 of file Control/AthenaCommon/python/Utils/__init__.py.
|
private |
Definition at line 7 of file Control/AthenaCommon/python/Utils/__init__.py.
|
private |
Definition at line 6 of file Control/AthenaCommon/python/Utils/__init__.py.
python.Utils.campaign_runs |
Definition at line 30 of file Tools/Campaigns/python/Utils.py.
python.Utils.log |
Definition at line 8 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.
python.Utils.maxsize |
Definition at line 10 of file Trigger/TriggerCommon/TrigEDMConfig/python/Utils.py.