CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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() == 0) {
22  }
23  return *theWeightMatrixPtr;
24 }
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
#define unlikely(x)
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
AlgebraicSymMatrix55 theCovarianceMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr