3 from __future__
import absolute_import
14 log = logging.getLogger(__name__)
16 _InstallRootLoggingHandler()
18 allConfigurables = Configurable.allConfigurables
23 log = logging.getLogger(
'PropertyProxy')
24 log.debug(
"Read module info for %d configurables from %d genConfDb files",
26 if len(cfgDb.duplicates()) > 0:
27 log.warning(
"Found %d duplicates among the %d genConfDb files :",
28 len(cfgDb.duplicates()), nFiles)
29 log.warning(
"--------------------------------------------------")
30 log.warning(
" -%s: %s - %s",
"<component name>",
"<module>",
32 log.warning(
"--------------------------------------------------")
33 dups = cfgDb.duplicates()
34 for cfgName
in dups.keys():
35 log.warning(
" -%s: %s - %s", cfgName, cfgDb[cfgName][
'module'],
36 str([d[
'module']
for d
in dups[cfgName]]))
39 log.warning(
"Fix your cmt/requirements file !!")
42 log.debug(
"No duplicates have been found: that's good !")
55 local[conf] = confDbGetConfigurable(conf)
59 """Return a dictionary representing the configuration. 60 The dictionary contains one entry per configurable which is a dictionary 61 with one entry per property. 62 The optional argument "all" is used to decide if to include only values 63 different from the default or all of them. 65 from GaudiKernel.Proxy.Configurable
import getNeededConfigurables
67 catalog = allConfigurables
72 if n
not in conf_dict:
74 for p, v
in catalog[n].getDefaultProperties().
items():
78 if n
not in conf_dict:
80 for p, v
in catalog[n].getValuedProperties().
items():
83 keys = conf_dict.keys()
87 ret_dict[n] = conf_dict[n]
92 """Helper function to get a configurable with the given name regardless 94 If defaultType can be a class derived from configurable or a string. If not 95 specified, the tool name is used as type.""" 96 if name
in allConfigurables:
97 return allConfigurables[name]
100 if defaultType
is None:
103 if type(defaultType)
is str:
105 if defaultType
in globals():
107 defaultType = globals()[defaultType]
111 defaultType = getattr(Configurables, defaultType)
112 return defaultType(name)
116 """Configurable to enable ROOT-based persistency. 118 Note: it requires Gaudi::RootCnvSvc (package RootCnv). 123 """Apply low-level configuration""" 124 from Configurables
import (
131 from Configurables
import (
138 EventPersistencySvc().CnvServices += cnvSvcs
def __apply_configuration__(self)
def getConfigurable(name, defaultType=None)
def importConfiguration(conf, local=locals())
def configurationDict(all=False)
PersistencySvc class implementation definition.
A FileRecordDataSvc is the base class for event services.
The Application Manager class.