CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LocalTrajectoryError.cc
Go to the documentation of this file.
4 
5 LocalTrajectoryError::LocalTrajectoryError(float dx, float dy, float dxdir, float dydir, float dpinv)
6  : theCovarianceMatrix(), theWeightMatrixPtr() {
7  theCovarianceMatrix(3, 3) = dx * dx;
8  theCovarianceMatrix(4, 4) = dy * dy;
9  theCovarianceMatrix(1, 1) = dxdir * dxdir;
10  theCovarianceMatrix(2, 2) = dydir * dydir;
11  theCovarianceMatrix(0, 0) = dpinv * dpinv;
12 }
13 
15  if UNLIKELY (theWeightMatrixPtr.get() == nullptr) {
18  }
19  return *theWeightMatrixPtr;
20 }
std::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
AlgebraicSymMatrix55 theCovarianceMatrix
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
const AlgebraicSymMatrix55 & weightMatrix() const
#define UNLIKELY(x)
Definition: Likely.h:21