CMS 3D CMS Logo

TrackExtra.cc
Go to the documentation of this file.
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,
12 
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 
36 {
39  return v;
40 }
41 
43 {
46  return v;
47 }
48 
50 {
52 }
53 
55 {
57 }
58 
math::XYZVector Vector
spatial vector
Definition: TrackExtra.h:37
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition: TrackExtra.h:39
PropagationDirection
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition: TrackExtra.h:192
math::XYZPoint Point
point in the space
Definition: TrackExtra.h:35
PerigeeCovarianceMatrix & fillCovariance(PerigeeCovarianceMatrix &v, const float *data)
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:35
unsigned int index
index type
Definition: TrackExtra.h:41
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:54
TrackExtra()
default constructor
Definition: TrackExtra.h:44
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition: TrackExtra.cc:42
fixed size matrix
float innerCovariance_[covarianceSize]
innermost trajectory state
Definition: TrackExtra.h:203
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:49