Skip to content
Snippets Groups Projects
Commit 3d496b87 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

OutputStreamAthenaPool: MT-safe thinning for TrigNavigation.

Add registerTrigNavThinningSvc(), to allow setting up TrigNavigation thinning
from TriggeJobOpts (before streams are created).
parent ad8dbea4
No related branches found
No related tags found
No related merge requests found
......@@ -13,9 +13,17 @@ from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaServices.AthenaServicesConf import AthenaOutputStream
from AthenaServices.AthenaServicesConf import AthenaOutputStreamTool
_trigNavThinningSvcs = {}
def registerTrigNavThinningSvc (streamName, svc):
_trigNavThinningSvcs[streamName] = svc
return
def createOutputStream( streamName, fileName = "", asAlg = False, noTag = False,
eventInfoKey = "EventInfo", decisionFilter="",
trigNavThinningSvc = None ):
if trigNavThinningSvc is None:
trigNavThinningSvc = _trigNavThinningSvcs.get (streamName, None)
# define athena output stream
writingTool = AthenaOutputStreamTool( streamName + "Tool" )
outputStream = AthenaOutputStream(
......
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