CMS 3D CMS Logo

Classes | Namespaces | Functions
Constraint_Intermed.h File Reference

Represent one side of a mass constraint equation. Contains the abstract base class Constraint_Intermed and concrete implementations Constraint_Intermed_Constant and Constraint_Intermed_Labels. More...

#include <iosfwd>
#include <vector>
#include <string>
#include <memory>

Go to the source code of this file.

Classes

class  hitfit::Constraint_Intermed
 Abstract base classes for describing one side of a mass constraint. More...
 
class  hitfit::Constraint_Intermed_Constant
 Concrete class for one side of mass constraint equation of the type:
$(1 + 2) = C$. More...
 
class  hitfit::Constraint_Intermed_Labels
 Concrete class for one side of mass constraint equation of the type:
$(1 + 2) = (3 + 4)$. More...
 

Namespaces

 hitfit
 

Functions

std::unique_ptr< Constraint_Intermed > hitfit::make_constraint_intermed (std::string s)
 
std::ostream & hitfit::operator<< (std::ostream &s, const hitfit::Constraint_Intermed &ci)
 Output stream operator, print the content of this Constraint_Intermed to an output stream. More...
 

Detailed Description

Represent one side of a mass constraint equation. Contains the abstract base class Constraint_Intermed and concrete implementations Constraint_Intermed_Constant and Constraint_Intermed_Labels.

Mass constraints come in two varieties, either saying that the sum of a set of labels should equal a constant:

$(1 + 2) = 80$.

or that two such sums should equal each other:

$(1 + 2) = (3 + 4)$.

These classes represent one side of such an equation. There is an abstract base class Constraint_Intermed, and then the concrete implementations of the two cases, Constraint_Intermed_Constant and Constraint_Intermed_Labels. There is also a free function make_constant_intermed() to parse a string representation one side of the constraint and return the appropriate Constraint_Intermed instance.

Creation date:
July 2000.
Author
Scott Stuart Snyder snyde.nosp@m.r@bn.nosp@m.l.gov.
Modification History:
Apr 2009: Haryo Sumowidagdo Suhar.nosp@m.yo.S.nosp@m.umowi.nosp@m.dagd.nosp@m.o@cer.nosp@m.n.ch: Imported to CMSSW.
Oct 2009: Haryo Sumowidagdo Suhar.nosp@m.yo.S.nosp@m.umowi.nosp@m.dagd.nosp@m.o@cer.nosp@m.n.ch: Added Doxygen tags for automatic generation of documentation.
Terms of Usage:
With consent from the original author (Scott Snyder).

Definition in file Constraint_Intermed.h.