41 using std::unique_ptr;
55 : _lhs (c._lhs->
clone ()),
56 _rhs (c._rhs->
clone ())
73 unique_ptr<Constraint_Intermed> ci = c.
_lhs->clone ();
77 unique_ptr<Constraint_Intermed> ci = c.
_rhs->clone ();
96 assert (i != string::npos);
100 unique_ptr<Constraint_Intermed> ci =
105 unique_ptr<Constraint_Intermed> ci =
127 if (
_lhs->has_labels (ilabel, jlabel))
129 else if (
_rhs->has_labels (ilabel, jlabel))
148 return _lhs->sum_mass_terms (
ev) -
_rhs->sum_mass_terms (
ev);
174 s << *c.
_lhs.get() <<
" = " << *c.
_rhs.get();
Represent a mass constraint equation. Mass constraints come in two varieties, either saying that the ...
std::unique_ptr< Constraint_Intermed > make_constraint_intermed(std::string s)
Represent an event for kinematic fitting as a collection of four-momenta. Each object is represented ...
double sum_mass_terms(const Fourvec_Event &ev) const
std::unique_ptr< Constraint_Intermed > _rhs
Constraint(std::string s)
Constraint & operator=(const Constraint &c)
Represent a mass constraint equation.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
friend std::ostream & operator<<(std::ostream &s, const Constraint &c)
Output stream operator, print the content of this Constraint to an output stream. ...
std::unique_ptr< Constraint_Intermed > _lhs
int has_labels(int ilabel, int jlabel) const
Represent one side of a mass constraint equation. Contains the abstract base class Constraint_Interme...