14 from __future__
import print_function
17 """Loads the basic services for EventInfoMgt"""
21 class EventInfoMgtInit:
24 self.release = self.getRelease()
34 for line
in r.readlines():
36 line = string.rstrip (line)
43 def getRelease (self):
46 project = os.environ [
'AtlasProject']
47 version = os.environ [
'AtlasVersion']
49 return project +
'-' + version
57 return "Unknown-Unknown"
61 import AthenaCommon.AtlasUnixStandardJob
63 from AthenaCommon.Logging
import logging
64 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
66 msg = logging.getLogger(
'loadBasicEventInfoMgt' )
67 msg.debug(
"Loading basic services for EventInfoMgt..." )
70 from EventInfoMgt.EventInfoMgtConf
import TagInfoMgr
75 evtMgt = EventInfoMgtInit()
76 release = evtMgt.release
77 print (
"EventInfoMgtInit: Got release version ",release)
78 svcMgr.TagInfoMgr.ExtraTagValuePairs = {
"AtlasRelease" : release }
81 from AthenaCommon.AppMgr
import theApp
82 theApp.CreateSvc += [ tagInfoMgr.name() ]
85 from IOVDbSvc
import IOVDb
87 msg.debug(
"Loading basic services for EventInfoMgt... [DONE]" )
94 del _loadBasicEventInfoMgt