ATLAS Offline Software
Classes | Functions | Variables
python.AthConfigFlags Namespace Reference

Classes

class  AthConfigFlags
 
class  CfgFlag
 
class  FlagAddress
 

Functions

def isGaudiEnv ()
 
def _asdict (iterator)
 

Variables

 _msg = logging.getLogger('AthConfigFlags')
 

Function Documentation

◆ _asdict()

def python.AthConfigFlags._asdict (   iterator)
private
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 105 of file AthConfigFlags.py.

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

◆ isGaudiEnv()

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

Definition at line 14 of file AthConfigFlags.py.

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

Variable Documentation

◆ _msg

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

Definition at line 12 of file AthConfigFlags.py.

python.AthConfigFlags._asdict
def _asdict(iterator)
Definition: AthConfigFlags.py:105
python.AthConfigFlags.isGaudiEnv
def isGaudiEnv()
Definition: AthConfigFlags.py:14
python.moduleExists.moduleExists
def moduleExists(modName)
Definition: moduleExists.py:13