CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
LocalErrorBaseExtended< T, ErrorWeightType > Class Template Reference

#include <LocalErrorBaseExtended.h>

Classes

class  NullMatrix
 Tag to request a null error matrix. More...
 

Public Member Functions

T cphixphix () const
 
T cphixx () const
 
T cphixy () const
 
T cphiyphix () const
 
T cphiyphiy () const
 
T cphiyx () const
 
T cphiyy () const
 
T cxx () const
 
T cyx () const
 
T cyy () const
 
bool invalid () const
 
 LocalErrorBaseExtended ()
 
 LocalErrorBaseExtended (const AlgebraicSymMatrix44 &err)
 
 LocalErrorBaseExtended (const NullMatrix &)
 
 LocalErrorBaseExtended (InvalidError)
 
 LocalErrorBaseExtended (T c11, T c21, T c31, T c41, T c22, T c32, T c42, T c33, T c43, T c44)
 
const AlgebraicSymMatrix44matrix () const
 
LocalErrorBaseExtended operator+ (const LocalErrorBaseExtended &err) const
 
LocalErrorBaseExtended operator- (const LocalErrorBaseExtended &err) const
 
bool valid () const
 
 ~LocalErrorBaseExtended ()
 

Private Attributes

AlgebraicSymMatrix44 theCartesianError
 

Detailed Description

template<class T, class ErrorWeightType>
class LocalErrorBaseExtended< T, ErrorWeightType >

Definition at line 13 of file LocalErrorBaseExtended.h.

Constructor & Destructor Documentation

◆ LocalErrorBaseExtended() [1/5]

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( )
inline

◆ LocalErrorBaseExtended() [2/5]

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( const NullMatrix )
inline

Definition at line 20 of file LocalErrorBaseExtended.h.

20 {}

◆ LocalErrorBaseExtended() [3/5]

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( InvalidError  )
inline

Definition at line 22 of file LocalErrorBaseExtended.h.

22  {
23  theCartesianError[0][0] = -9999.e10f;
24  theCartesianError[0][1] = 0;
25  theCartesianError[1][1] = -9999.e10f;
26  theCartesianError[2][2] = -9999.e10f;
27  theCartesianError[1][2] = 0;
28  theCartesianError[1][3] = 0;
29  theCartesianError[2][3] = 0;
30  theCartesianError[3][3] = -9999.e10f;
31  }

◆ LocalErrorBaseExtended() [4/5]

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( T  c11,
T  c21,
T  c31,
T  c41,
T  c22,
T  c32,
T  c42,
T  c33,
T  c43,
T  c44 
)
inline

Constructor. The symmetric matrix stored as a lower triangular matrix

Definition at line 40 of file LocalErrorBaseExtended.h.

40  {
41  theCartesianError(0, 0) = c11;
42  theCartesianError(1, 0) = c21;
43  theCartesianError(2, 0) = c31;
44  theCartesianError(3, 0) = c41;
45 
46  theCartesianError(1, 1) = c22;
47  theCartesianError(2, 1) = c32;
48  theCartesianError(3, 1) = c42;
49 
50  theCartesianError(2, 2) = c33;
51  theCartesianError(3, 2) = c43;
52 
53  theCartesianError(3, 3) = c44;
54  }

◆ LocalErrorBaseExtended() [5/5]

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( const AlgebraicSymMatrix44 err)
inline

Definition at line 56 of file LocalErrorBaseExtended.h.

◆ ~LocalErrorBaseExtended()

template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::~LocalErrorBaseExtended ( )
inline

Definition at line 58 of file LocalErrorBaseExtended.h.

58 {}

Member Function Documentation

◆ cphixphix()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphixphix ( ) const
inline

Definition at line 74 of file LocalErrorBaseExtended.h.

74 { return theCartesianError(2, 2); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphixx()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphixx ( ) const
inline

Definition at line 64 of file LocalErrorBaseExtended.h.

64 { return theCartesianError(2, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphixy()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphixy ( ) const
inline

Definition at line 70 of file LocalErrorBaseExtended.h.

70 { return theCartesianError(2, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyphix()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyphix ( ) const
inline

Definition at line 76 of file LocalErrorBaseExtended.h.

76 { return theCartesianError(3, 2); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyphiy()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyphiy ( ) const
inline

Definition at line 78 of file LocalErrorBaseExtended.h.

78 { return theCartesianError(3, 3); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyx()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyx ( ) const
inline

Definition at line 66 of file LocalErrorBaseExtended.h.

66 { return theCartesianError(3, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyy()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyy ( ) const
inline

Definition at line 72 of file LocalErrorBaseExtended.h.

72 { return theCartesianError(3, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cxx()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cxx ( ) const
inline

Definition at line 60 of file LocalErrorBaseExtended.h.

60 { return theCartesianError(0, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cyx()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cyx ( ) const
inline

Definition at line 62 of file LocalErrorBaseExtended.h.

62 { return theCartesianError(1, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cyy()

template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cyy ( ) const
inline

Definition at line 68 of file LocalErrorBaseExtended.h.

68 { return theCartesianError(1, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ invalid()

template<class T, class ErrorWeightType>
bool LocalErrorBaseExtended< T, ErrorWeightType >::invalid ( ) const
inline

Definition at line 33 of file LocalErrorBaseExtended.h.

33 { return theCartesianError[0][0] < -1.e10f; }

Referenced by LocalErrorBaseExtended< double, ErrorMatrixTag >::valid().

◆ matrix()

template<class T, class ErrorWeightType>
const AlgebraicSymMatrix44& LocalErrorBaseExtended< T, ErrorWeightType >::matrix ( void  ) const
inline

Access method to the matrix, /return The SymMatrix

Definition at line 84 of file LocalErrorBaseExtended.h.

84 { return theCartesianError; }

◆ operator+()

template<class T, class ErrorWeightType>
LocalErrorBaseExtended LocalErrorBaseExtended< T, ErrorWeightType >::operator+ ( const LocalErrorBaseExtended< T, ErrorWeightType > &  err) const
inline

Definition at line 86 of file LocalErrorBaseExtended.h.

86  {
87  return LocalErrorBaseExtended(theCartesianError + err.theCartesianError);
88  }

◆ operator-()

template<class T, class ErrorWeightType>
LocalErrorBaseExtended LocalErrorBaseExtended< T, ErrorWeightType >::operator- ( const LocalErrorBaseExtended< T, ErrorWeightType > &  err) const
inline

Definition at line 89 of file LocalErrorBaseExtended.h.

89  {
90  return LocalErrorBaseExtended(theCartesianError - err.theCartesianError);
91  }

◆ valid()

template<class T, class ErrorWeightType>
bool LocalErrorBaseExtended< T, ErrorWeightType >::valid ( ) const
inline

Definition at line 34 of file LocalErrorBaseExtended.h.

34 { return !invalid(); }

Member Data Documentation

◆ theCartesianError

template<class T, class ErrorWeightType>
AlgebraicSymMatrix44 LocalErrorBaseExtended< T, ErrorWeightType >::theCartesianError
private
LocalErrorBaseExtended::LocalErrorBaseExtended
LocalErrorBaseExtended()
Definition: LocalErrorBaseExtended.h:18
LocalErrorBaseExtended::theCartesianError
AlgebraicSymMatrix44 theCartesianError
Definition: LocalErrorBaseExtended.h:94
runTheMatrix.err
err
Definition: runTheMatrix.py:288
LocalErrorBaseExtended::invalid
bool invalid() const
Definition: LocalErrorBaseExtended.h:33