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() ...@@ -115,14 +115,15 @@ writeDigitizationMetadata()
# Pool Output (Change this to use a different file) # Pool Output (Change this to use a different file)
#-------------------------------------------------------------- #--------------------------------------------------------------
if DetFlags.writeRDOPool.any_on(): if DetFlags.writeRDOPool.any_on():
premixing = digitizationFlags.PileUpPremixing and 'OverlayMT' in digitizationFlags.experimentalDigi()
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
if digitizationFlags.PileUpPremixing and 'OverlayMT' in digitizationFlags.experimentalDigi(): if premixing:
from OverlayCommonAlgs.OverlayFlags import overlayFlags from OverlayCommonAlgs.OverlayFlags import overlayFlags
eventInfoKey = overlayFlags.bkgPrefix() + "EventInfo" eventInfoKey = overlayFlags.bkgPrefix() + "EventInfo"
else: else:
eventInfoKey = "EventInfo" 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 from Digitization.DigiOutput import getStreamRDO_ItemList
streamRDO.ItemList = getStreamRDO_ItemList(logDigitization_flags) streamRDO.ItemList = getStreamRDO_ItemList(logDigitization_flags)
streamRDO.AcceptAlgs += [ digitizationFlags.digiSteeringConf.get_Value() ] 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