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

#include <ErrorMatrixPxPyPzE.h>

Inheritance diagram for ErrorMatrixPxPyPzE:
Collaboration diagram for ErrorMatrixPxPyPzE:

Public Types

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

Public Member Functions

 ErrorMatrixPxPyPzE ()
 Default constructor creates zeroed 4x4 matrix. More...
 
 ErrorMatrixPxPyPzE (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 ErrorMatrixPxPyPzE.h.

Member Typedef Documentation

◆ Base

Definition at line 15 of file ErrorMatrixPxPyPzE.h.

Member Enumeration Documentation

◆ Index

Enumerator for error parameterization.

Enumerator
ipx 
ipy 
ipz 
ie 

Definition at line 18 of file ErrorMatrixPxPyPzE.h.

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

Constructor & Destructor Documentation

◆ ErrorMatrixPxPyPzE() [1/2]

ErrorMatrixPxPyPzE::ErrorMatrixPxPyPzE ( )

Default constructor creates zeroed 4x4 matrix.

Definition at line 8 of file ErrorMatrixPxPyPzE.cxx.

8  : Base(4)
9 {}

◆ ErrorMatrixPxPyPzE() [2/2]

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

Constructor from HepSymMatrix, checks dimension.

Definition at line 12 of file ErrorMatrixPxPyPzE.cxx.

12  :
13  Base(mat)
14 {}

Member Function Documentation

◆ hsm()

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

Definition at line 29 of file ErrorMatrixBase.h.

29 {return m_matrix;}

◆ impl() [1/2]

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

Definition at line 59 of file ErrorMatrixBase.h.

59 {return m_matrix;}

◆ impl() [2/2]

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

Definition at line 58 of file ErrorMatrixBase.h.

58 {return m_matrix;}

◆ num_col()

int ErrorMatrixBase< ErrorMatrixPxPyPzE >::num_col
inlineinherited

Definition at line 19 of file ErrorMatrixBase.h.

19 {return m_matrix.num_col();}

◆ num_row()

int ErrorMatrixBase< ErrorMatrixPxPyPzE >::num_row
inlineinherited

Definition at line 18 of file ErrorMatrixBase.h.

18 {return m_matrix.num_row();}

◆ operator()() [1/4]

double & ErrorMatrixBase< ErrorMatrixPxPyPzE >::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< ErrorMatrixPxPyPzE >::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< ErrorMatrixPxPyPzE >::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< ErrorMatrixPxPyPzE >::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< ErrorMatrixPxPyPzE >::ErrorMatrixBase_row ErrorMatrixBase< ErrorMatrixPxPyPzE >::operator[] ( int  r)
inlineinherited

Definition at line 49 of file ErrorMatrixBase.h.

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

◆ operator[]() [2/2]

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

Definition at line 50 of file ErrorMatrixBase.h.

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

◆ pxError()

double ErrorMatrixPxPyPzE::pxError ( ) const
inline

Definition at line 31 of file ErrorMatrixPxPyPzE.h.

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

Member Data Documentation

◆ m_matrix

CLHEP::HepSymMatrix ErrorMatrixBase< ErrorMatrixPxPyPzE >::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
ErrorMatrixBase< ErrorMatrixPxPyPzE >::m_matrix
CLHEP::HepSymMatrix m_matrix
Definition: ErrorMatrixBase.h:54
ErrorMatrixBase< ErrorMatrixPxPyPzE >::impl
const CLHEP::HepSymMatrix & impl() const
Definition: ErrorMatrixBase.h:58
ErrorMatrixPxPyPzE::ipz
@ ipz
Definition: ErrorMatrixPxPyPzE.h:18
ErrorMatrixPxPyPzE::ipx
@ ipx
Definition: ErrorMatrixPxPyPzE.h:18
ErrorMatrixPxPyPzE::ipy
@ ipy
Definition: ErrorMatrixPxPyPzE.h:18
ErrorMatrixPxPyPzE::ie
@ ie
Definition: ErrorMatrixPxPyPzE.h:18
query_example.col
col
Definition: query_example.py:7
ErrorMatrixPxPyPzE::Base
ErrorMatrixBase< ErrorMatrixPxPyPzE > Base
Definition: ErrorMatrixPxPyPzE.h:15