CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PerigeeTrajectoryError.h
Go to the documentation of this file.
1 #ifndef PerigeeTrajectoryError_H
2 #define PerigeeTrajectoryError_H
3 
6 
15 {
16 
17 public:
18 
21 
23  thePerigeeError(asSMatrix<5>(aPerigeeError)), weightIsAvailable(false) {}
24 
26  thePerigeeError(aPerigeeError), weightIsAvailable(false) {
27 
28  }
29 
30 
37 
38 
45  error = inverseError;
47  }
54  {
56  error = inverseError;
57  return thePerigeeWeight;
58  }
59 
60  void calculateWeightMatrix() const;
61 
62  double transverseCurvatureError() const {return sqrt(thePerigeeError(0,0));}
63 
68  double thetaError() const {return sqrt(thePerigeeError(1,1));}
69 
74  double phiError() const {return sqrt(thePerigeeError(2,2));}
75 
80  double transverseImpactParameterError() const {return sqrt(thePerigeeError(3,3));}
81 
86  double longitudinalImpactParameterError() const {return sqrt(thePerigeeError(4,4));}
87 
88 
89 private:
92  mutable int inverseError;
93  mutable bool weightIsAvailable;
94 
95 };
96 #endif
AlgebraicSymMatrix55 thePerigeeWeight
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:49
double longitudinalImpactParameterError() const
const AlgebraicSymMatrix weightMatrix_old(int &error) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
T sqrt(T t)
Definition: SSEVec.h:28
PerigeeTrajectoryError(const AlgebraicSymMatrix55 &aPerigeeError)
double transverseImpactParameterError() const
const AlgebraicSymMatrix55 & covarianceMatrix() const
const AlgebraicSymMatrix55 & weightMatrix(int &error) const
PerigeeTrajectoryError(AlgebraicSymMatrix aPerigeeError)
AlgebraicSymMatrix55 thePerigeeError
const AlgebraicSymMatrix covarianceMatrix_old() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
double transverseCurvatureError() const
ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > asSMatrix(const CLHEP::HepMatrix &m)
Definition: Migration.h:25