Adapt ParticleVertexFitter for helium
Adapt ParticleVertexFitter for tracks with non-unity charge. The needed changes are minimal and only make sure that for q \neq 1 the 4-momentum and it's covariance matrix are calculated from the track state taking the charge into account. The changes are the equivalent of what was already added in !3855 (merged).
A few more details on the change:
There are four structs that can form vertex daughters: VertexTrack
, VertexComposite
, VertexResonance
or VertexOther
. As indicated by the name, VertexTrack is used for all daughters that are particles with a track segment. In this MR, only the addToFourVector
function of VertexTrack
is modified. As explained above, the change makes sure that the absolute charge of the particle is taken into account correctly, when determining the 4-momentum from the track state. The addToFourVector
function is only used during the calculation of the mother particle 4-momentum.
This MR is one way to address Moore#827 (closed).