CMS 3D CMS Logo

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 }
Likely.h
LocalTrajectoryError::theCovarianceMatrix
AlgebraicSymMatrix55 theCovarianceMatrix
Definition: LocalTrajectoryError.h:86
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
LocalTrajectoryError.h
invertPosDefMatrix
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
Definition: invertPosDefMatrix.h:10
PVValHelper::dy
Definition: PVValidationHelpers.h:50
LocalTrajectoryError::LocalTrajectoryError
LocalTrajectoryError()
Definition: LocalTrajectoryError.h:23
LocalTrajectoryError::theWeightMatrixPtr
std::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
Definition: LocalTrajectoryError.h:87
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition: AlgebraicROOTObjects.h:23
invertPosDefMatrix.h
PVValHelper::dx
Definition: PVValidationHelpers.h:49
LocalTrajectoryError::weightMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
Definition: LocalTrajectoryError.cc:14