1 #ifndef GlobalErrorType_H
2 #define GlobalErrorType_H
24 template <
class T,
class ErrorWeightType>
140 T x2 = aPoint.
x() * aPoint.
x();
141 T y2 = aPoint.
y() * aPoint.
y();
142 T xy = aPoint.
x() * aPoint.
y();
144 return std::max<T>(0, (1. /
r2) * (x2 *
cxx() + 2. * xy *
cyx() + y2 *
cyy()));
146 return 0.5 * (
cxx() +
cyy());
151 T x2 = aPoint.
x() * aPoint.
x();
152 T y2 = aPoint.
y() * aPoint.
y();
153 T xy = aPoint.
x() * aPoint.
y();
155 return std::max<T>(0, (1. / (r2 *
r2)) * (y2 *
cxx() - 2. * xy *
cyx() + x2 *
cyy()));
GlobalErrorBase operator-(const GlobalErrorBase &err) const
GlobalErrorBase(T c11, T c21, T c22, T c31, T c32, T c33, T c41, T c42, T c43, T c44)
AlgebraicSymMatrix44 theCartesianError
const AlgebraicSymMatrix33 matrix() const
const AlgebraicSymMatrix44 & matrix4D() const
T phierr(const GlobalPoint &aPoint) const
GlobalErrorBase(const NullMatrix &)
Tag to request a null error matrix.
ROOT::Math::SMatrix< double, 4, 4, ROOT::Math::MatRepSym< double, 4 > > AlgebraicSymMatrix44
GlobalErrorBase operator+(const GlobalErrorBase &err) const
GlobalErrorBase(const AlgebraicSymMatrix33 &err)
Basic2DVector< T > xy() const
GlobalErrorBase(T c11, T c21, T c22, T c31, T c32, T c33)
T rerr(const GlobalPoint &aPoint) const
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
GlobalErrorBase(const AlgebraicSymMatrix44 &err)