CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LocalTrajectoryError.h
Go to the documentation of this file.
1 #ifndef _TRACKER_LOCALTRAJECTORYERROR_H_
2 #define _TRACKER_LOCALTRAJECTORYERROR_H_
3 
6 
7 #include <boost/shared_ptr.hpp>
8 
22 public:
23  // construct
25  // destruct
27 
32  LocalTrajectoryError(const AlgebraicSymMatrix55& aCovarianceMatrix);
33 
34  LocalTrajectoryError(const AlgebraicSymMatrix& aCovarianceMatrix);
35 
42  LocalTrajectoryError( float dx, float dy, float dxdir, float dydir,
43  float dpinv);
44 
45 // access
46 
50  const AlgebraicSymMatrix55 &matrix() const {
51  return theCovarianceMatrix;
52  }
53 
59  }
60 
61  const AlgebraicSymMatrix55 &weightMatrix() const;
62 
63 
68  theCovarianceMatrix *= factor;
69  if ((theWeightMatrixPtr.get() != 0) && (factor != 0.0)) { (*theWeightMatrixPtr) /= factor; }
70  return *this;
71  }
72 
79  theCovarianceMatrix(4,4));
80  }
81 
82 private:
84  mutable boost::shared_ptr<AlgebraicSymMatrix55> theWeightMatrixPtr;
85 };
86 
87 #endif
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:49
LocalTrajectoryError & operator*=(double factor)
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
LocalError positionError() const
const AlgebraicSymMatrix matrix_old() const
const AlgebraicSymMatrix55 & matrix() const
AlgebraicSymMatrix55 theCovarianceMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr