2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
9 result.addService(CompFactory.StoreGateSvc(
"MetaDataStore"))
10 result.addService(CompFactory.StoreGateSvc(
"InputMetaDataStore"))
12 service = CompFactory.MetaDataSvc(
"MetaDataSvc", MetaDataContainer=
"MetaDataHdr")
13 result.addService(service)
14 result.addService(CompFactory.ProxyProviderSvc(ProviderNames=[
"MetaDataSvc"]))
17 result.addPublicTool(tool)
18 service.MetaDataTools += [tool]
20 for name
in toolNames:
21 if not isinstance(name, str):
22 from AthenaCommon.Logging
import logging
23 log = logging.getLogger(
"MetaDataSvcConfig")
24 log.error(
'Attempted to pass a non-string argument as a metadata tool name')
26 tool = CompFactory.getComp(name)()
27 result.addPublicTool(tool)
28 service.MetaDataTools += [tool]