CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 12 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 19 of file LocalErrorBaseExtended.h.

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

Definition at line 21 of file LocalErrorBaseExtended.h.

21  {
22  theCartesianError[0][0] = -9999.e10f;
23  theCartesianError[0][1] = 0;
24  theCartesianError[1][1] = -9999.e10f;
25  theCartesianError[2][2] = -9999.e10f;
26  theCartesianError[1][2] = 0;
27  theCartesianError[1][3] = 0;
28  theCartesianError[2][3] = 0;
29  theCartesianError[3][3] = -9999.e10f;
30  }
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 39 of file LocalErrorBaseExtended.h.

39  {
40  theCartesianError(0, 0) = c11;
41  theCartesianError(1, 0) = c21;
42  theCartesianError(2, 0) = c31;
43  theCartesianError(3, 0) = c41;
44 
45  theCartesianError(1, 1) = c22;
46  theCartesianError(2, 1) = c32;
47  theCartesianError(3, 1) = c42;
48 
49  theCartesianError(2, 2) = c33;
50  theCartesianError(3, 2) = c43;
51 
52  theCartesianError(3, 3) = c44;
53  }
AlgebraicSymMatrix44 theCartesianError
template<class T, class ErrorWeightType>
LocalErrorBaseExtended< T, ErrorWeightType >::LocalErrorBaseExtended ( const AlgebraicSymMatrix44 err)
inline

Definition at line 55 of file LocalErrorBaseExtended.h.

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

Definition at line 57 of file LocalErrorBaseExtended.h.

57 {}

Member Function Documentation

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

Definition at line 73 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 63 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 69 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 75 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 77 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 65 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 71 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 59 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 61 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 67 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 32 of file LocalErrorBaseExtended.h.

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

32 { 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 83 of file LocalErrorBaseExtended.h.

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

Definition at line 85 of file LocalErrorBaseExtended.h.

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

Definition at line 88 of file LocalErrorBaseExtended.h.

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

Definition at line 33 of file LocalErrorBaseExtended.h.

33 { return !invalid(); }

Member Data Documentation

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