Skip to content

Added a track summary to the returned track in MooTrackBuilder::refine.

In order to remove unnecessary copying of track summaries, in particular those for const-tracks, it is necessary to avoid the creation of track summaries within track scoring tools. For this to work we need to ensure that the tracks already have a track summary and that the scoring tool uses those already owned by the track. This is one case in which the track summary copy constructor is called for a const-track through the MuonTrackScoringTool. We want to ensure that the tracks going into this tool, already have a track summary. The way in which this has been implemented before is wrong as the track summary was not added to the track. Fixed in this iteration.

Merge request reports