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.
3 
5 
7 
9  theCovarianceMatrix(aCovarianceMatrix), theWeightMatrixPtr() { }
10 
12  theCovarianceMatrix(asSMatrix<5>(aCovarianceMatrix)), theWeightMatrixPtr() {}
13 
14 
16 LocalTrajectoryError( float dx, float dy, float dxdir, float dydir,
17  float dpinv) : theCovarianceMatrix(), theWeightMatrixPtr()
18 {
19  theCovarianceMatrix(3,3) = dx*dx;
20  theCovarianceMatrix(4,4) = dy*dy;
21  theCovarianceMatrix(1,1) = dxdir*dxdir;
22  theCovarianceMatrix(2,2) = dydir*dydir;
23  theCovarianceMatrix(0,0) = dpinv*dpinv;
24 
25 }
26 
28  if (theWeightMatrixPtr.get() == 0) {
31  }
32  return *theWeightMatrixPtr;
33 }
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
CLHEP::HepSymMatrix AlgebraicSymMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > asSMatrix(const CLHEP::HepMatrix &m)
Definition: Migration.h:25