Skip to content
Snippets Groups Projects
Verified Commit bada41ad authored by Tadej Novak's avatar Tadej Novak
Browse files

OutputStreamCfg: add ability to input MetadataItemList

parent efaff636
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,8 @@ from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator, Confi ...@@ -4,8 +4,8 @@ from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator, Confi
from AthenaConfiguration.ComponentFactory import CompFactory from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaCommon.Logging import logging from AthenaCommon.Logging import logging
def OutputStreamCfg(configFlags, streamName, ItemList=[], disableEventTag=False , def OutputStreamCfg(configFlags, streamName, ItemList=[], MetadataItemList=[],
trigNavThinningSvc = None): disableEventTag=False, trigNavThinningSvc=None):
MakeEventStreamInfo=CompFactory.MakeEventStreamInfo MakeEventStreamInfo=CompFactory.MakeEventStreamInfo
AthenaOutputStream=CompFactory.AthenaOutputStream AthenaOutputStream=CompFactory.AthenaOutputStream
AthenaOutputStreamTool=CompFactory.AthenaOutputStreamTool AthenaOutputStreamTool=CompFactory.AthenaOutputStreamTool
...@@ -42,13 +42,14 @@ def OutputStreamCfg(configFlags, streamName, ItemList=[], disableEventTag=False ...@@ -42,13 +42,14 @@ def OutputStreamCfg(configFlags, streamName, ItemList=[], disableEventTag=False
outputAlgName, outputAlgName,
WritingTool = writingTool, WritingTool = writingTool,
ItemList = [ "xAOD::EventInfo#EventInfo", "xAOD::EventAuxInfo#EventInfoAux." ]+ItemList, ItemList = [ "xAOD::EventInfo#EventInfo", "xAOD::EventAuxInfo#EventInfoAux." ]+ItemList,
MetadataItemList = MetadataItemList,
OutputFile = fileName, OutputFile = fileName,
HelperTools = [ streamInfoTool, tct ], HelperTools = [ streamInfoTool, tct ],
) )
outputStream.ExtraOutputs += [("DataHeader", "StoreGateSvc+" + streamName)] outputStream.ExtraOutputs += [("DataHeader", "StoreGateSvc+" + streamName)]
result.addService(StoreGateSvc("MetaDataStore")) result.addService(StoreGateSvc("MetaDataStore"))
outputStream.MetadataStore = result.getService("MetaDataStore") outputStream.MetadataStore = result.getService("MetaDataStore")
outputStream.MetadataItemList = [ outputStream.MetadataItemList += [
"EventStreamInfo#Stream" + streamName, "EventStreamInfo#Stream" + streamName,
"IOVMetaDataContainer#*", "IOVMetaDataContainer#*",
] ]
......
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