5 This module would scan all known Gaudi configurable modules for 6 'Configurable' classes and fill __all__ such that it can be imported 7 by any module requiring it. 14 packages = [
'GaudiCoreSvc',
'GaudiCommonSvc',
'GaudiSvc',
'GaudiAlg',
15 'GaudiAud',
'GaudiPoolDb',
'RootHistCnv',
'GaudiUtils',
20 for package
in packages:
22 mod = __import__(
'%s.%sConf' % (package, package),
23 globals(), locals(), [
'%sConf' % package])
25 cls = getattr(mod, nam)
26 if type(cls)
is ConfigurableMeta
and issubclass(cls, Configurable):
35 'EventDataSvc':
'EvtDataSvc',
36 'DetectorDataSvc':
'DetDataSvc',
37 'HistogramDataSvc':
'HistogramSvc',
38 'HbookHistSvc':
'HbookCnv__PersSvc',
39 'RootHistSvc':
'RootHistCnv__PersSvc',
40 'EventPersistencySvc':
'EvtPersistencySvc',
41 'DetectorPersistencySvc':
'DetPersistencySvc',
42 'HistogramPersistencySvc':
'HistogramPersistencySvc',
43 'FileRecordPersistencySvc':
'PersistencySvc',
45 'FileCatalog':
'Gaudi__MultiFileCatalog',
46 'IODataManager':
'Gaudi__IODataManager',
48 'RootCnvSvc':
'Gaudi__RootCnvSvc',
49 'RootEvtSelector':
'Gaudi__RootEvtSelector',
55 aliases = dict([(new, _gbl[old])
56 for new, old
in aliases.items()
60 aliases[new].DefaultedName = new
63 __all__.extend(aliases)