 |
Belle II Software
release-05-02-19
|
17 #ifndef __MASSCONSTRAINT_H
18 #define __MASSCONSTRAINT_H
20 #include "analysis/OrcaKinFit/ParticleConstraint.h"
28 namespace OrcaKinFit {
30 class ParticleFitObject;
46 class MassConstraint :
public ParticleConstraint {
56 virtual double getValue()
const override;
65 virtual double getMass(
int flag = 1
69 virtual void setMass(
double mass_
72 virtual int getVarBasis()
const override;
89 enum { VAR_BASIS = 0 };
98 #endif // __MASSCONSTRAINT_H
virtual ~MassConstraint()
Virtual destructor.
virtual double getMass(int flag=1)
Get the actual invariant mass of the fit objects with a given flag.
std::vector< double > derivatives
The derivatives.
virtual double getValue() const override
Returns the value of the constraint.
virtual void setMass(double mass_)
Sets the target mass of the constraint.
virtual bool firstDerivatives(int i, double *derivatives) const override
First derivatives with respect to the 4-vector of Fit objects i; result false if all derivatives are ...
Abstract base class for different kinds of events.
MassConstraint(double mass_=0.)
Constructor.
double mass
The mass difference between object sets 1 and 2.
virtual void getDerivatives(int idim, double der[]) const override
Get first order derivatives.
virtual bool secondDerivatives(int i, int j, double *derivatives) const override
Second derivatives with respect to the 4-vectors of Fit objects i and j; result false if all derivati...