ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ErrorMatrixBase< Type > Class Template Reference

#include <ErrorMatrixBase.h>

Collaboration diagram for ErrorMatrixBase< Type >:

Classes

class  ErrorMatrixBase_row
 
class  ErrorMatrixBase_row_const
 

Public Member Functions

 ErrorMatrixBase ()
 
 ErrorMatrixBase (int dim)
 
 ErrorMatrixBase (const CLHEP::HepSymMatrix &mat)
 
int num_row () const
 
int num_col () const
 
const double & operator() (int row, int col) const
 The element access operator M(i,j) starts counting indeces from zero. More...
 
double & operator() (int row, int col)
 
const double & operator() (int diagElement) const
 The single argument versions return diagonal elements. More...
 
double & operator() (int diagElement)
 
const CLHEP::HepSymMatrix & hsm () const
 
ErrorMatrixBase_row operator[] (int)
 
ErrorMatrixBase_row_const operator[] (int) const
 

Protected Member Functions

const CLHEP::HepSymMatrix & impl () const
 
CLHEP::HepSymMatrix & impl ()
 

Private Attributes

CLHEP::HepSymMatrix m_matrix
 

Detailed Description

template<class Type>
class ErrorMatrixBase< Type >

Definition at line 11 of file ErrorMatrixBase.h.

Constructor & Destructor Documentation

◆ ErrorMatrixBase() [1/3]

template<class Type >
ErrorMatrixBase< Type >::ErrorMatrixBase ( )
inline

Definition at line 14 of file ErrorMatrixBase.h.

14 : m_matrix() {}

◆ ErrorMatrixBase() [2/3]

template<class Type >
ErrorMatrixBase< Type >::ErrorMatrixBase ( int  dim)
inline

Definition at line 15 of file ErrorMatrixBase.h.

15 : m_matrix(dim) {}

◆ ErrorMatrixBase() [3/3]

template<class Type >
ErrorMatrixBase< Type >::ErrorMatrixBase ( const CLHEP::HepSymMatrix &  mat)
inline

Definition at line 16 of file ErrorMatrixBase.h.

16 : m_matrix(mat) {}

Member Function Documentation

◆ hsm()

template<class Type >
const CLHEP::HepSymMatrix& ErrorMatrixBase< Type >::hsm ( ) const
inline

Definition at line 29 of file ErrorMatrixBase.h.

29 {return m_matrix;}

◆ impl() [1/2]

template<class Type >
CLHEP::HepSymMatrix& ErrorMatrixBase< Type >::impl ( )
inlineprotected

Definition at line 59 of file ErrorMatrixBase.h.

59 {return m_matrix;}

◆ impl() [2/2]

template<class Type >
const CLHEP::HepSymMatrix& ErrorMatrixBase< Type >::impl ( ) const
inlineprotected

Definition at line 58 of file ErrorMatrixBase.h.

58 {return m_matrix;}

◆ num_col()

template<class Type >
int ErrorMatrixBase< Type >::num_col ( ) const
inline

Definition at line 19 of file ErrorMatrixBase.h.

19 {return m_matrix.num_col();}

◆ num_row()

template<class Type >
int ErrorMatrixBase< Type >::num_row ( ) const
inline

Definition at line 18 of file ErrorMatrixBase.h.

18 {return m_matrix.num_row();}

◆ operator()() [1/4]

template<class Type >
double & ErrorMatrixBase< Type >::operator() ( int  diagElement)
inline

Definition at line 82 of file ErrorMatrixBase.h.

83 {
84  return m_matrix(diag+1,diag+1);
85 }

◆ operator()() [2/4]

template<class Type >
const double & ErrorMatrixBase< Type >::operator() ( int  diagElement) const
inline

The single argument versions return diagonal elements.

Definition at line 70 of file ErrorMatrixBase.h.

71 {
72  return m_matrix(diag+1,diag+1);
73 }

◆ operator()() [3/4]

template<class Type >
double & ErrorMatrixBase< Type >::operator() ( int  row,
int  col 
)
inline

Definition at line 76 of file ErrorMatrixBase.h.

77 {
78  return m_matrix(row+1,col+1);
79 }

◆ operator()() [4/4]

template<class Type >
const double & ErrorMatrixBase< Type >::operator() ( int  row,
int  col 
) const
inline

The element access operator M(i,j) starts counting indeces from zero.

Definition at line 64 of file ErrorMatrixBase.h.

65 {
66  return m_matrix(row+1,col+1);
67 }

◆ operator[]() [1/2]

template<class Type >
ErrorMatrixBase< Type >::ErrorMatrixBase_row ErrorMatrixBase< Type >::operator[] ( int  r)
inline

Definition at line 88 of file ErrorMatrixBase.h.

89 {
90  return ErrorMatrixBase_row(*this,r);
91 }

◆ operator[]() [2/2]

template<class Type >
ErrorMatrixBase< Type >::ErrorMatrixBase_row_const ErrorMatrixBase< Type >::operator[] ( int  r) const
inline

Definition at line 94 of file ErrorMatrixBase.h.

95 {
96  return ErrorMatrixBase_row_const(*this,r);
97 }

Member Data Documentation

◆ m_matrix

template<class Type >
CLHEP::HepSymMatrix ErrorMatrixBase< Type >::m_matrix
private

Definition at line 54 of file ErrorMatrixBase.h.


The documentation for this class was generated from the following file:
query_example.row
row
Definition: query_example.py:24
beamspotman.r
def r
Definition: beamspotman.py:676
yodamerge_tmp.dim
dim
Definition: yodamerge_tmp.py:239
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
ErrorMatrixBase::m_matrix
CLHEP::HepSymMatrix m_matrix
Definition: ErrorMatrixBase.h:54
query_example.col
col
Definition: query_example.py:7