ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
AthenaPoolCnvSvc
python
AthenaPool.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
14
15
def
_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
51
52
_loadBasicAthenaPool
()
53
54
55
del _loadBasicAthenaPool
56
python.AthenaPool._loadBasicAthenaPool
_loadBasicAthenaPool()
Definition
AthenaPool.py:15
Generated on
for ATLAS Offline Software by
1.17.0