ATLAS Offline Software
Loading...
Searching...
No Matches
python.AthenaPool Namespace Reference

Functions

 _loadBasicAthenaPool ()

Function Documentation

◆ _loadBasicAthenaPool()

_loadBasicAthenaPool ( )
protected
Loads the basic services for AthenaPool

Definition at line 15 of file AthenaPool.py.

15def _loadBasicAthenaPool():
16 """Loads the basic services for AthenaPool"""
17
18 from AthenaCommon import CfgMgr
19
20 import AthenaCommon.AtlasUnixStandardJob # noqa: F401
21
22 from AthenaCommon.Logging import logging
23 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
24
25 msg = logging.getLogger( 'loadBasicAthenaPool' )
26 msg.debug( "Loading basic services for AthenaPool..." )
27
28 if not hasattr (svcMgr, 'PoolSvc'):
29 svcMgr += CfgMgr.PoolSvc()
30 svcMgr.PoolSvc.MaxFilesOpen = 0
31
32 svcMgr += CfgMgr.AthenaPoolCnvSvc()
33
34 if not hasattr (svcMgr, 'EventPersistencySvc'):
35 svcMgr += CfgMgr.EvtPersistencySvc( "EventPersistencySvc" )
36 svcMgr.EventPersistencySvc.CnvServices += [ "AthenaPoolCnvSvc" ]
37 if not hasattr (svcMgr, 'ProxyProviderSvc'):
38 svcMgr += CfgMgr.ProxyProviderSvc()
39
40 # Add in MetaDataSvc
41 svcMgr += CfgMgr.MetaDataSvc( "MetaDataSvc" )
42
43 # Make MetaDataSvc an AddressProvider
44 svcMgr.ProxyProviderSvc.ProviderNames += [ "MetaDataSvc" ]
45 if not hasattr (svcMgr, 'MetaDataStore'):
46 svcMgr += CfgMgr.StoreGateSvc( "MetaDataStore" )
47
48 msg.debug( "Loading basic services for AthenaPool... [DONE]" )
49 return
50