CMS 3D CMS Logo

GsfComponent5D.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
7  const CovarianceMatrix& matrix) :
8  weight_(weight), parameters_(parameters) {
9  float* data(covariance_);
10  typedef unsigned int index;
11  for( index i = 0; i < dimension; ++ i )
12  for( index j = 0; j <= i; ++ j )
13  *(data++) = matrix(i,j);
14 }
15 
18  const float* data(covariance_);
19  typedef unsigned int index;
20  for( index i = 0; i < dimension; ++ i )
21  for( index j = 0; j <= i; ++ j )
22  matrix(i,j) = *(data++);
23  return matrix;
24 }
math::Error< dimension >::type CovarianceMatrix
CovarianceMatrix & covariance(CovarianceMatrix &matrix) const
Definition: weight.py:1
float covariance_[dimension *(dimension+1)/2]
fixed size matrix
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
math::Vector< dimension >::type ParameterVector