Add algorithm MoveRecVertexTracks
MoveRecVertexTracks copies the tracks participating in RecVertices to a new container and updates the vertex' track pointers.
The idea is to persist only tracks participating in PVs. In principle, functionality to copy the relevant tracks into a new container already exists. However, the RecVertex packing stores a link to the track container (vertex.tracks()[i]->parent()
), which is later needed for unpacking. This necessitates updating the tracks for each RecVertex (to point to the new container).
This algorithm solves the issues and is more efficient than the existing track selectors.