Skip to content

Add algorithm MoveRecVertexTracks

Rosen Matev requested to merge rmatev-MoveRecVertexTracks into master

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.

Merge request reports