17#include "analysis/OrcaKinFit/BaseConstraint.h"
28 namespace OrcaKinFit {
39 if (rhs.name)
setName(rhs.name);
45 if (rhs.name)
setName(rhs.name);
63 if (name_ ==
nullptr)
return;
64 size_t l = strlen(name_);
65 if (name)
delete[] name;
66 name =
new char[l + 1];
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
Abstract base class for different kinds of events.