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 NullMatrix &)
 
 LocalErrorBaseExtended (InvalidError)
 
 LocalErrorBaseExtended (T c11, T c21, T c31, T c41, T c22, T c32, T c42, T c33, T c43, T c44)
 
 LocalErrorBaseExtended (const AlgebraicSymMatrix44 &err)
 
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

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

Definition at line 22 of file LocalErrorBaseExtended.h.

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

Definition at line 24 of file LocalErrorBaseExtended.h.

24  {
25  theCartesianError[0][0] = -9999.e10f;
26  theCartesianError[0][1] = 0;
27  theCartesianError[1][1] = -9999.e10f;
28  theCartesianError[2][2] = -9999.e10f;
29  theCartesianError[1][2] = 0;
30  theCartesianError[1][3] = 0;
31  theCartesianError[2][3] = 0;
32  theCartesianError[3][3] = -9999.e10f;
33  }
AlgebraicSymMatrix44 theCartesianError
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 43 of file LocalErrorBaseExtended.h.

46  {
47  theCartesianError(0,0)=c11;
48  theCartesianError(1,0)=c21;
49  theCartesianError(2,0)=c31;
50  theCartesianError(3,0)=c41;
51 
52  theCartesianError(1,1)=c22;
53  theCartesianError(2,1)=c32;
54  theCartesianError(3,1)=c42;
55 
56  theCartesianError(2,2)=c33;
57  theCartesianError(3,2)=c43;
58 
59  theCartesianError(3,3)=c44;
60 
61  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( const AlgebraicSymMatrix44 err)
inline

Definition at line 63 of file LocalErrorBaseExtended.h.

63  :
64  theCartesianError(err) { }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::~LocalErrorBaseExtended ( )
inline

Definition at line 66 of file LocalErrorBaseExtended.h.

66 {}

Member Function Documentation

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

Definition at line 96 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

96  {
97  return theCartesianError(2,2);
98  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphixx ( ) const
inline

Definition at line 76 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

76  {
77  return theCartesianError(2,0);
78  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphixy ( ) const
inline

Definition at line 88 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

88  {
89  return theCartesianError(2,1);
90  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyphix ( ) const
inline

Definition at line 100 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

100  {
101  return theCartesianError(3,2);
102  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyphiy ( ) const
inline

Definition at line 104 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

104  {
105  return theCartesianError(3,3);
106  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyx ( ) const
inline

Definition at line 80 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

80  {
81  return theCartesianError(3,0);
82  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cphiyy ( ) const
inline

Definition at line 92 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

92  {
93  return theCartesianError(3,1);
94  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cxx ( ) const
inline

Definition at line 68 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

68  {
69  return theCartesianError(0,0);
70  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cyx ( ) const
inline

Definition at line 72 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

72  {
73  return theCartesianError(1,0);
74  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
T LocalErrorBaseExtended< T, ErrorWeightType >::cyy ( ) const
inline

Definition at line 84 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

84  {
85  return theCartesianError(1,1);
86  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
bool LocalErrorBaseExtended< T, ErrorWeightType >::invalid ( ) const
inline

Definition at line 35 of file LocalErrorBaseExtended.h.

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

35 { return theCartesianError[0][0] <-1.e10f;}
AlgebraicSymMatrix44 theCartesianError
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 112 of file LocalErrorBaseExtended.h.

112  {
113  return theCartesianError;
114  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
LocalErrorBaseExtended LocalErrorBaseExtended< T, ErrorWeightType >::operator+ ( const LocalErrorBaseExtended< T, ErrorWeightType > &  err) const
inline

Definition at line 116 of file LocalErrorBaseExtended.h.

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

Definition at line 119 of file LocalErrorBaseExtended.h.

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

Definition at line 36 of file LocalErrorBaseExtended.h.

36 { return !invalid();}

Member Data Documentation

template<class T, class ErrorWeightType>
AlgebraicSymMatrix44 LocalErrorBaseExtended< T, ErrorWeightType >::theCartesianError
private