9#ifndef __RECOILMASSCONSTRAINT_H
10#define __RECOILMASSCONSTRAINT_H
12#include "analysis/OrcaKinFit/ParticleConstraint.h"
19 namespace OrcaKinFit {
21 class ParticleFitObject;
27 RecoilMassConstraint(
double recoilmass = 0.,
double beampx = 0.,
double beampy = 0.,
double beampz = 0,
double beampe = 0.);
33 virtual double getValue()
const override;
47 virtual int getVarBasis()
const override;
68 enum { VAR_BASIS = 0 };
std::vector< double > derivatives
The derivatives.
Abstract base class for constraints of kinematic fits.
virtual void setRecoilMass(double recoilmass)
Sets the target recoil mass of the constraint.
virtual void getDerivatives(int idim, double der[]) const override
Get first order derivatives.
virtual double getRecoilMass()
Get the actual recoil mass of the fit objects.
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 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 ...
virtual ~RecoilMassConstraint()
Virtual destructor.
Abstract base class for different kinds of events.