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 108 of file AthConfigFlags.py.

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

◆ isGaudiEnv()

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

Definition at line 17 of file AthConfigFlags.py.

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

Variable Documentation

◆ _msg

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

Definition at line 15 of file AthConfigFlags.py.