ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 LinearizedTrack ()=default
 default operations
 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.
std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes.
const AmgMatrix (5, 3) &positionJacobian() const
 Position Jacobian access.
const AmgMatrix (5, 3) &momentumJacobian() const
 Momentum Jacobian access.
const Amg::Vector3DexpectedPositionAtPCA () const
 Access to the expected position at point of closet approach.
const Amg::Vector3DexpectedMomentumAtPCA () const
 Access to the expected momentum at point of closet approach.
const AmgVector (5) &const antTerm() const
 A constant term of Taylor expansion.
const AmgSymMatrix (5) &expectedCovarianceAtPCA() const
 Access to the covariance and weight matrix of the trajectory state.
 AmgSymMatrix (5) expectedWeightAtPCA() const
 Access to the expected weight matrix at point of closest approach.
const AmgVector (5) &expectedParametersAtPCA() const
 Access to the parameters at point of closest approach.
bool isValid () const
 Class validity check.
const Amg::Vector3DlinearizationPoint () const
 An access to an actual linearization point.

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 19 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{}
Amg::Vector3D m_ExpectedPositionAtPOCA
const Amg::Vector3D & expectedPositionAtPCA() const
Access to the expected position at point of closet approach.
Amg::Vector3D m_ExpectedMomentumAtPOCA
const Amg::Vector3D & expectedMomentumAtPCA() const
Access to the expected momentum at point of closet approach.

◆ 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 ( 5 ,
3  ) 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 ( 5 ,
3  ) 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 ( 5 ,
3  )
private

◆ AmgMatrix() [4/4]

Trk::LinearizedTrack::AmgMatrix ( 5 ,
3  )
private

◆ AmgSymMatrix() [1/3]

const Trk::LinearizedTrack::AmgSymMatrix ( 5 ) 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 ( 5 ) 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 ( 5 )
private

◆ AmgVector() [1/4]

const Trk::LinearizedTrack::AmgVector ( 5 ) 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 ( 5 ) const &

Access to the parameters at point of closest approach.

◆ AmgVector() [3/4]

Trk::LinearizedTrack::AmgVector ( 5 )
private

◆ AmgVector() [4/4]

Trk::LinearizedTrack::AmgVector ( 5 )
private

◆ clone()

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

Definition at line 40 of file LinearizedTrack.cxx.

41{
42 if (m_vl) {
43 return new LinearizedTrack(m_ExpectedParametersAtPOCA,
44 m_ExpectedCovarianceAtPOCA,
46 m_PositionJacobian,
47 m_MomentumJacobian,
50 m_ConstantTerm);
51 }
52 return new LinearizedTrack();
53} // end of clone method
LinearizedTrack()=default
default operations

◆ 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: