ATLAS Offline Software
|
Concrete implementation of Trk::IKinematicConstraint to formulate a mass constraint in kinematic vertex fits. More...
#include <MassConstraint.h>
Public Member Functions | |
MassConstraint ()=default | |
empty constructor More... | |
MassConstraint (double mass) | |
standard constructor More... | |
virtual | ~MassConstraint ()=default |
virtual Amg::VectorX | vectorOfValues (std::vector< Amg::VectorX > &cart_coordList, std::vector< int > &charges, Amg::Vector3D refPoint, double b_fieldTesla) const override final |
method returning the vector of parameters values. More... | |
virtual Amg::MatrixX | matrixOfDerivatives (std::vector< Amg::VectorX > &cart_coordList, std::vector< int > &charges, Amg::Vector3D refPoint, double b_fieldTesla) const override final |
method returning the matrix of derivatives. More... | |
virtual int | numberOfEquations () const override final |
tells the number of equations needed for this type of constraint, that is 1 More... | |
double | mass () |
tells the mass value used for the constraint More... | |
Private Attributes | |
double | m_mass = 0. |
value of mass to be constrained in MeV More... | |
Static Private Attributes | |
static constexpr int | s_eqno = 1 |
number of constraint-equations used by this type of constraint More... | |
Concrete implementation of Trk::IKinematicConstraint to formulate a mass constraint in kinematic vertex fits.
The constraint is constructed with a mass value (in MeV), to which the invariant mass of the particles emerging from a vertex will be constrained. It calculates the values and derivatives for a list of particles, given by their parameters and charges.
Definition at line 26 of file MassConstraint.h.
|
default |
empty constructor
Trk::MassConstraint::MassConstraint | ( | double | mass | ) |
standard constructor
[in] | mass | Invariant mass in MeV to which particles shall be constrained |
Definition at line 12 of file MassConstraint.cxx.
|
virtualdefault |
|
inline |
|
finaloverridevirtual |
method returning the matrix of derivatives.
Method defined through the <nop>IKinematicConstraint base class
[in] | cart_coordList | vector of particles represented in cartesian frame, that is through the parameters (px, py, pz, E, x, y, z). |
[in] | charges | charge information for the vector of particles |
[in] | refPoint | reference point for cartesian coordinates |
[in] | b_fieldTesla | local solenoidal approximation of field |
[out] | matrix | of derivatives to enter the constrained-fit equation |
Implements Trk::IKinematicConstraint.
Definition at line 60 of file MassConstraint.cxx.
|
inlinefinaloverridevirtual |
tells the number of equations needed for this type of constraint, that is 1
Implements Trk::IKinematicConstraint.
Definition at line 72 of file MassConstraint.h.
|
finaloverridevirtual |
method returning the vector of parameters values.
Method defined through the <nop>IKinematicConstraint base class
[in] | cart_coordList | vector of particles represented in cartesian frame, that is through the parameters (px, py, pz, E, x, y, z). |
[in] | charges | charge information for the vector of particles |
[in] | refPoint | reference point for cartesian coordinates |
[in] | b_fieldTesla | local solenoidal approximation of field |
[out] | vector | of values to enter the constrained-fit equation |
Implements Trk::IKinematicConstraint.
Definition at line 17 of file MassConstraint.cxx.
|
private |
value of mass to be constrained in MeV
Definition at line 79 of file MassConstraint.h.
|
staticconstexprprivate |
number of constraint-equations used by this type of constraint
Definition at line 81 of file MassConstraint.h.