File indexing completed on 2024-04-06 12:29:10
0001 #ifndef MomentumKinematicConstraint_H
0002 #define MomentumKinematicConstraint_H
0003
0004 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h"
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 class MomentumKinematicConstraint : public KinematicConstraint {
0016 public:
0017
0018
0019
0020
0021 MomentumKinematicConstraint(const AlgebraicVector& momentum, const AlgebraicVector& dev);
0022
0023
0024
0025
0026
0027 std::pair<AlgebraicVector, AlgebraicVector> value(const AlgebraicVector& exPoint) const override;
0028
0029 std::pair<AlgebraicMatrix, AlgebraicVector> derivative(const AlgebraicVector& exPoint) const override;
0030
0031
0032
0033
0034
0035 std::pair<AlgebraicMatrix, AlgebraicVector> derivative(
0036 const std::vector<RefCountedKinematicParticle>& par) const override;
0037
0038 std::pair<AlgebraicVector, AlgebraicVector> value(const std::vector<RefCountedKinematicParticle>& par) const override;
0039
0040 AlgebraicVector deviations(int nStates) const override;
0041
0042
0043
0044
0045
0046 int numberOfEquations() const override;
0047
0048 MomentumKinematicConstraint* clone() const override { return new MomentumKinematicConstraint(*this); }
0049
0050 private:
0051 AlgebraicVector mm;
0052 AlgebraicVector dd;
0053 };
0054
0055 #endif