Track weight being set to 0 in pv_beamline_multi_fitter
In lines 168-170
for (int i = 0; i < number_of_tracks; i++) {
PVTrackInVertex trk = tracks[i];
if (trk.weight > 0.1f) vertex.nTracks++;
}
the code in principle fills the number of tracks contributing to a vertex based on their weight, however this weight is always 1. That is not the case in the earlier loop where the weights are actually used in the chi2 computation, and there is no explicit setting of the weight to 1, so something seems to be going wrong here.