Skip to content
Snippets Groups Projects
Commit 45c12719 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'py3.OutputStreamAthenaPool-20190418' into 'master'

OutputStreamAthenaPool: Initial python3 port.

See merge request atlas/athena!22785
parents d314463d 05ac4b28
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@
## $Id: OutputStreamAthenaPool.py,v 1.10 2009-04-27 18:19:34 gemmeren Exp $
###############################################################
from __future__ import print_function
from AthenaCommon.AppMgr import theApp
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaServices.AthenaServicesConf import AthenaOutputStream
......@@ -37,9 +39,8 @@ def createOutputStream( streamName, fileName = "", asAlg = False, noTag = False,
# Tell tool to pick it up
outputStream.WritingTool.AttributeListKey=key
# build eventinfo attribute list
from OutputStreamAthenaPoolConf import EventInfoAttListTool
from .OutputStreamAthenaPoolConf import EventInfoAttListTool, EventInfoTagBuilder
svcMgr.ToolSvc += EventInfoAttListTool()
from OutputStreamAthenaPoolConf import EventInfoTagBuilder
EventInfoTagBuilder = EventInfoTagBuilder(AttributeList=key, EventInfoKey=eventInfoKey)
topSequence += EventInfoTagBuilder
......@@ -51,7 +52,7 @@ def createOutputStream( streamName, fileName = "", asAlg = False, noTag = False,
if fileName != "":
outputStream.OutputFile = fileName
from OutputStreamAthenaPoolConf import MakeEventStreamInfo
from .OutputStreamAthenaPoolConf import MakeEventStreamInfo
streamInfoTool = MakeEventStreamInfo( streamName + "_MakeEventStreamInfo" )
streamInfoTool.Key = streamName
outputStream.HelperTools = [ streamInfoTool ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment