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 32 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 27 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 6 of file Control/AthenaConfiguration/python/Utils.py.
def python.Utils.setupLoggingLevels | ( | flags, | |
ca | |||
) |
Read the Exec.*MessageComponents flags and modify output level of components The specification of components uses python fnmatch library and resembles UNIX paths. For instance an event algorithm MyAlgo/MyInstance would have following path: MasterSeq/AthAllAlgSeq/AthAlgSeq/MyAlgo/MyInstance A private tool MyTool of name ToolInstance used by this algo: MasterSeq/AthAllAlgSeq/AthAlgSeq/MyAlgo/MyInstance/MyTool/ToolInstance A public tool would have path: ToolSvc/MyTool/ToolInstance and so on. The path specification can look like thi: */ToolInstance - all tools that have matching instance name */MyTool/* - all instances of the tool */MyAlgo/MyInstance - specific algorithm */MyAlg0/* - all instance of specific algorithm */AthAlgSeq/* - all algorithms (with deeper sequences structure e.g. in HLT sub-components of sequences can controlled this way) ToolSvc/My*/* - all public tools that instance name starts with My The modifications to the OutputLevel are applied form ERROR to VERBOSE. This is to support pattern when large group of components is set to less verbose logging mode and with more specific selection more verbosity is enabled. E.g. all algorithms can be set to WARNING, the all having calo in the name to INFO, and CaloCellMaker to DEBUG. 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 output-level is set using the property MessageSvc.setDebug (or equivalent). This works also for converters that do not inherit PropertyHolder.
Definition at line 46 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 19 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.