Main Page
Namespaces
Classes
Package Documentation
DataFormats
TrackReco
src
TrackExtra.cc
Go to the documentation of this file.
1
#include "
DataFormats/TrackReco/interface/TrackExtra.h
"
2
#include "
DataFormats/TrackReco/interface/fillCovariance.h
"
3
4
using namespace
reco
;
5
6
TrackExtra::TrackExtra
(
const
Point
&outerPosition,
const
Vector
&outerMomentum,
7
bool
ok
,
const
Point
&innerPosition,
const
Vector
&innerMomentum,
8
bool
iok,
const
CovarianceMatrix
&outerCov,
unsigned
int
outerId,
9
const
CovarianceMatrix
&innerCov,
unsigned
int
innerId,
10
PropagationDirection
seedDir,
11
edm::RefToBase<TrajectorySeed>
seedRef):
12
13
TrackExtraBase
(),
14
outerPosition_(outerPosition),
15
outerMomentum_(outerMomentum),
16
outerOk_(ok),
17
outerDetId_(outerId),
18
innerPosition_(innerPosition),
19
innerMomentum_(innerMomentum),
20
innerOk_(iok),
21
innerDetId_(innerId),
22
seedDir_(seedDir),
23
seedRef_(seedRef)
24
{
25
index
idx
= 0;
26
for
(
index
i
= 0;
i
<
dimension
; ++
i
) {
27
for
(
index
j = 0; j <=
i
; ++j) {
28
outerCovariance_
[
idx
] = outerCov(
i
, j);
29
innerCovariance_
[
idx
] = innerCov(
i
, j);
30
++
idx
;
31
}
32
}
33
}
34
35
TrackExtra::CovarianceMatrix
TrackExtra::outerStateCovariance
()
const
36
{
37
CovarianceMatrix
v
;
38
fillCovariance
(v,
outerCovariance_
);
39
return
v
;
40
}
41
42
TrackExtra::CovarianceMatrix
TrackExtra::innerStateCovariance
()
const
43
{
44
CovarianceMatrix
v
;
45
fillCovariance
(v,
innerCovariance_
);
46
return
v
;
47
}
48
49
TrackExtra::CovarianceMatrix
&
TrackExtra::fillOuter
(
CovarianceMatrix
&
v
)
const
50
{
51
return
fillCovariance
(v,
outerCovariance_
);
52
}
53
54
TrackExtra::CovarianceMatrix
&
TrackExtra::fillInner
(
CovarianceMatrix
&
v
)
const
55
{
56
return
fillCovariance
(v,
innerCovariance_
);
57
}
58
reco::TrackExtra::Vector
math::XYZVector Vector
spatial vector
Definition:
TrackExtra.h:37
reco::TrackExtra::dimension
Definition:
TrackExtra.h:31
mps_fire.i
i
Definition:
mps_fire.py:338
reco::TrackExtra::CovarianceMatrix
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition:
TrackExtra.h:39
convertSQLiteXML.ok
bool ok
Definition:
convertSQLiteXML.py:98
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
edm::RefToBase< TrajectorySeed >
reco::TrackExtra::outerCovariance_
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition:
TrackExtra.h:192
reco::TrackExtraBase
Definition:
TrackExtraBase.h:23
fillCovariance.h
reco::fillCovariance
PerigeeCovarianceMatrix & fillCovariance(PerigeeCovarianceMatrix &v, const float *data)
Definition:
fillCovariance.cc:6
reco::TrackExtra::outerStateCovariance
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:35
reco::TrackExtra::index
unsigned int index
index type
Definition:
TrackExtra.h:41
CovarianceMatrix
Definition:
CovarianceMatrix.h:27
reco::TrackExtra::fillInner
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:54
reco::TrackExtra::TrackExtra
TrackExtra()
default constructor
Definition:
TrackExtra.h:44
TrackExtra.h
training_settings.idx
idx
Definition:
training_settings.py:16
reco::TrackExtra::innerStateCovariance
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:42
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:44
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition:
DMRtrends.cc:55
reco::TrackExtra::innerCovariance_
float innerCovariance_[covarianceSize]
innermost trajectory state
Definition:
TrackExtra.h:203
reco::TrackExtra::fillOuter
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:49
Generated for CMSSW Reference Manual by
1.8.11