CMS 3D CMS Logo

List of all members | Public Member Functions
hitfit::Constraint_Intermed Class Referenceabstract

Abstract base classes for describing one side of a mass constraint. More...

#include <Constraint_Intermed.h>

Inheritance diagram for hitfit::Constraint_Intermed:
hitfit::Constraint_Intermed_Constant hitfit::Constraint_Intermed_Labels

Public Member Functions

virtual std::unique_ptr< Constraint_Intermedclone () const =0
 
 Constraint_Intermed ()
 
virtual bool has_labels (int ilabel, int jlabel) const =0
 
virtual void print (std::ostream &s) const =0
 
virtual double sum_mass_terms (const Fourvec_Event &ev) const =0
 
virtual ~Constraint_Intermed ()
 

Detailed Description

Abstract base classes for describing one side of a mass constraint.

Definition at line 89 of file Constraint_Intermed.h.

Constructor & Destructor Documentation

◆ Constraint_Intermed()

hitfit::Constraint_Intermed::Constraint_Intermed ( )
inline

Constructor.

Definition at line 100 of file Constraint_Intermed.h.

100 {}

◆ ~Constraint_Intermed()

virtual hitfit::Constraint_Intermed::~Constraint_Intermed ( )
inlinevirtual

Destructor.

Definition at line 105 of file Constraint_Intermed.h.

105 {}

Member Function Documentation

◆ clone()

virtual std::unique_ptr<Constraint_Intermed> hitfit::Constraint_Intermed::clone ( ) const
pure virtual

Clone function to copy the instance.

Implemented in hitfit::Constraint_Intermed_Labels, and hitfit::Constraint_Intermed_Constant.

◆ has_labels()

virtual bool hitfit::Constraint_Intermed::has_labels ( int  ilabel,
int  jlabel 
) const
pure virtual

Check the instance for reference of ilabel and jlabel.

Parameters
ilabelThe first label to test.
jlabelThe second label to test.
Return:
true if this instance references both labels ilabel and jlabel.
false if this instance doesn't reference both labels.

Implemented in hitfit::Constraint_Intermed_Labels, and hitfit::Constraint_Intermed_Constant.

◆ print()

virtual void hitfit::Constraint_Intermed::print ( std::ostream &  s) const
pure virtual

Print out the instance to the output stream.

Parameters
sThe output stream to which the instance is printed.

Implemented in hitfit::Constraint_Intermed_Labels, and hitfit::Constraint_Intermed_Constant.

Referenced by hitfit::operator<<().

◆ sum_mass_terms()

virtual double hitfit::Constraint_Intermed::sum_mass_terms ( const Fourvec_Event ev) const
pure virtual

Evaluate this half of the mass constraint, using the data in ev.

Parameters
evThe event for which the mass constraint is to be evaluated.
Return:
$\frac{m^{2}}{2}$.

Implemented in hitfit::Constraint_Intermed_Labels, and hitfit::Constraint_Intermed_Constant.