CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
int i
Definition: DBlmapReader.cc:9
math::XYZVector Vector
spatial vector
Definition: TrackExtra.h:36
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition: TrackExtra.h:38
PropagationDirection
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition: TrackExtra.h:196
math::XYZPoint Point
point in the space
Definition: TrackExtra.h:34
PerigeeCovarianceMatrix & fillCovariance(PerigeeCovarianceMatrix &v, const float *data)
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:35
int j
Definition: DBlmapReader.cc:9
unsigned int index
index type
Definition: TrackExtra.h:40
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:54
TrackExtra()
default constructor
Definition: TrackExtra.h:43
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition: TrackExtra.cc:42
float innerCovariance_[covarianceSize]
innermost trajectory state
Definition: TrackExtra.h:207
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:49