ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Trk::LinearizedTrack Class Reference

#include <LinearizedTrack.h>

Collaboration diagram for Trk::LinearizedTrack:

Public Member Functions

 LinearizedTrack (const AmgVector(5) &expectedParametersAtPCA, const AmgSymMatrix(5) &expectedParErrorAtPCA, const Amg::Vector3D &linPoint, const AmgMatrix(5, 3) &positionJacobian, const AmgMatrix(5, 3) &momentumJacobian, const Amg::Vector3D &expectedPosition, const Amg::Vector3D &expectedMomentum, const AmgVector(5) &constantTerm)
 Constructor taking the perigee parameters and covariance matrix of the track, propagated to the point of closest approach of linearization point, position and momentum Jacobians, constant term of expansion, chi2, and weight of the current track. More...
 
 LinearizedTrack ()=default
 default operations More...
 
 LinearizedTrack (const LinearizedTrack &)=default
 
 LinearizedTrack (LinearizedTrack &&)=default
 
LinearizedTrackoperator= (const LinearizedTrack &)=default
 
LinearizedTrackoperator= (LinearizedTrack &&)=default
 
 ~LinearizedTrack ()=default
 
LinearizedTrackclone () const
 
MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes. More...
 
std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes. More...
 
const AmgMatrix (5, 3) &positionJacobian() const
 Position Jacobian access. More...
 
const AmgMatrix (5, 3) &momentumJacobian() const
 Momentum Jacobian access. More...
 
const Amg::Vector3DexpectedPositionAtPCA () const
 Access to the expected position at point of closet approach. More...
 
const Amg::Vector3DexpectedMomentumAtPCA () const
 Access to the expected momentum at point of closet approach. More...
 
const AmgVector (5) &const antTerm() const
 A constant term of Taylor expansion. More...
 
const AmgSymMatrix (5) &expectedCovarianceAtPCA() const
 Access to the covariance and weight matrix of the trajectory state. More...
 
 AmgSymMatrix (5) expectedWeightAtPCA() const
 Access to the expected weight matrix at point of closest approach. More...
 
const AmgVector (5) &expectedParametersAtPCA() const
 Access to the parameters at point of closest approach. More...
 
bool isValid () const
 Class validity check. More...
 
const Amg::Vector3DlinearizationPoint () const
 An access to an actual linearization point. More...
 

Private Member Functions

 AmgVector (5) m_ExpectedParametersAtPOCA
 
 AmgSymMatrix (5) m_ExpectedCovarianceAtPOCA
 
 AmgMatrix (5, 3) m_PositionJacobian
 
 AmgMatrix (5, 3) m_MomentumJacobian
 
 AmgVector (5) m_ConstantTerm
 

Private Attributes

Amg::Vector3D m_linPoint
 
Amg::Vector3D m_ExpectedPositionAtPOCA
 
Amg::Vector3D m_ExpectedMomentumAtPOCA
 
bool m_vl = false
 

Detailed Description

Definition at line 42 of file LinearizedTrack.h.

Constructor & Destructor Documentation

◆ LinearizedTrack() [1/4]

Trk::LinearizedTrack::LinearizedTrack ( const AmgVector(5) &  expectedParametersAtPCA,
const AmgSymMatrix(5) &  expectedParErrorAtPCA,
const Amg::Vector3D linPoint,
const AmgMatrix(5, 3) &  positionJacobian,
const AmgMatrix(5, 3) &  momentumJacobian,
const Amg::Vector3D expectedPosition,
const Amg::Vector3D expectedMomentum,
const AmgVector(5) &  constantTerm 
)

Constructor taking the perigee parameters and covariance matrix of the track, propagated to the point of closest approach of linearization point, position and momentum Jacobians, constant term of expansion, chi2, and weight of the current track.

Definition at line 26 of file LinearizedTrack.cxx.

27  : m_ExpectedParametersAtPOCA(expectedParametersAtPCA)
28  , m_ExpectedCovarianceAtPOCA(expectedParErrorAtPCA)
29  , m_linPoint(linPoint)
30  , m_PositionJacobian(positionJacobian)
31  , m_MomentumJacobian(momentumJacobian)
34  , m_ConstantTerm(constantTerm)
35  , m_vl(true)
36 {}
37 
38 // clone method implemetation
41 {
42  if (m_vl) {
43  return new LinearizedTrack(m_ExpectedParametersAtPOCA,

◆ LinearizedTrack() [2/4]

Trk::LinearizedTrack::LinearizedTrack ( )
default

default operations

◆ LinearizedTrack() [3/4]

Trk::LinearizedTrack::LinearizedTrack ( const LinearizedTrack )
default

◆ LinearizedTrack() [4/4]

Trk::LinearizedTrack::LinearizedTrack ( LinearizedTrack &&  )
default

◆ ~LinearizedTrack()

Trk::LinearizedTrack::~LinearizedTrack ( )
default

Member Function Documentation

◆ AmgMatrix() [1/4]

const Trk::LinearizedTrack::AmgMatrix ( ,
 
) const &
inline

Momentum Jacobian access.

Definition at line 95 of file LinearizedTrack.h.

96  {
97  return m_MomentumJacobian;
98  }

◆ AmgMatrix() [2/4]

const Trk::LinearizedTrack::AmgMatrix ( ,
 
) const &
inline

Position Jacobian access.

Definition at line 87 of file LinearizedTrack.h.

88  {
89  return m_PositionJacobian;
90  }

◆ AmgMatrix() [3/4]

Trk::LinearizedTrack::AmgMatrix ( ,
 
)
private

◆ AmgMatrix() [4/4]

Trk::LinearizedTrack::AmgMatrix ( ,
 
)
private

◆ AmgSymMatrix() [1/3]

const Trk::LinearizedTrack::AmgSymMatrix ( ) const &

Access to the covariance and weight matrix of the trajectory state.

The parametrization obtained through these methods depends on the actual TrackParameters current LinearizedTrack was created with. So far it can be perigee for charged track or "quasy perigee" for a neutral one. In the latter case, the 1/p is used instead of the corresponding q/p data member.

◆ AmgSymMatrix() [2/3]

Trk::LinearizedTrack::AmgSymMatrix ( ) const

Access to the expected weight matrix at point of closest approach.

Note that m_ExpectedCovarianceAtPOCA stores a covariance matrix, this function will just invert it. No caching mechanism is implemented for now.

◆ AmgSymMatrix() [3/3]

Trk::LinearizedTrack::AmgSymMatrix ( )
private

◆ AmgVector() [1/4]

const Trk::LinearizedTrack::AmgVector ( ) const &
inline

A constant term of Taylor expansion.

Definition at line 121 of file LinearizedTrack.h.

121 { return m_ConstantTerm; }

◆ AmgVector() [2/4]

const Trk::LinearizedTrack::AmgVector ( ) const &

Access to the parameters at point of closest approach.

◆ AmgVector() [3/4]

Trk::LinearizedTrack::AmgVector ( )
private

◆ AmgVector() [4/4]

Trk::LinearizedTrack::AmgVector ( )
private

◆ clone()

LinearizedTrack * Trk::LinearizedTrack::clone ( ) const

Definition at line 47 of file LinearizedTrack.cxx.

56 {
57  return m_ExpectedCovarianceAtPOCA;
58 }
59 
60 AmgSymMatrix(5) LinearizedTrack::expectedWeightAtPCA() const

◆ dump() [1/2]

MsgStream& Trk::LinearizedTrack::dump ( MsgStream &  sl) const

Output Method for MsgStream, to be overloaded by child classes.

◆ dump() [2/2]

std::ostream& Trk::LinearizedTrack::dump ( std::ostream &  sl) const

Output Method for std::ostream, to be overloaded by child classes.

◆ expectedMomentumAtPCA()

const Amg::Vector3D& Trk::LinearizedTrack::expectedMomentumAtPCA ( ) const
inline

Access to the expected momentum at point of closet approach.

Definition at line 113 of file LinearizedTrack.h.

114  {
116  }

◆ expectedPositionAtPCA()

const Amg::Vector3D& Trk::LinearizedTrack::expectedPositionAtPCA ( ) const
inline

Access to the expected position at point of closet approach.

Definition at line 104 of file LinearizedTrack.h.

105  {
107  }

◆ isValid()

bool Trk::LinearizedTrack::isValid ( ) const
inline

Class validity check.

Definition at line 149 of file LinearizedTrack.h.

149 { return m_vl; }

◆ linearizationPoint()

const Amg::Vector3D& Trk::LinearizedTrack::linearizationPoint ( ) const
inline

An access to an actual linearization point.

Definition at line 154 of file LinearizedTrack.h.

154 { return m_linPoint; }

◆ operator=() [1/2]

LinearizedTrack& Trk::LinearizedTrack::operator= ( const LinearizedTrack )
default

◆ operator=() [2/2]

LinearizedTrack& Trk::LinearizedTrack::operator= ( LinearizedTrack &&  )
default

Member Data Documentation

◆ m_ExpectedMomentumAtPOCA

Amg::Vector3D Trk::LinearizedTrack::m_ExpectedMomentumAtPOCA
private

Definition at line 163 of file LinearizedTrack.h.

◆ m_ExpectedPositionAtPOCA

Amg::Vector3D Trk::LinearizedTrack::m_ExpectedPositionAtPOCA
private

Definition at line 162 of file LinearizedTrack.h.

◆ m_linPoint

Amg::Vector3D Trk::LinearizedTrack::m_linPoint
private

Definition at line 159 of file LinearizedTrack.h.

◆ m_vl

bool Trk::LinearizedTrack::m_vl = false
private

Definition at line 166 of file LinearizedTrack.h.


The documentation for this class was generated from the following files:
Trk::LinearizedTrack::m_linPoint
Amg::Vector3D m_linPoint
Definition: LinearizedTrack.h:159
Trk::LinearizedTrack::expectedPositionAtPCA
const Amg::Vector3D & expectedPositionAtPCA() const
Access to the expected position at point of closet approach.
Definition: LinearizedTrack.h:104
Trk::LinearizedTrack::m_vl
bool m_vl
Definition: LinearizedTrack.h:166
Trk::LinearizedTrack::clone
LinearizedTrack * clone() const
Definition: LinearizedTrack.cxx:47
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Trk::LinearizedTrack::m_ExpectedPositionAtPOCA
Amg::Vector3D m_ExpectedPositionAtPOCA
Definition: LinearizedTrack.h:162
Trk::LinearizedTrack::LinearizedTrack
LinearizedTrack()=default
default operations
Trk::LinearizedTrack::AmgSymMatrix
const AmgSymMatrix(5) &expectedCovarianceAtPCA() const
Access to the covariance and weight matrix of the trajectory state.
Trk::LinearizedTrack::m_ExpectedMomentumAtPOCA
Amg::Vector3D m_ExpectedMomentumAtPOCA
Definition: LinearizedTrack.h:163
Trk::LinearizedTrack::expectedMomentumAtPCA
const Amg::Vector3D & expectedMomentumAtPCA() const
Access to the expected momentum at point of closet approach.
Definition: LinearizedTrack.h:113