Concrete class for one side of mass constraint equation of the type:
.
More...
#include <Constraint_Intermed.h>
Public Member Functions | |
virtual std::auto_ptr < Constraint_Intermed > | clone () const |
Constraint_Intermed_Constant (const Constraint_Intermed_Constant &c) | |
Constraint_Intermed_Constant (double constant) | |
virtual bool | has_labels (int ilabel, int jlabel) const |
virtual void | print (std::ostream &s) const |
virtual double | sum_mass_terms (const Fourvec_Event &ev) const |
virtual | ~Constraint_Intermed_Constant () |
Private Attributes | |
double | _c2 |
Concrete class for one side of mass constraint equation of the type:
.
Definition at line 168 of file Constraint_Intermed.h.
hitfit::Constraint_Intermed_Constant::Constraint_Intermed_Constant | ( | double | constant | ) |
Constructor.
constant | The mass constraint of the constraint equation. |
Definition at line 66 of file Constraint_Intermed.cc.
Referenced by clone().
: _c2 (constant * constant / 2) { }
virtual hitfit::Constraint_Intermed_Constant::~Constraint_Intermed_Constant | ( | ) | [inline, virtual] |
hitfit::Constraint_Intermed_Constant::Constraint_Intermed_Constant | ( | const Constraint_Intermed_Constant & | c | ) |
Copy constructor.
c | The instance to be copied. |
Definition at line 79 of file Constraint_Intermed.cc.
auto_ptr< Constraint_Intermed > hitfit::Constraint_Intermed_Constant::clone | ( | void | ) | const [virtual] |
Clone function to copy the instance.
Implements hitfit::Constraint_Intermed.
Definition at line 138 of file Constraint_Intermed.cc.
References Constraint_Intermed_Constant().
{ return auto_ptr<Constraint_Intermed> (new Constraint_Intermed_Constant (*this)); }
bool hitfit::Constraint_Intermed_Constant::has_labels | ( | int | ilabel, |
int | jlabel | ||
) | const [virtual] |
Check the instance for reference of ilabel and jlabel.
ilabel | The first label to test. |
jlabel | The second label to test. |
Implements hitfit::Constraint_Intermed.
Definition at line 91 of file Constraint_Intermed.cc.
{ return false; }
void hitfit::Constraint_Intermed_Constant::print | ( | std::ostream & | s | ) | const [virtual] |
Print out the instance to the output stream.
s | The output stream to which the instance is printed. |
Implements hitfit::Constraint_Intermed.
Definition at line 126 of file Constraint_Intermed.cc.
References alignCSCRings::s, and mathSSE::sqrt().
double hitfit::Constraint_Intermed_Constant::sum_mass_terms | ( | const Fourvec_Event & | ev | ) | const [virtual] |
Evaluate this half of the mass constraint, using the data in ev.
ev | The event for which the mass constraint is to be evaluated. |
Implements hitfit::Constraint_Intermed.
Definition at line 110 of file Constraint_Intermed.cc.
References _c2.
{ return _c2; }
double hitfit::Constraint_Intermed_Constant::_c2 [private] |
The mass constraint value.
Definition at line 242 of file Constraint_Intermed.h.
Referenced by sum_mass_terms().