Main Page
Namespaces
Classes
Package Documentation
src
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
6
LocalTrajectoryError::
7
LocalTrajectoryError
(
float
dx
,
float
dy
,
float
dxdir,
float
dydir,
8
float
dpinv) : theCovarianceMatrix(), theWeightMatrixPtr()
9
{
10
theCovarianceMatrix
(3,3) = dx*
dx
;
11
theCovarianceMatrix
(4,4) = dy*
dy
;
12
theCovarianceMatrix
(1,1) = dxdir*dxdir;
13
theCovarianceMatrix
(2,2) = dydir*dydir;
14
theCovarianceMatrix
(0,0) = dpinv*dpinv;
15
16
}
17
18
const
AlgebraicSymMatrix55
&
LocalTrajectoryError::weightMatrix
()
const
{
19
if
UNLIKELY
(
theWeightMatrixPtr
.get() ==
nullptr
) {
20
theWeightMatrixPtr
.reset(
new
AlgebraicSymMatrix55
());
21
invertPosDefMatrix
(
theCovarianceMatrix
,*
theWeightMatrixPtr
);
22
}
23
return
*
theWeightMatrixPtr
;
24
}
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition:
AlgebraicROOTObjects.h:23
LocalTrajectoryError::LocalTrajectoryError
LocalTrajectoryError()
Definition:
LocalTrajectoryError.h:24
PVValHelper::dx
Definition:
PVValidationHelpers.h:44
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:89
invertPosDefMatrix.h
LocalTrajectoryError::weightMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
Definition:
LocalTrajectoryError.cc:18
PVValHelper::dy
Definition:
PVValidationHelpers.h:45
UNLIKELY
#define UNLIKELY(x)
Definition:
Likely.h:21
Likely.h
LocalTrajectoryError::theWeightMatrixPtr
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
Definition:
LocalTrajectoryError.h:90
LocalTrajectoryError.h
Generated for CMSSW Reference Manual by
1.8.11