Update method to count hits for outlier rejection in TrackMasterFitter
TrackMasterFitter selects hits with a large chi2 for outlier rejection. To make sure that there are sufficient hits left to constrain the trajectroy, it counts the hits of each type (VP,UT,FT,Muon), and only removes a hit if the count is above a certain threshold. The hit counting is performed based on the number of nodes of a certain type. In the VP there are two node for every hit. Furthermore, there can be more than one hit in a detector plane, which does not really add constraints. To improve this, the procedure now counts 'hit layers' rather than individual hits. Layers are counted using HitPattern.
This needs
it also needs a rebase after !2834 (merged) is merged.
Edited by Wouter Hulsbergen