ATLAS Offline Software
|
#include <ParametersBase.h>
Public Member Functions | |
virtual | ~ParametersBase ()=default |
virtual Destructor More... | |
double | charge () const |
Returns the charge. More... | |
const Amg::Vector3D & | position () const |
Access method for the position. More... | |
const Amg::Vector3D & | momentum () const |
Access method for the momentum. More... | |
double | pT () const |
Access method for transverse momentum. More... | |
double | eta () const |
Access method for pseudorapidity - from momentum. More... | |
virtual bool | operator== (const ParametersBase< DIM, T > &) const |
equality operator More... | |
virtual bool | hasSurface () const override=0 |
Test to see if there's a not null surface ptr. More... | |
virtual const Surface & | associatedSurface () const override=0 |
Access to the Surface associated to the Parameters. More... | |
virtual Amg::RotationMatrix3D | measurementFrame () const override=0 |
Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perigee Surface. More... | |
virtual ParametersBase< DIM, T > * | clone () const override=0 |
clone method for polymorphic deep copy More... | |
std::unique_ptr< ParametersBase< DIM, T > > | uniqueClone () const |
clone method for polymorphic deep copy returning unique_ptr; it is not overriden, but uses the existing clone method. More... | |
constexpr virtual ParametersType | type () const override=0 |
Return the ParametersType enum. More... | |
constexpr virtual SurfaceType | surfaceType () const override=0 |
Returns the Surface Type enum for the surface used to define the derived class. More... | |
virtual MsgStream & | dump (MsgStream &out) const |
Dumps relevant information about the track parameters into the ostream. More... | |
virtual std::ostream & | dump (std::ostream &out) const |
const | AmgVector (DIM) ¶meters() const |
Access methods for the parameters. More... | |
AmgVector (DIM) ¶meters() | |
const | AmgSymMatrix (DIM) *covariance() const |
Access method for the covariance matrix - returns nullptr if no covariance matrix is given. More... | |
AmgSymMatrix (DIM) *covariance() | |
constexpr bool | isCharged () const |
Returns true if Charged or false if Neutral. More... | |
Amg::Vector2D | localPosition () const |
Access method for the local coordinates, \((loc1,loc2)\) local parameter definitions differ for each surface type. More... | |
void | setParameters (const AmgVector(DIM) ¶m) |
set parameters More... | |
void | setCovariance (const AmgSymMatrix(DIM) &cov) |
set covariance More... | |
void | updateParameters (const AmgVector(DIM) &, const AmgSymMatrix(DIM) &) |
Update parameters and covariance , passing covariance by ref. More... | |
void | updateParameters (const AmgVector(DIM) &) |
Update parameters. More... | |
Static Public Attributes | |
static constexpr int | dim = DIM |
Protected Member Functions | |
ParametersBase ()=default | |
ParametersBase (ParametersBase &&) noexcept=default | |
ParametersBase & | operator= (ParametersBase &&) noexcept=default |
ParametersBase (const ParametersBase &)=default | |
ParametersBase & | operator= (const ParametersBase &)=default |
ParametersBase (const AmgVector(DIM) parameters, std::optional< AmgSymMatrix(DIM)> &&covariance, const T chargeDef) | |
ParametersBase (std::optional< AmgSymMatrix(DIM)> &&covariance) | |
ParametersBase (const AmgVector(DIM) ¶meters, std::optional< AmgSymMatrix(DIM)> &&covariance=std::nullopt) | |
virtual void | updateParametersHelper (const AmgVector(DIM) &) override=0 |
contains the n parameters More... | |
AmgVector (DIM) m_parameters | |
contains the n x n covariance matrix More... | |
Protected Attributes | |
Amg::Vector3D | m_position |
point on track More... | |
Amg::Vector3D | m_momentum |
momentum at this point on track More... | |
std::optional< AmgSymMatrix(DIM)> | m_covariance = std::nullopt |
charge definition for this track More... | |
T | m_chargeDef {} |
charge definition for this track More... | |
The base class for neutral and charged Track parameters. It represents the free state of a trajectory, represented by the track parameters. The position and the momentum are both given in the tracking reference frame.
DIM | number of track parameters (usually 5) |
T | charge of track (either Trk::Charged or Trk::Neutral ) |
The relevant allowed aliases and specialization are under TrkParameters and TrkNeutralParameters and not in this package.
Definition at line 54 of file ParametersBase.h.
|
virtualdefault |
virtual Destructor
|
protecteddefault |
|
protecteddefaultnoexcept |
|
protecteddefault |
|
protected |
|
protected |
|
protected |
|
inherited |
|
inherited |
Access method for the covariance matrix - returns nullptr if no covariance matrix is given.
|
inherited |
|
inherited |
Access methods for the parameters.
|
protectedinherited |
contains the n x n covariance matrix
|
overridepure virtual |
Access to the Surface associated to the Parameters.
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
double Trk::ParametersBase< DIM, T >::charge | ( | ) | const |
Returns the charge.
|
overridepure virtual |
clone method for polymorphic deep copy
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
virtual |
Dumps relevant information about the track parameters into the ostream.
Reimplemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
virtual |
Reimplemented in Trk::CurvilinearParametersT< DIM, T, S >.
double Trk::ParametersBase< DIM, T >::eta | ( | ) | const |
Access method for pseudorapidity - from momentum.
|
overridepure virtual |
Test to see if there's a not null surface ptr.
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
constexprinherited |
|
inherited |
Access method for the local coordinates, \((loc1,loc2)\) local parameter definitions differ for each surface type.
|
overridepure virtual |
Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perigee Surface.
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
const Amg::Vector3D& Trk::ParametersBase< DIM, T >::momentum | ( | ) | const |
Access method for the momentum.
|
protecteddefault |
|
protecteddefaultnoexcept |
|
virtual |
equality operator
Reimplemented in Trk::CurvilinearParametersT< DIM, T, S >.
const Amg::Vector3D& Trk::ParametersBase< DIM, T >::position | ( | ) | const |
Access method for the position.
double Trk::ParametersBase< DIM, T >::pT | ( | ) | const |
Access method for transverse momentum.
|
inherited |
set covariance
|
inherited |
set parameters
|
constexproverridepure virtual |
Returns the Surface Type enum for the surface used to define the derived class.
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
constexproverridepure virtual |
Return the ParametersType enum.
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
inline |
clone method for polymorphic deep copy returning unique_ptr; it is not overriden, but uses the existing clone method.
Definition at line 97 of file ParametersBase.h.
|
inherited |
Update parameters.
Derived classes override the implementation via updateParametersHelper as this could possibly lead to updating other data members
|
inherited |
Update parameters and covariance , passing covariance by ref.
A covariance is created if one does not exist. Otherwise in place update occurs via assignment.
Derived classes override the implementation via updateParametersHelper as this could possibly lead to updating other data members
|
overrideprotectedpure virtual |
contains the n parameters
Implements Trk::ParametersCommon< DIM, T >.
Implemented in Trk::CurvilinearParametersT< DIM, T, S >.
|
staticconstexprinherited |
Definition at line 50 of file ParametersCommon.h.
|
protectedinherited |
charge definition for this track
Definition at line 149 of file ParametersCommon.h.
|
protectedinherited |
charge definition for this track
Definition at line 147 of file ParametersCommon.h.
|
protected |
momentum at this point on track
Definition at line 141 of file ParametersBase.h.
|
protected |
point on track
Definition at line 140 of file ParametersBase.h.