Concrete class for one side of mass constraint equation of the type:
.
More...
#include <Constraint_Intermed.h>
Public Member Functions | |
std::unique_ptr< Constraint_Intermed > | clone () const override |
Constraint_Intermed_Labels (const std::vector< int > &labels) | |
Constraint_Intermed_Labels (const Constraint_Intermed_Labels &c) | |
bool | has_labels (int ilabel, int jlabel) const override |
void | print (std::ostream &s) const override |
double | sum_mass_terms (const Fourvec_Event &ev) const override |
~Constraint_Intermed_Labels () override | |
Public Member Functions inherited from hitfit::Constraint_Intermed | |
Constraint_Intermed () | |
virtual | ~Constraint_Intermed () |
Private Member Functions | |
bool | has_label (int label) const |
Constraint_Intermed & | operator= (const Constraint_Intermed &) |
Private Attributes | |
std::vector< int > | _labels |
Concrete class for one side of mass constraint equation of the type:
.
Definition at line 245 of file Constraint_Intermed.h.
hitfit::Constraint_Intermed_Labels::Constraint_Intermed_Labels | ( | const std::vector< int > & | labels | ) |
Constructor.
labels | The labels used by this side of mass constraint. |
Definition at line 133 of file Constraint_Intermed.cc.
References _labels.
Referenced by clone(), and hitfit::make_constraint_intermed().
hitfit::Constraint_Intermed_Labels::Constraint_Intermed_Labels | ( | const Constraint_Intermed_Labels & | c | ) |
Copy constructor.
c | The instance of Constraint_Intermed_Labels to be copied. |
Definition at line 145 of file Constraint_Intermed.cc.
|
inlineoverride |
Destructor.
Definition at line 261 of file Constraint_Intermed.h.
References hitfit::Constraint_Intermed::clone(), ev, hitfit::Constraint_Intermed::has_labels(), label, hitfit::Constraint_Intermed::print(), alignCSCRings::s, and hitfit::Constraint_Intermed::sum_mass_terms().
|
overridevirtual |
Clone function to copy the instance.
Implements hitfit::Constraint_Intermed.
Definition at line 244 of file Constraint_Intermed.cc.
References Constraint_Intermed_Labels().
|
private |
Test to see if label is used by this side of the mass constraint.
label | The label for which to search. |
Definition at line 230 of file Constraint_Intermed.cc.
References _labels, spr::find(), and label.
Referenced by sum_mass_terms().
|
overridevirtual |
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 154 of file Constraint_Intermed.cc.
References _labels, mps_fire::i, and edm::swap().
|
private |
Disallow assignment by NOT defining the assignment operation.
|
overridevirtual |
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 213 of file Constraint_Intermed.cc.
References _labels, mps_fire::i, and alignCSCRings::s.
|
overridevirtual |
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 190 of file Constraint_Intermed.cc.
References ev, has_label(), mps_fire::i, hitfit::FE_Obj::label, hitfit::FE_Obj::mass, and EcalTangentSkim_cfg::o.
|
private |
List of the labels for this side of mass constraint, kept in sorted order.
Definition at line 321 of file Constraint_Intermed.h.
Referenced by validation.SimpleValidation::_doPlots(), Constraint_Intermed_Labels(), plotting.PlotFolder::draw(), has_label(), has_labels(), and print().