Fixes for SDO creation during MC Overlay jobs
In ATLASSIM-7247 it was reported that on 10th July 2024 SDO creation began to fail in MC Overlay jobs run in the main nightlies - it works in 24.0 though.
As part of the barcode migration, !72174 (merged) updated the TrackRecordCollection
to have a HepMcParticleLink
dependency, so it now matters whether the CopyMcEventCollection
algorithm is run before the CopyTrackRecordCollection
algorithm.
!74146 (merged) added a similar dependency to CaloCalibrationHitContainer
meaning that it now also ow matters whether the CopyMcEventCollection
algorithm is run before the CopyCaloCalibrationHitContainer
algorithm.
After these MRs if either CopyCaloCalibrationHitContainer
or CopyTrackRecordCollection
happen to run before CopyMcEventCollection
in an MC Overlay job, all HepMcParticleLink
objects will point at the Bkg_TruthEvent instance of McEventCollection
rather than at the TruthEvent instance of McEventCollection
(created by CopyMcEventCollection
).
This merge request ensures that CopyMcEventCollection
always runs before CopyCaloCalibrationHitContainer
and CopyTrackRecordCollection
in MT jobs.
This fixes ATLASSIM-7247 based on my local tests.