A kinematic fitting package, KinFit, based on the Lagrange multiplier technique has been implemented for generic hadron physics experiments. It is particularly suitable for experiments where the interaction point is unknown, such as experiments with extended target volumes. The KinFit package includes vertex finding tools and fitting with kinematic constraints, such as mass hypothesis and four-momentum conservation, as well as combinations of these constraints. The new package is distributed as an open source software via GitHub. This paper presents a comprehensive description of the KinFit package and its features, as well as a benchmark study using Monte Carlo simulations of the pprightarrow pK^+Lambda rightarrow pK^+ppi ^- reaction. The results show that KinFit improves the parameter resolution and provides an excellent basis for event selection.
Read full abstract