Update ISF_HitAnalysis.cxx: check StatusCode retrieving MuonEntry
requested to merge vpascuzz/athena:21p0.ISF_FastCaloSimParametrization.ISF_HitAnalysis.fix.MuonEntry_retrieve into 21.0
If the 'MuonEntry' TrackRecordCollection
is not found, the
algorithm crashes; I don't think this is the desired result.
Following the ATH_CHECK
to retrieve the collection, the
StatusCode
is checked but wasn't assigned for us in this call
to SG::retrieve()
.
This commit replaces the ATH_CHECK
in favor of an explicit check
of the return value of the SG::retrieve()
. Now, if the
TrackRecordCollection
is not found, a warning is displayed and
the algorithm continues.
Also updated the copyright.