 |
Belle II Software
release-05-01-25
|
14 #ifndef __RECOILMASSCONSTRAINT_H
15 #define __RECOILMASSCONSTRAINT_H
17 #include "analysis/OrcaKinFit/ParticleConstraint.h"
24 namespace OrcaKinFit {
26 class ParticleFitObject;
28 class RecoilMassConstraint :
public ParticleConstraint {
32 RecoilMassConstraint(
double recoilmass = 0.,
double beampx = 0.,
double beampy = 0.,
double beampz = 0,
double beampe = 0.);
38 virtual double getValue()
const override;
52 virtual int getVarBasis()
const override;
73 enum { VAR_BASIS = 0 };
81 #endif // __RECOILMASSCONSTRAINT_H
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...
std::vector< double > derivatives
The derivatives.
virtual double getValue() const override
Returns the value 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 ...
RecoilMassConstraint(double recoilmass=0., double beampx=0., double beampy=0., double beampz=0, double beampe=0.)
Constructor.
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.
Abstract base class for different kinds of events.
virtual ~RecoilMassConstraint()
Virtual destructor.
virtual void setRecoilMass(double recoilmass)
Sets the target recoil mass of the constraint.