ATLAS Offline Software
Loading...
Searching...
No Matches
python.AthConfigFlags Namespace Reference

Classes

class  CfgFlag
class  FlagAddress
class  AthConfigFlags

Functions

 isGaudiEnv ()
 _asdict (iterator)

Variables

 _msg = logging.getLogger('AthConfigFlags')

Function Documentation

◆ _asdict()

_asdict ( iterator)
protected
Flags to dict converter

Used by both FlagAddress and AthConfigFlags. The input must be an
iterator over flags to be included in the dict.

Definition at line 107 of file AthConfigFlags.py.

107def _asdict(iterator):
108 """Flags to dict converter
109
110 Used by both FlagAddress and AthConfigFlags. The input must be an
111 iterator over flags to be included in the dict.
112 """
113 outdict = {}
114 for key, item in iterator:
115 x = outdict
116 subkeys = key.split('.')
117 for subkey in subkeys[:-1]:
118 x = x.setdefault(subkey,{})
119 x[subkeys[-1]] = item
120 return outdict
121
122

◆ isGaudiEnv()

isGaudiEnv ( )
Return whether or not this is a gaudi-based (athena) environment

Definition at line 16 of file AthConfigFlags.py.

16def isGaudiEnv():
17 """Return whether or not this is a gaudi-based (athena) environment"""
18
19 return moduleExists('Gaudi')
20

Variable Documentation

◆ _msg

python.AthConfigFlags._msg = logging.getLogger('AthConfigFlags')
protected

Definition at line 14 of file AthConfigFlags.py.