16 """Loads the basic services for AthenaPool"""
18 from AthenaCommon
import CfgMgr
20 import AthenaCommon.AtlasUnixStandardJob
22 from AthenaCommon.Logging
import logging
23 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
25 msg = logging.getLogger(
'loadBasicAthenaPool' )
26 msg.debug(
"Loading basic services for AthenaPool..." )
28 if not hasattr (svcMgr,
'PoolSvc'):
29 svcMgr += CfgMgr.PoolSvc()
30 svcMgr.PoolSvc.MaxFilesOpen = 0
35 if "ManaCore" in os.environ.get(
'CMTEXTRATAGS',
""): svcMgr.PoolSvc.OutputLevel=ERROR
37 svcMgr += CfgMgr.AthenaPoolCnvSvc()
39 if not hasattr (svcMgr,
'EventPersistencySvc'):
40 svcMgr += CfgMgr.EvtPersistencySvc(
"EventPersistencySvc" )
41 svcMgr.EventPersistencySvc.CnvServices += [
"AthenaPoolCnvSvc" ]
42 if not hasattr (svcMgr,
'ProxyProviderSvc'):
43 svcMgr += CfgMgr.ProxyProviderSvc()
46 svcMgr += CfgMgr.MetaDataSvc(
"MetaDataSvc" )
49 svcMgr.ProxyProviderSvc.ProviderNames += [
"MetaDataSvc" ]
50 if not hasattr (svcMgr,
'MetaDataStore'):
51 svcMgr += CfgMgr.StoreGateSvc(
"MetaDataStore" )
53 msg.debug(
"Loading basic services for AthenaPool... [DONE]" )
60 del _loadBasicAthenaPool