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

Classes

class  AthConfigFlags
class  CfgFlag
class  FlagAddress

Functions

 isGaudiEnv ()
 _asdict (iterator)

Variables

 _msg = logging.getLogger('AthConfigFlags')

Function Documentation

◆ _asdict()

python.AthConfigFlags._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 """
114 outdict = {}
115 for key, item in iterator:
116 x = outdict
117 subkeys = key.split('.')
118 for subkey in subkeys[:-1]:
119 x = x.setdefault(subkey,{})
120 x[subkeys[-1]] = item
121 return outdict
122

◆ isGaudiEnv()

python.AthConfigFlags.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.