17#ifndef __MASSCONSTRAINT_H
18#define __MASSCONSTRAINT_H
20#include "analysis/OrcaKinFit/ParticleConstraint.h"
28 namespace OrcaKinFit {
30 class ParticleFitObject;
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 };
std::vector< double > derivatives
The derivatives.
Implements constraint 0 = mass1 - mass2 - m.
virtual ~MassConstraint()
Virtual destructor.
virtual void getDerivatives(int idim, double der[]) const override
Get first order derivatives.
double mass
The mass difference between object sets 1 and 2.
virtual double getValue() const override
Returns the value of the constraint.
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...
virtual void setMass(double mass_)
Sets the target mass of the constraint.
virtual double getMass(int flag=1)
Get the actual invariant mass of the fit objects with a given flag.
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 constraints of kinematic fits.
Abstract base class for different kinds of events.