CMS 3D CMS Logo

ExtendedPerigeeTrajectoryError.h
Go to the documentation of this file.
1 #ifndef ExtendedPerigeeTrajectoryError_H
2 #define ExtendedPerigeeTrajectoryError_H
3 
6 
8 public:
10 
12  : cov(covariance), weightAvailable(false), vl(true) {}
13 
18  bool isValid() const { return vl; }
19 
20  bool weightIsAvailable() const { return weightAvailable; }
21 
22  const AlgebraicSymMatrix66& covarianceMatrix() const { return cov; }
23 
25  error = 0;
26  if (!weightIsAvailable()) {
27  weight = cov.Inverse(error);
28  if (error != 0)
29  LogDebug("RecoVertex/ExtendedPerigeeTrajectoryError") << "unable to invert covariance matrix\n";
30  weightAvailable = true;
31  }
32  return weight;
33  }
34 
35 private:
38  mutable bool weightAvailable;
39  mutable bool vl;
40 };
41 #endif
ExtendedPerigeeTrajectoryError::vl
bool vl
Definition: ExtendedPerigeeTrajectoryError.h:39
MessageLogger.h
funct::false
false
Definition: Factorize.h:34
ExtendedPerigeeTrajectoryError::weightAvailable
bool weightAvailable
Definition: ExtendedPerigeeTrajectoryError.h:38
AlgebraicObjects.h
ExtendedPerigeeTrajectoryError::isValid
bool isValid() const
Definition: ExtendedPerigeeTrajectoryError.h:18
relativeConstraints.error
error
Definition: relativeConstraints.py:53
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError()
Definition: ExtendedPerigeeTrajectoryError.h:9
ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError
ExtendedPerigeeTrajectoryError(const AlgebraicSymMatrix66 &covariance)
Definition: ExtendedPerigeeTrajectoryError.h:11
AlgebraicSymMatrix66
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
Definition: AlgebraicROOTObjects.h:24
ExtendedPerigeeTrajectoryError::weightMatrix
const AlgebraicSymMatrix66 & weightMatrix(int &error) const
Definition: ExtendedPerigeeTrajectoryError.h:24
funct::true
true
Definition: Factorize.h:173
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
ExtendedPerigeeTrajectoryError
Definition: ExtendedPerigeeTrajectoryError.h:7
ExtendedPerigeeTrajectoryError::weight
AlgebraicSymMatrix66 weight
Definition: ExtendedPerigeeTrajectoryError.h:37
ExtendedPerigeeTrajectoryError::cov
AlgebraicSymMatrix66 cov
Definition: ExtendedPerigeeTrajectoryError.h:36
ExtendedPerigeeTrajectoryError::covarianceMatrix
const AlgebraicSymMatrix66 & covarianceMatrix() const
Definition: ExtendedPerigeeTrajectoryError.h:22
ExtendedPerigeeTrajectoryError::weightIsAvailable
bool weightIsAvailable() const
Definition: ExtendedPerigeeTrajectoryError.h:20
weight
Definition: weight.py:1