Skip to content
Snippets Groups Projects
Commit 08b01ff1 authored by John Derek Chapman's avatar John Derek Chapman Committed by Tadej Novak
Browse files

Workaround for CA-based ReSimulation jobs

Workaround for CA-based ReSimulation jobs

This ensures that the conditions run number is available during the
initialization again. The CA-based configuration behaviour is now the
same as the legacy configuration. Further debugging is required to see
if this is correct in the case of variable beam spot simulation.
Should fix ATLASSIM-6113.
parent 9f2d66f7
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,12 @@ def EventSelectorAthenaPoolCfg(flags):
pass
from AthenaKernel.EventIdOverrideConfig import EvtIdModifierSvcCfg
result.merge(EvtIdModifierSvcCfg(flags))
elif flags.Common.ProductionStep in [ProductionStep.Simulation] and len(flags.Input.RunNumber) and flags.Sim.ISF.ReSimulation:
# ReSimulation case
evSel.OverrideRunNumber = True
evSel.RunNumber = flags.Input.RunNumber[0]
if flags.Input.LumiBlockNumber: evSel.FirstLB = flags.Input.LumiBlockNumber[0]
evSel.InitialTimeStamp = flags.IOVDb.RunToTimestampDict.get(flags.Input.RunNumber[0], 1)
result.addService(evSel)
return result
......
......@@ -54,7 +54,7 @@ then
rc1=$?
status=$rc1
mv log.ReSim log.ResSim.CA
mv log.ReSim log.ReSim.CA
fi
echo "art-result: $rc1 resimCA"
......
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