ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ErrorMatrixPxPyPzM Class Reference

#include <ErrorMatrixPxPyPzM.h>

Inheritance diagram for ErrorMatrixPxPyPzM:
Collaboration diagram for ErrorMatrixPxPyPzM:

Public Types

enum  Index { ipx =0, ipy =1, ipz =2, ie =3 }
 Enumerator for error parameterization. More...
 
typedef ErrorMatrixBase< ErrorMatrixPxPyPzMBase
 

Public Member Functions

 ErrorMatrixPxPyPzM ()
 Default constructor creates zeroed 4x4 matrix. More...
 
 ErrorMatrixPxPyPzM (const CLHEP::HepSymMatrix &mat)
 Constructor from HepSymMatrix, checks dimension. More...
 
double pxError () const
 

Private Member Functions

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
 
const CLHEP::HepSymMatrix & impl () const
 
CLHEP::HepSymMatrix & impl ()
 

Private Attributes

CLHEP::HepSymMatrix m_matrix
 

Detailed Description

Definition at line 12 of file ErrorMatrixPxPyPzM.h.

Member Typedef Documentation

◆ Base

Definition at line 15 of file ErrorMatrixPxPyPzM.h.

Member Enumeration Documentation

◆ Index

Enumerator for error parameterization.

Enumerator
ipx 
ipy 
ipz 
ie 

Definition at line 18 of file ErrorMatrixPxPyPzM.h.

18 {ipx=0,ipy=1,ipz=2,ie=3};

Constructor & Destructor Documentation

◆ ErrorMatrixPxPyPzM() [1/2]

ErrorMatrixPxPyPzM::ErrorMatrixPxPyPzM ( )

Default constructor creates zeroed 4x4 matrix.

Definition at line 8 of file ErrorMatrixPxPyPzM.cxx.

8  : Base(4)
9 {}

◆ ErrorMatrixPxPyPzM() [2/2]

ErrorMatrixPxPyPzM::ErrorMatrixPxPyPzM ( const CLHEP::HepSymMatrix &  mat)

Constructor from HepSymMatrix, checks dimension.

Definition at line 12 of file ErrorMatrixPxPyPzM.cxx.

12  :
13  Base(mat)
14 {}

Member Function Documentation

◆ hsm()

const CLHEP::HepSymMatrix& ErrorMatrixBase< ErrorMatrixPxPyPzM >::hsm
inlineinherited

Definition at line 29 of file ErrorMatrixBase.h.

29 {return m_matrix;}

◆ impl() [1/2]

CLHEP::HepSymMatrix& ErrorMatrixBase< ErrorMatrixPxPyPzM >::impl
inlineprotectedinherited

Definition at line 59 of file ErrorMatrixBase.h.

59 {return m_matrix;}

◆ impl() [2/2]

const CLHEP::HepSymMatrix& ErrorMatrixBase< ErrorMatrixPxPyPzM >::impl
inlineprotectedinherited

Definition at line 58 of file ErrorMatrixBase.h.

58 {return m_matrix;}

◆ num_col()

int ErrorMatrixBase< ErrorMatrixPxPyPzM >::num_col
inlineinherited

Definition at line 19 of file ErrorMatrixBase.h.

19 {return m_matrix.num_col();}

◆ num_row()

int ErrorMatrixBase< ErrorMatrixPxPyPzM >::num_row
inlineinherited

Definition at line 18 of file ErrorMatrixBase.h.

18 {return m_matrix.num_row();}

◆ operator()() [1/4]

double & ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator() ( int  diagElement)
inlineinherited

Definition at line 27 of file ErrorMatrixBase.h.

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

◆ operator()() [2/4]

const double & ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator() ( int  diagElement) const
inlineinherited

The single argument versions return diagonal elements.

Definition at line 26 of file ErrorMatrixBase.h.

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

◆ operator()() [3/4]

double & ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator() ( int  row,
int  col 
)
inlineinherited

Definition at line 23 of file ErrorMatrixBase.h.

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

◆ operator()() [4/4]

const double & ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator() ( int  row,
int  col 
) const
inlineinherited

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

Definition at line 22 of file ErrorMatrixBase.h.

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

◆ operator[]() [1/2]

ErrorMatrixBase< ErrorMatrixPxPyPzM >::ErrorMatrixBase_row ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator[] ( int  r)
inlineinherited

Definition at line 49 of file ErrorMatrixBase.h.

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

◆ operator[]() [2/2]

ErrorMatrixBase< ErrorMatrixPxPyPzM >::ErrorMatrixBase_row_const ErrorMatrixBase< ErrorMatrixPxPyPzM >::operator[] ( int  r) const
inlineinherited

Definition at line 50 of file ErrorMatrixBase.h.

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

◆ pxError()

double ErrorMatrixPxPyPzM::pxError ( ) const
inline

Definition at line 31 of file ErrorMatrixPxPyPzM.h.

31  {
32  return std::sqrt( impl()(ipx,ipx));
33  }

Member Data Documentation

◆ m_matrix

CLHEP::HepSymMatrix ErrorMatrixBase< ErrorMatrixPxPyPzM >::m_matrix
privateinherited

Definition at line 54 of file ErrorMatrixBase.h.


The documentation for this class was generated from the following files:
query_example.row
row
Definition: query_example.py:24
beamspotman.r
def r
Definition: beamspotman.py:676
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
ErrorMatrixPxPyPzM::Base
ErrorMatrixBase< ErrorMatrixPxPyPzM > Base
Definition: ErrorMatrixPxPyPzM.h:15
ErrorMatrixPxPyPzM::ipy
@ ipy
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixBase< ErrorMatrixPxPyPzM >::m_matrix
CLHEP::HepSymMatrix m_matrix
Definition: ErrorMatrixBase.h:54
ErrorMatrixBase< ErrorMatrixPxPyPzM >::impl
const CLHEP::HepSymMatrix & impl() const
Definition: ErrorMatrixBase.h:58
ErrorMatrixPxPyPzM::ipz
@ ipz
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixPxPyPzM::ipx
@ ipx
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixPxPyPzM::ie
@ ie
Definition: ErrorMatrixPxPyPzM.h:18
query_example.col
col
Definition: query_example.py:7