17#ifndef __SOFTGAUSSMASSCONSTRAINT_H
18#define __SOFTGAUSSMASSCONSTRAINT_H
20#include "analysis/OrcaKinFit/SoftGaussParticleConstraint.h"
27 namespace OrcaKinFit {
29 class ParticleFitObject;
56 virtual double getValue()
const override;
65 virtual double getMass(
int flag = 1
69 virtual void setMass(
double mass_
Implements constraint 0 = mass1 - mass2 - m.
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 ~SoftGaussMassConstraint()
Virtual destructor.
virtual double getValue() const override
Returns the value of the constraint function.
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.
std::vector< double > derivatives
The derivatives.
Abstract base class for different kinds of events.