File indexing completed on 2024-04-06 12:29:11
0001 #ifndef PointingKinematicConstraint_H
0002 #define PointingKinematicConstraint_H
0003
0004 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h"
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 class PointingKinematicConstraint : public KinematicConstraint {
0020 public:
0021 PointingKinematicConstraint(const GlobalPoint& ref) : refPoint(ref) {}
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
0047 int numberOfEquations() const override;
0048
0049 PointingKinematicConstraint* clone() const override { return new PointingKinematicConstraint(*this); }
0050
0051 private:
0052 std::pair<AlgebraicVector, AlgebraicVector> makeValue(const AlgebraicVector& exPoint) const;
0053 std::pair<AlgebraicMatrix, AlgebraicVector> makeDerivative(const AlgebraicVector& exPoint) const;
0054
0055 GlobalPoint refPoint;
0056 };
0057
0058 #endif