File indexing completed on 2024-04-06 12:29:11
0001 #ifndef TwoTrackMassKinematicConstraint_H
0002 #define TwoTrackMassKinematicConstraint_H
0003
0004 #include "RecoVertex/KinematicFitPrimitives/interface/MultiTrackKinematicConstraint.h"
0005 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicState.h"
0006 #include "DataFormats/CLHEP/interface/AlgebraicObjects.h"
0007 #include "RecoVertex/KinematicFitPrimitives/interface/ParticleMass.h"
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 class TwoTrackMassKinematicConstraint : public MultiTrackKinematicConstraint {
0022 public:
0023 TwoTrackMassKinematicConstraint(ParticleMass& ms) : mass(ms) {}
0024
0025
0026
0027
0028
0029
0030 AlgebraicVector value(const std::vector<KinematicState>& states, const GlobalPoint& point) const override;
0031
0032
0033
0034
0035
0036
0037 AlgebraicMatrix parametersDerivative(const std::vector<KinematicState>& states,
0038 const GlobalPoint& point) const override;
0039
0040
0041
0042
0043
0044
0045 AlgebraicMatrix positionDerivative(const std::vector<KinematicState>& states,
0046 const GlobalPoint& point) const override;
0047
0048
0049
0050
0051 int numberOfEquations() const override;
0052
0053 TwoTrackMassKinematicConstraint* clone() const override { return new TwoTrackMassKinematicConstraint(*this); }
0054
0055 private:
0056 ParticleMass mass;
0057 };
0058 #endif