IMuonSegmentMergerTool is a living zombie as the interface is effectively included only in the MuonTrackSteering but always switched off. The implementation suffers from a lot of potential memory leaks. So the best is just to remove this tool.
The advantage is that the
IMuonSegmentTriggerHitAssociator is also fully unused and we can remove this functionality from the
DCMathSegmentMaker as well and remove the interface from the code base.
The changes in the
DCMathSegmentMaker remove a couple of unnecessary copies and ranged for loops.