Fix for ATR-19496 (zero constituents in trimmed jets)
The following error in trimmed jet trigger chains (and presumably affecting offline jet substructure calculations too):
fastjet::Error: EnergyCorrelator called on jet with no constituents.
was caused by the retrieval of non-ghost constituents from jets' linked fastjet::PseudoJet
failing due to changes in the identification of PseudoJets as ghost or constituent, implemented in master. See ATLJETMET-1128 for further details.
This might be a stopgap, but fixes the problem. In the case where we need to distinguish ghost from jet constituent, we simply retrieve the constituents from the xAOD::Jet
, for which this categorisation has already been performed.
This MR contains commits from !23512 (merged), so should be merged after that one.