10 """Loads the basic services for AthenaRoot"""
12 from AthenaCommon
import CfgMgr
14 import AthenaCommon.AtlasUnixStandardJob
16 from AthenaCommon.Logging
import logging
17 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
19 msg = logging.getLogger(
'loadBasicAthenaRoot' )
20 msg.debug(
"Loading basic services for AthenaRoot..." )
22 svcMgr += CfgMgr.Athena__RootSvc(
"AthenaRootSvc")
23 svcMgr += CfgMgr.Athena__RootCnvSvc(
"AthenaRootCnvSvc")
25 if not hasattr (svcMgr,
'EventPersistencySvc'):
26 svcMgr += CfgMgr.EvtPersistencySvc(
"EventPersistencySvc" )
27 svcMgr.EventPersistencySvc.CnvServices += [
"AthenaRootCnvSvc" ]
28 if not hasattr (svcMgr,
'ProxyProviderSvc'):
29 svcMgr += CfgMgr.ProxyProviderSvc()
33 svcMgr += CfgMgr.AthenaRootStreamerSvc()
35 msg.info(
"could not load AthenaRootStreamerSvc")
38 if not hasattr (svcMgr,
'InputMetaDataStore'):
39 svcMgr += CfgMgr.StoreGateSvc (
"InputMetaDataStore")
42 if not hasattr (svcMgr,
'MetaDataStore'):
43 svcMgr += CfgMgr.StoreGateSvc (
"MetaDataStore")
46 msg.debug(
"Loading basic services for AthenaRoot... [DONE]" )