9def _loadBasicAthenaRoot():
10 """Loads the basic services for AthenaRoot"""
11
12 from AthenaCommon import CfgMgr
13
14 import AthenaCommon.AtlasUnixStandardJob
15
16 from AthenaCommon.Logging import logging
17 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
18
19 msg = logging.getLogger( 'loadBasicAthenaRoot' )
20 msg.debug( "Loading basic services for AthenaRoot..." )
21
22 svcMgr += CfgMgr.Athena__RootSvc("AthenaRootSvc")
23 svcMgr += CfgMgr.Athena__RootCnvSvc("AthenaRootCnvSvc")
24
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()
30
31 if not hasattr (svcMgr, 'InputMetaDataStore'):
32 svcMgr += CfgMgr.StoreGateSvc ("InputMetaDataStore")
33 pass
34
35 if not hasattr (svcMgr, 'MetaDataStore'):
36 svcMgr += CfgMgr.StoreGateSvc ("MetaDataStore")
37 pass
38
39 msg.debug( "Loading basic services for AthenaRoot... [DONE]" )
40 return
41