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

#include <ErrorMatrixPtEtaPhiM.h>

Inheritance diagram for ErrorMatrixPtEtaPhiM:
Collaboration diagram for ErrorMatrixPtEtaPhiM:

Public Types

enum  Index { ipt =0, ieta =1, iphi =2, im =3 }
 Enumerator for error parameterization. More...
 
typedef ErrorMatrixBase< ErrorMatrixPtEtaPhiMBase
 

Public Member Functions

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

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 ErrorMatrixPtEtaPhiM.h.

Member Typedef Documentation

◆ Base

Definition at line 15 of file ErrorMatrixPtEtaPhiM.h.

Member Enumeration Documentation

◆ Index

Enumerator for error parameterization.

Enumerator
ipt 
ieta 
iphi 
im 

Definition at line 18 of file ErrorMatrixPtEtaPhiM.h.

18 {ipt=0,ieta=1,iphi=2,im=3};

Constructor & Destructor Documentation

◆ ErrorMatrixPtEtaPhiM() [1/2]

ErrorMatrixPtEtaPhiM::ErrorMatrixPtEtaPhiM ( )

Default constructor creates zeroed 4x4 matrix.

Definition at line 8 of file ErrorMatrixPtEtaPhiM.cxx.

8  : Base(4)
9 {}

◆ ErrorMatrixPtEtaPhiM() [2/2]

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

Constructor from HepSymMatrix, checks dimension.

Definition at line 12 of file ErrorMatrixPtEtaPhiM.cxx.

12  :
13  Base(mat)
14 {}

Member Function Documentation

◆ hsm()

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

Definition at line 29 of file ErrorMatrixBase.h.

29 {return m_matrix;}

◆ impl() [1/2]

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

Definition at line 59 of file ErrorMatrixBase.h.

59 {return m_matrix;}

◆ impl() [2/2]

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

Definition at line 58 of file ErrorMatrixBase.h.

58 {return m_matrix;}

◆ num_col()

int ErrorMatrixBase< ErrorMatrixPtEtaPhiM >::num_col
inlineinherited

Definition at line 19 of file ErrorMatrixBase.h.

19 {return m_matrix.num_col();}

◆ num_row()

int ErrorMatrixBase< ErrorMatrixPtEtaPhiM >::num_row
inlineinherited

Definition at line 18 of file ErrorMatrixBase.h.

18 {return m_matrix.num_row();}

◆ operator()() [1/4]

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

Definition at line 49 of file ErrorMatrixBase.h.

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

◆ operator[]() [2/2]

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

Definition at line 50 of file ErrorMatrixBase.h.

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

Member Data Documentation

◆ m_matrix

CLHEP::HepSymMatrix ErrorMatrixBase< ErrorMatrixPtEtaPhiM >::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
ErrorMatrixPtEtaPhiM::iphi
@ iphi
Definition: ErrorMatrixPtEtaPhiM.h:18
ErrorMatrixBase< ErrorMatrixPtEtaPhiM >::m_matrix
CLHEP::HepSymMatrix m_matrix
Definition: ErrorMatrixBase.h:54
ErrorMatrixPtEtaPhiM::ipt
@ ipt
Definition: ErrorMatrixPtEtaPhiM.h:18
ErrorMatrixPtEtaPhiM::Base
ErrorMatrixBase< ErrorMatrixPtEtaPhiM > Base
Definition: ErrorMatrixPtEtaPhiM.h:15
ErrorMatrixPtEtaPhiM::im
@ im
Definition: ErrorMatrixPtEtaPhiM.h:18
query_example.col
col
Definition: query_example.py:7
ErrorMatrixPtEtaPhiM::ieta
@ ieta
Definition: ErrorMatrixPtEtaPhiM.h:18