Main Page
Namespaces
Classes
Package Documentation
TrackingTools
TrajectoryParametrization
src
LocalTrajectoryError.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TrajectoryParametrization/interface/LocalTrajectoryError.h
"
2
#include "
DataFormats/Math/interface/invertPosDefMatrix.h
"
3
#include "
FWCore/Utilities/interface/Likely.h
"
4
5
LocalTrajectoryError::LocalTrajectoryError
(
float
dx
,
float
dy
,
float
dxdir,
float
dydir,
float
dpinv)
6
: theCovarianceMatrix(), theWeightMatrixPtr() {
7
theCovarianceMatrix
(3, 3) = dx *
dx
;
8
theCovarianceMatrix
(4, 4) = dy *
dy
;
9
theCovarianceMatrix
(1, 1) = dxdir * dxdir;
10
theCovarianceMatrix
(2, 2) = dydir * dydir;
11
theCovarianceMatrix
(0, 0) = dpinv * dpinv;
12
}
13
14
const
AlgebraicSymMatrix55
&
LocalTrajectoryError::weightMatrix
()
const
{
15
if
16
UNLIKELY
(
theWeightMatrixPtr
.get() ==
nullptr
) {
17
theWeightMatrixPtr
.reset(
new
AlgebraicSymMatrix55
());
18
invertPosDefMatrix
(
theCovarianceMatrix
, *
theWeightMatrixPtr
);
19
}
20
return
*
theWeightMatrixPtr
;
21
}
LocalTrajectoryError::LocalTrajectoryError
LocalTrajectoryError()
Definition:
LocalTrajectoryError.h:23
PVValHelper::dx
Definition:
PVValidationHelpers.h:48
LocalTrajectoryError::theWeightMatrixPtr
std::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
Definition:
LocalTrajectoryError.h:87
invertPosDefMatrix
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
Definition:
invertPosDefMatrix.h:10
LocalTrajectoryError::theCovarianceMatrix
AlgebraicSymMatrix55 theCovarianceMatrix
Definition:
LocalTrajectoryError.h:86
invertPosDefMatrix.h
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition:
AlgebraicROOTObjects.h:23
LocalTrajectoryError::weightMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
Definition:
LocalTrajectoryError.cc:14
PVValHelper::dy
Definition:
PVValidationHelpers.h:49
UNLIKELY
#define UNLIKELY(x)
Definition:
Likely.h:21
Likely.h
LocalTrajectoryError.h
Generated for CMSSW Reference Manual by
1.8.11