CMS 3D CMS Logo

LocalTrajectoryError.cc
Go to the documentation of this file.
4 
5 
7 LocalTrajectoryError( float dx, float dy, float dxdir, float dydir,
8  float dpinv) : theCovarianceMatrix(), theWeightMatrixPtr()
9 {
10  theCovarianceMatrix(3,3) = dx*dx;
11  theCovarianceMatrix(4,4) = dy*dy;
12  theCovarianceMatrix(1,1) = dxdir*dxdir;
13  theCovarianceMatrix(2,2) = dydir*dydir;
14  theCovarianceMatrix(0,0) = dpinv*dpinv;
15 
16 }
17 
19  if UNLIKELY(theWeightMatrixPtr.get() == nullptr) {
22  }
23  return *theWeightMatrixPtr;
24 }
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
AlgebraicSymMatrix55 theCovarianceMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
#define UNLIKELY(x)
Definition: Likely.h:21
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr