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 using namespace reco;
4 
5 TrackExtra::TrackExtra( const Point & outerPosition, const Vector & outerMomentum, bool ok ,
6  const Point & innerPosition, const Vector & innerMomentum, bool iok,
7  const CovarianceMatrix& outerCov, unsigned int outerId,
8  const CovarianceMatrix& innerCov, unsigned int innerId,
9  PropagationDirection seedDir,
12  outerPosition_( outerPosition ), outerMomentum_( outerMomentum ), outerOk_( ok ),
13  outerDetId_( outerId ),
14  innerPosition_( innerPosition ), innerMomentum_( innerMomentum ), innerOk_( iok ),
15  innerDetId_( innerId ), seedDir_(seedDir), seedRef_(seedRef) {
16  index idx = 0;
17  for( index i = 0; i < dimension; ++ i ) {
18  for( index j = 0; j <= i; ++ j ) {
19  outerCovariance_[ idx ] = outerCov( i, j );
20  innerCovariance_[ idx ] = innerCov( i, j );
21  ++idx;
22  }
23  }
24 }
25 
28 }
29 
32 }
33 
35  return fillCovariance( v, outerCovariance_ );
36 }
37 
39  return fillCovariance( v, innerCovariance_ );
40 }
41 
int i
Definition: DBlmapReader.cc:9
math::XYZVector Vector
spatial vector
Definition: TrackExtra.h:34
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition: TrackExtra.h:36
PropagationDirection
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition: TrackExtra.h:145
math::XYZPoint Point
point in the space
Definition: TrackExtra.h:32
PerigeeCovarianceMatrix & fillCovariance(PerigeeCovarianceMatrix &v, const float *data)
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:26
int j
Definition: DBlmapReader.cc:9
unsigned int index
index type
Definition: TrackExtra.h:38
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:38
TrackExtra()
default constructor
Definition: TrackExtra.h:41
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition: TrackExtra.cc:30
float innerCovariance_[covarianceSize]
innermost trajectory state
Definition: TrackExtra.h:156
mathSSE::Vec4< T > v
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition: TrackExtra.cc:34