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 12 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 19 of file LocalErrorBaseExtended.h.

19 {}

◆ LocalErrorBaseExtended() [3/5]

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  }

◆ 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 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  }

◆ LocalErrorBaseExtended() [5/5]

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

Definition at line 55 of file LocalErrorBaseExtended.h.

◆ ~LocalErrorBaseExtended()

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

Definition at line 57 of file LocalErrorBaseExtended.h.

57 {}

Member Function Documentation

◆ cphixphix()

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

Definition at line 73 of file LocalErrorBaseExtended.h.

73 { return theCartesianError(2, 2); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphixx()

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

Definition at line 63 of file LocalErrorBaseExtended.h.

63 { return theCartesianError(2, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphixy()

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

Definition at line 69 of file LocalErrorBaseExtended.h.

69 { return theCartesianError(2, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyphix()

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

Definition at line 75 of file LocalErrorBaseExtended.h.

75 { return theCartesianError(3, 2); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyphiy()

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

Definition at line 77 of file LocalErrorBaseExtended.h.

77 { return theCartesianError(3, 3); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyx()

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

Definition at line 65 of file LocalErrorBaseExtended.h.

65 { return theCartesianError(3, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cphiyy()

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

Definition at line 71 of file LocalErrorBaseExtended.h.

71 { return theCartesianError(3, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cxx()

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

Definition at line 59 of file LocalErrorBaseExtended.h.

59 { return theCartesianError(0, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cyx()

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

Definition at line 61 of file LocalErrorBaseExtended.h.

61 { return theCartesianError(1, 0); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ cyy()

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

Definition at line 67 of file LocalErrorBaseExtended.h.

67 { return theCartesianError(1, 1); }

Referenced by MuonTransientTrackingRecHit::parametersError().

◆ invalid()

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

Definition at line 32 of file LocalErrorBaseExtended.h.

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

83 { return theCartesianError; }

◆ operator+()

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.

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

◆ operator-()

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.

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

◆ valid()

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

◆ theCartesianError

template<class T, class ErrorWeightType>
AlgebraicSymMatrix44 LocalErrorBaseExtended< T, ErrorWeightType >::theCartesianError
private
LocalErrorBaseExtended::LocalErrorBaseExtended
LocalErrorBaseExtended()
Definition: LocalErrorBaseExtended.h:17
LocalErrorBaseExtended::theCartesianError
AlgebraicSymMatrix44 theCartesianError
Definition: LocalErrorBaseExtended.h:93
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
LocalErrorBaseExtended::invalid
bool invalid() const
Definition: LocalErrorBaseExtended.h:32