1 #ifndef GlobalErrorType_H
2 #define GlobalErrorType_H
25 template <
class T,
class ErrorWeightType>
103 T x2 = aPoint.
x()*aPoint.
x();
104 T y2 = aPoint.
y()*aPoint.
y();
105 T xy = aPoint.
x()*aPoint.
y();
107 return std::max<T>(0, (1./
r2)*(x2*
cxx() + 2.*xy*
cyx() + y2*
cyy()));
109 return 0.5*(
cxx() +
cyy());
114 T x2 = aPoint.
x()*aPoint.
x();
115 T y2 = aPoint.
y()*aPoint.
y();
116 T xy = aPoint.
x()*aPoint.
y();
118 return std::max<T>(0, (1./(r2*
r2))*(y2*
cxx() - 2.*xy*
cyx() + x2*
cyy()));
AlgebraicSymMatrix33 theCartesianError
GlobalErrorBase operator-(const GlobalErrorBase &err) const
const AlgebraicSymMatrix33 & matrix() const
const AlgebraicSymMatrix33 & matrix_new() const
T phierr(const GlobalPoint &aPoint) const
GlobalErrorBase(const NullMatrix &)
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Tag to request a null error matrix.
GlobalErrorBase operator+(const GlobalErrorBase &err) const
GlobalErrorBase(const AlgebraicSymMatrix33 &err)
GlobalErrorBase(T c11, T c21, T c22, T c31, T c32, T c33)
T rerr(const GlobalPoint &aPoint) const