test
CMS 3D CMS Logo

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

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

Definition at line 23 of file LocalErrorBaseExtended.h.

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

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

Definition at line 62 of file LocalErrorBaseExtended.h.

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

Definition at line 65 of file LocalErrorBaseExtended.h.

65 {}

Member Function Documentation

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

Definition at line 95 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 75 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 87 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 99 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 103 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 79 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 91 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 67 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 71 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 83 of file LocalErrorBaseExtended.h.

Referenced by MuonTransientTrackingRecHit::parametersError().

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

Definition at line 34 of file LocalErrorBaseExtended.h.

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

34 { 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 111 of file LocalErrorBaseExtended.h.

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

Definition at line 115 of file LocalErrorBaseExtended.h.

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

Definition at line 118 of file LocalErrorBaseExtended.h.

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

Definition at line 35 of file LocalErrorBaseExtended.h.

35 { return !invalid();}

Member Data Documentation

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