ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
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. More...
 
virtual double getCovariance (int ipar, int jpar) const =0
 The error matrix on the free parameters. More...
 
virtual Amg::Transform3D getTransform (const std::vector< double > &parameters) const =0
 Return a Transform in the global coordinate system, given a list of parameters. More...
 
const std::vector< const Trk::RIO_OnTrack * > & getListOfHits () const
 Return the list of hits the transform should be applied to. More...
 
std::size_t getHashOfHits () const
 Return hash built out of associated hits for fast comparison if deviations have same content. More...
 
void setHashOfHits (std::size_t hash)
 Set hash built out of associated hits - cannot be calculated in constructor because of dependencies. More...
 
bool hasValidHashOfHits () const
 Return if the hash created form associated hits is set. More...
 
virtual void print (std::ostream &out) const =0
 Verbose. More...
 

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  }

◆ ~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.

90  {
91  m_hitshash = hash;
92  m_hitshashdone = true;
93  }

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:
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
Trk::AlignmentDeviation::m_hitshashdone
bool m_hitshashdone
Definition: AlignmentDeviation.h:73
Trk::AlignmentDeviation::m_hitshash
std::size_t m_hitshash
Definition: AlignmentDeviation.h:72
Trk::AlignmentDeviation::m_hits
std::vector< const Trk::RIO_OnTrack * > m_hits
Definition: AlignmentDeviation.h:71
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109