ATLAS Offline Software
ErrorMatrixPxPyPzE.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 ErrorMatrixPxPyPzE_H
6 #define ErrorMatrixPxPyPzE_H
7 
9 
10 #include <cmath>
11 
12 class ErrorMatrixPxPyPzE : private ErrorMatrixBase< ErrorMatrixPxPyPzE> {
13 public:
14 
16 
18  enum Index {ipx=0,ipy=1,ipz=2,ie=3};
19 
22 
24  ErrorMatrixPxPyPzE( 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
ErrorMatrixPxPyPzE::Index
Index
Enumerator for error parameterization.
Definition: ErrorMatrixPxPyPzE.h:18
ErrorMatrixBase
Definition: ErrorMatrixBase.h:11
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:53
ErrorMatrixBase< ErrorMatrixPxPyPzE >::num_row
int num_row() const
Definition: ErrorMatrixBase.h:18
ErrorMatrixBase< ErrorMatrixPxPyPzE >::num_col
int num_col() const
Definition: ErrorMatrixBase.h:19
ErrorMatrixPxPyPzE
Definition: ErrorMatrixPxPyPzE.h:12
ErrorMatrixBase< ErrorMatrixPxPyPzE >::impl
const CLHEP::HepSymMatrix & impl() const
Definition: ErrorMatrixBase.h:58
ErrorMatrixPxPyPzE::ErrorMatrixPxPyPzE
ErrorMatrixPxPyPzE()
Default constructor creates zeroed 4x4 matrix.
Definition: ErrorMatrixPxPyPzE.cxx:8
ErrorMatrixBase.h
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
ErrorMatrixPxPyPzE::Base
ErrorMatrixBase< ErrorMatrixPxPyPzE > Base
Definition: ErrorMatrixPxPyPzE.h:15
ErrorMatrixBase< ErrorMatrixPxPyPzE >::hsm
const CLHEP::HepSymMatrix & hsm() const
Definition: ErrorMatrixBase.h:29
ErrorMatrixPxPyPzE::pxError
double pxError() const
Definition: ErrorMatrixPxPyPzE.h:31