#include <DataFormats/GsfTrackReco/interface/GsfComponent5D.h>
Public Types | |
enum | { dimension = 5 } |
typedef math::Error< dimension > ::type | CovarianceMatrix |
typedef math::Vector < dimension >::type | ParameterVector |
Public Member Functions | |
CovarianceMatrix & | covariance (CovarianceMatrix &matrix) const |
GsfComponent5D (const double &weight, const ParameterVector &vector, const CovarianceMatrix &matrix) | |
GsfComponent5D () | |
const ParameterVector & | parameters () const |
double | weight () const |
Private Attributes | |
float | covariance_ [dimension *(dimension+1)/2] |
ParameterVector | parameters_ |
double | weight_ |
Definition at line 9 of file GsfComponent5D.h.
typedef math::Error<dimension>::type reco::GsfComponent5D::CovarianceMatrix |
Definition at line 13 of file GsfComponent5D.h.
typedef math::Vector<dimension>::type reco::GsfComponent5D::ParameterVector |
Definition at line 12 of file GsfComponent5D.h.
anonymous enum |
reco::GsfComponent5D::GsfComponent5D | ( | ) | [inline] |
Definition at line 14 of file GsfComponent5D.h.
00014 : 00015 weight_(0.) {} GsfComponent5D (const double& weight,
GsfComponent5D::GsfComponent5D | ( | const double & | weight, | |
const ParameterVector & | vector, | |||
const CovarianceMatrix & | matrix | |||
) |
Definition at line 5 of file GsfComponent5D.cc.
References covariance_, data, dimension, i, index, j, and matrix.
00007 : 00008 weight_(weight), parameters_(parameters) { 00009 float* data(covariance_); 00010 typedef unsigned int index; 00011 for( index i = 0; i < dimension; ++ i ) 00012 for( index j = 0; j <= i; ++ j ) 00013 *(data++) = matrix(i,j); 00014 }
GsfComponent5D::CovarianceMatrix & GsfComponent5D::covariance | ( | CovarianceMatrix & | matrix | ) | const |
Definition at line 17 of file GsfComponent5D.cc.
References covariance_, data, dimension, i, index, j, and matrix.
00017 { 00018 const float* data(covariance_); 00019 typedef unsigned int index; 00020 for( index i = 0; i < dimension; ++ i ) 00021 for( index j = 0; j <= i; ++ j ) 00022 matrix(i,j) = *(data++); 00023 return matrix; 00024 }
const ParameterVector& reco::GsfComponent5D::parameters | ( | void | ) | const [inline] |
double reco::GsfComponent5D::weight | ( | ) | const [inline] |
float reco::GsfComponent5D::covariance_[dimension *(dimension+1)/2] [private] |
double reco::GsfComponent5D::weight_ [private] |