17#ifndef __SOFTGAUSSMASSCONSTRAINT_H
18#define __SOFTGAUSSMASSCONSTRAINT_H
20#include "analysis/OrcaKinFit/SoftGaussParticleConstraint.h"
27 namespace OrcaKinFit {
56 virtual double getValue()
const override;
65 virtual double getMass(
int flag = 1
69 virtual void setMass(
double mass_
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.
SoftGaussMassConstraint(double sigma_, double mass_=0.)
Constructor.
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 ...
std::vector< double > derivatives
The derivatives.
SoftGaussParticleConstraint(double sigma_)
Creates an empty SoftGaussParticleConstraint object.
Abstract base class for different kinds of events.