ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::AlignmentDeviation Class Referenceabstract

An object decorating a track and holding degrees of freedom reflecting alignment accuracy. More...

#include <AlignmentDeviation.h>

Inheritance diagram for Trk::AlignmentDeviation:
Collaboration diagram for Trk::AlignmentDeviation:

Public Member Functions

 AlignmentDeviation (const std::vector< const Trk::RIO_OnTrack * > &hits, std::size_t hitshash, bool hitshashdone)
virtual ~AlignmentDeviation ()
virtual int nPar () const =0
 The number of free parameters.
virtual double getCovariance (int ipar, int jpar) const =0
 The error matrix on the free parameters.
virtual Amg::Transform3D getTransform (const std::vector< double > &parameters) const =0
 Return a Transform in the global coordinate system, given a list of parameters.
const std::vector< const Trk::RIO_OnTrack * > & getListOfHits () const
 Return the list of hits the transform should be applied to.
std::size_t getHashOfHits () const
 Return hash built out of associated hits for fast comparison if deviations have same content.
void setHashOfHits (std::size_t hash)
 Set hash built out of associated hits - cannot be calculated in constructor because of dependencies.
bool hasValidHashOfHits () const
 Return if the hash created form associated hits is set.
virtual void print (std::ostream &out) const =0
 Verbose.

Protected Attributes

std::vector< const Trk::RIO_OnTrack * > m_hits
std::size_t m_hitshash
bool m_hitshashdone

Detailed Description

An object decorating a track and holding degrees of freedom reflecting alignment accuracy.

Definition at line 20 of file AlignmentDeviation.h.

Constructor & Destructor Documentation

◆ AlignmentDeviation()

Trk::AlignmentDeviation::AlignmentDeviation ( const std::vector< const Trk::RIO_OnTrack * > & hits,
std::size_t hitshash,
bool hitshashdone )
inline

Definition at line 77 of file AlignmentDeviation.h.

80 : m_hits (hits),
81 m_hitshash (hitshash),
82 m_hitshashdone (hitshashdone)
83 {
84 }
std::vector< const Trk::RIO_OnTrack * > m_hits

◆ ~AlignmentDeviation()

virtual Trk::AlignmentDeviation::~AlignmentDeviation ( )
inlinevirtual

Definition at line 26 of file AlignmentDeviation.h.

26{}

Member Function Documentation

◆ getCovariance()

virtual double Trk::AlignmentDeviation::getCovariance ( int ipar,
int jpar ) const
pure virtual

The error matrix on the free parameters.

Track fitters should use this to compute a constraint on the free parameters.

Implemented in MuonAlign::AlignmentRotationDeviation, and MuonAlign::AlignmentTranslationDeviation.

◆ getHashOfHits()

std::size_t Trk::AlignmentDeviation::getHashOfHits ( ) const
inline

Return hash built out of associated hits for fast comparison if deviations have same content.

Definition at line 88 of file AlignmentDeviation.h.

88{ return m_hitshash; }

◆ getListOfHits()

const std::vector< const Trk::RIO_OnTrack * > & Trk::AlignmentDeviation::getListOfHits ( ) const
inline

Return the list of hits the transform should be applied to.

Definition at line 86 of file AlignmentDeviation.h.

86{ return m_hits; }

◆ getTransform()

virtual Amg::Transform3D Trk::AlignmentDeviation::getTransform ( const std::vector< double > & parameters) const
pure virtual

Return a Transform in the global coordinate system, given a list of parameters.

Implemented in MuonAlign::AlignmentRotationDeviation, and MuonAlign::AlignmentTranslationDeviation.

◆ hasValidHashOfHits()

bool Trk::AlignmentDeviation::hasValidHashOfHits ( ) const
inline

Return if the hash created form associated hits is set.

Definition at line 95 of file AlignmentDeviation.h.

95{ return m_hitshashdone; }

◆ nPar()

virtual int Trk::AlignmentDeviation::nPar ( ) const
pure virtual

The number of free parameters.

Implemented in MuonAlign::AlignmentRotationDeviation, and MuonAlign::AlignmentTranslationDeviation.

◆ print()

virtual void Trk::AlignmentDeviation::print ( std::ostream & out) const
pure virtual

◆ setHashOfHits()

void Trk::AlignmentDeviation::setHashOfHits ( std::size_t hash)
inline

Set hash built out of associated hits - cannot be calculated in constructor because of dependencies.

Definition at line 90 of file AlignmentDeviation.h.

Member Data Documentation

◆ m_hits

std::vector<const Trk::RIO_OnTrack*> Trk::AlignmentDeviation::m_hits
protected

Definition at line 71 of file AlignmentDeviation.h.

◆ m_hitshash

std::size_t Trk::AlignmentDeviation::m_hitshash
protected

Definition at line 72 of file AlignmentDeviation.h.

◆ m_hitshashdone

bool Trk::AlignmentDeviation::m_hitshashdone
protected

Definition at line 73 of file AlignmentDeviation.h.


The documentation for this class was generated from the following file: