17#ifndef __BASECONSTRAINT_H
18#define __BASECONSTRAINT_H
28 namespace OrcaKinFit {
93 virtual const char*
getName()
const;
95 void setName(
const char* name_);
104 virtual std::ostream&
print(std::ostream& os
114 inline std::ostream& operator<< (std::ostream& os,
Abstract base class for constraints of kinematic fits.
virtual double getValue() const =0
Returns the value of the constraint function.
BaseConstraint & operator=(const BaseConstraint &rhs)
Assignment.
virtual ~BaseConstraint()
Virtual destructor.
void setName(const char *name_)
Set object's name.
virtual const char * getName() const
Returns the name of the constraint.
virtual double getError() const
Returns the error on the value of the constraint.
BaseConstraint()
Creates an empty BaseConstraint object.
virtual std::ostream & print(std::ostream &os) const
print object to ostream
virtual void getDerivatives(int idim, double der[]) const =0
Get first order derivatives of the constraint function Call this with a predefined array "der" with t...
Abstract base class for different kinds of events.