Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
}
Likely.h
LocalTrajectoryError::theCovarianceMatrix
AlgebraicSymMatrix55 theCovarianceMatrix
Definition:
LocalTrajectoryError.h:86
UNLIKELY
#define UNLIKELY(x)
Definition:
Likely.h:21
LocalTrajectoryError.h
invertPosDefMatrix
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
Definition:
invertPosDefMatrix.h:10
PVValHelper::dy
Definition:
PVValidationHelpers.h:50
LocalTrajectoryError::LocalTrajectoryError
LocalTrajectoryError()
Definition:
LocalTrajectoryError.h:23
LocalTrajectoryError::theWeightMatrixPtr
std::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
Definition:
LocalTrajectoryError.h:87
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition:
AlgebraicROOTObjects.h:23
invertPosDefMatrix.h
PVValHelper::dx
Definition:
PVValidationHelpers.h:49
LocalTrajectoryError::weightMatrix
const AlgebraicSymMatrix55 & weightMatrix() const
Definition:
LocalTrajectoryError.cc:14
Generated for CMSSW Reference Manual by
1.8.16