From 2f7b4e024fb3192ca769b50bcd58d726d0819674 Mon Sep 17 00:00:00 2001 From: John Kenneth Anders <john.kenneth.anders@cern.ch> Date: Tue, 5 Mar 2019 16:44:40 +0000 Subject: [PATCH] Merge branch '21.0-HijingEventParsStreamFix' into '21.0' 21.0 SimulationJobOptions: Fix in postInclude.HijingPars.py to get output streams from correct locations See merge request atlas/athena!21587 (cherry picked from commit dce5a7f322edfa943b8a7f000298af2716b4dc95) 6ed93445 Fix in postInclude.HijingPars.py to get output streams from correct locations: --- .../share/heavyIons/postInclude.HijingPars.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Simulation/SimulationJobOptions/share/heavyIons/postInclude.HijingPars.py b/Simulation/SimulationJobOptions/share/heavyIons/postInclude.HijingPars.py index 1bbfad8d37ed..63306936398c 100644 --- a/Simulation/SimulationJobOptions/share/heavyIons/postInclude.HijingPars.py +++ b/Simulation/SimulationJobOptions/share/heavyIons/postInclude.HijingPars.py @@ -39,7 +39,10 @@ else: streamAlgs = ['StreamHITS','StreamRDO','StreamESD','StreamAOD'] streamSeq = AlgSequence("Streams") for stream in streamAlgs: - outStream = getattr(streamSeq, stream, None) - if outStream is not None: - outStream.ItemList += [ "HijingEventParams#Hijing_event_params" ] - + sSoutStream = getattr(streamSeq, stream, None) + tSoutStream = getattr(topSequence, stream, None) + if tSoutStream is not None: + tSoutStream.ItemList += [ "HijingEventParams#Hijing_event_params" ] + else: + if sSoutStream is not None: + sSoutStream.ItemList += [ "HijingEventParams#Hijing_event_params" ] -- GitLab