ATLAS Offline Software
ErrorMatrixPxPyPzM.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ErrorMatrixPxPyPzM_H
6 #define ErrorMatrixPxPyPzM_H
7 
9 
10 #include <cmath>
11 
12 class ErrorMatrixPxPyPzM : private ErrorMatrixBase< ErrorMatrixPxPyPzM> {
13 public:
14 
16 
18  enum Index {ipx=0,ipy=1,ipz=2,ie=3};
19 
22 
24  ErrorMatrixPxPyPzM( const CLHEP::HepSymMatrix& mat);
25 
26  using Base::operator();
27  using Base::hsm;
28  using Base::num_row;
29  using Base::num_col;
30 
31  double pxError() const {
32  return std::sqrt( impl()(ipx,ipx));
33  }
34 
35 
36 };
37 
38 #endif
ErrorMatrixPxPyPzM::pxError
double pxError() const
Definition: ErrorMatrixPxPyPzM.h:31
ErrorMatrixBase
Definition: ErrorMatrixBase.h:11
ErrorMatrixPxPyPzM::ErrorMatrixPxPyPzM
ErrorMatrixPxPyPzM()
Default constructor creates zeroed 4x4 matrix.
Definition: ErrorMatrixPxPyPzM.cxx:8
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:53
ErrorMatrixPxPyPzM::Base
ErrorMatrixBase< ErrorMatrixPxPyPzM > Base
Definition: ErrorMatrixPxPyPzM.h:15
ErrorMatrixBase< ErrorMatrixPxPyPzM >::num_row
int num_row() const
Definition: ErrorMatrixBase.h:18
ErrorMatrixBase< ErrorMatrixPxPyPzM >::num_col
int num_col() const
Definition: ErrorMatrixBase.h:19
ErrorMatrixPxPyPzM::ipy
@ ipy
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixBase< ErrorMatrixPxPyPzM >::impl
const CLHEP::HepSymMatrix & impl() const
Definition: ErrorMatrixBase.h:58
ErrorMatrixPxPyPzM::ipz
@ ipz
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixPxPyPzM::Index
Index
Enumerator for error parameterization.
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixBase.h
ErrorMatrixPxPyPzM::ipx
@ ipx
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixPxPyPzM
Definition: ErrorMatrixPxPyPzM.h:12
ErrorMatrixPxPyPzM::ie
@ ie
Definition: ErrorMatrixPxPyPzM.h:18
ErrorMatrixBase< ErrorMatrixPxPyPzM >::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition: ErrorMatrixBase.h:29