ATLAS Offline Software
Loading...
Searching...
No Matches
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
12class ErrorMatrixPxPyPzM : private ErrorMatrixBase< ErrorMatrixPxPyPzM> {
13public:
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
const CLHEP::HepSymMatrix & hsm() const
const CLHEP::HepSymMatrix & impl() const
Index
Enumerator for error parameterization.
ErrorMatrixPxPyPzM()
Default constructor creates zeroed 4x4 matrix.
ErrorMatrixBase< ErrorMatrixPxPyPzM > Base