Skip to content

Avoid duplicate decisions for muons in muon triggers

Savanna Shaw requested to merge sshaw/athena:muoncbhypo into master

The precision muon trigger hypo loops first on the previous decisions, then gets the event view for each decision, and finally retrieves the muons from the view. In the case where we have an input maker that merges based on feature, we run into the problem of having one decision per unique muon, which means if we have N muons in a view, we have N decisions for a given view, and so end up creating N new decisions per muon. To avoid this, I've introduced a check that the muon corresponds to the muon from the previous decision before creating a new decision. Since this is only a problem for combined muons, we first check if the extrapolated muon spectrometer track for the combined muon matches the extrapolated track from the previous step's SA muon. In case there is no extrapolated track (which is the case for muons reconstructed by the InsideOut reconstruction), we check the dR between the combined muon and the previous step's muon. This makes sure we don't create new decisions multiple times for the same muon (which is reflected in the reference update), and avoids warnings of the form:

WARNING Found 'feature' by multiple paths, but the links are coming from different places in the navigation graph

as discussed in ATR-21548.

Merge request reports