Verified Commit f1130e6a authored by Tadej Novak's avatar Tadej Novak
Browse files

Write out event tag for MT premixing

parent bbe698de
Pipeline #1174357 passed with stage
in 0 seconds
......@@ -115,14 +115,15 @@ writeDigitizationMetadata()
# Pool Output (Change this to use a different file)
#--------------------------------------------------------------
if DetFlags.writeRDOPool.any_on():
premixing = digitizationFlags.PileUpPremixing and 'OverlayMT' in digitizationFlags.experimentalDigi()
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
if digitizationFlags.PileUpPremixing and 'OverlayMT' in digitizationFlags.experimentalDigi():
if premixing:
from OverlayCommonAlgs.OverlayFlags import overlayFlags
eventInfoKey = overlayFlags.bkgPrefix() + "EventInfo"
else:
eventInfoKey = "EventInfo"
streamRDO = AthenaPoolOutputStream("StreamRDO", athenaCommonFlags.PoolRDOOutput.get_Value(), asAlg=True, noTag=True, eventInfoKey=eventInfoKey)
streamRDO = AthenaPoolOutputStream("StreamRDO", athenaCommonFlags.PoolRDOOutput.get_Value(), asAlg=True, noTag=not premixing, eventInfoKey=eventInfoKey)
from Digitization.DigiOutput import getStreamRDO_ItemList
streamRDO.ItemList = getStreamRDO_ItemList(logDigitization_flags)
streamRDO.AcceptAlgs += [ digitizationFlags.digiSteeringConf.get_Value() ]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment