28 #ifndef __MOMENTUMCONSTRAINT_H
29 #define __MOMENTUMCONSTRAINT_H
65 virtual int getVarBasis()
const;
68 void updateCache()
const;
77 mutable bool cachevalid;
94 #endif // __MOMENTUMCONSTRAINT_H
Declares class ParticleConstraint.
MomentumConstraint(double efact_=0, double pxfact_=0, double pyfact_=0, double pzfact_=0, double value_=0)
Definition: MomentumConstraint.cc:26
Abstract base class for constraints of kinematic fits.
Definition: ParticleConstraint.h:89
Implements a constraint of the form efact*sum(E)+pxfact*sum(px)+pyfact*sum(py)+pzfact*sum(pz)=value.
Definition: MomentumConstraint.h:44
virtual double getValue() const
Returns the value of the constraint.
Definition: MomentumConstraint.cc:43
virtual bool secondDerivatives(int i, int j, double *derivatives) const
Second derivatives with respect to the 4-vectors of Fit objects i and j; result false if all derivati...
Definition: MomentumConstraint.cc:103
Abstract base class for particle objects of kinematic fits.
Definition: ParticleFitObject.h:63
virtual void invalidateCache() const
Invalidates any cached values for the next event.
Definition: MomentumConstraint.cc:85
virtual void getDerivatives(int idim, double der[]) const
Get first order derivatives.
Definition: MomentumConstraint.cc:66
std::vector< double > derivatives
The derivatives.
Definition: BaseHardConstraint.h:173
virtual bool firstDerivatives(int i, double *derivatives) const
First derivatives with respect to the 4-vector of Fit objects i; result false if all derivatives are ...
Definition: MomentumConstraint.cc:107