CMS 3D CMS Logo

reco::GsfComponent5D Class Reference

#include <DataFormats/GsfTrackReco/interface/GsfComponent5D.h>

List of all members.

Public Types

enum  { dimension = 5 }
typedef math::Error< dimension >
::type 
CovarianceMatrix
typedef math::Vector
< dimension >::type 
ParameterVector

Public Member Functions

CovarianceMatrixcovariance (CovarianceMatrix &matrix) const
 GsfComponent5D (const double &weight, const ParameterVector &vector, const CovarianceMatrix &matrix)
 GsfComponent5D ()
const ParameterVectorparameters () const
double weight () const

Private Attributes

float covariance_ [dimension *(dimension+1)/2]
ParameterVector parameters_
double weight_


Detailed Description

Definition at line 9 of file GsfComponent5D.h.


Member Typedef Documentation

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.


Member Enumeration Documentation

anonymous enum

Enumerator:
dimension 

Definition at line 11 of file GsfComponent5D.h.

00011 { dimension = 5 };


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

Definition at line 20 of file GsfComponent5D.h.

References parameters_.

00020 {return parameters_;}

double reco::GsfComponent5D::weight (  )  const [inline]

Definition at line 19 of file GsfComponent5D.h.

References weight_.

00019 {return weight_;}


Member Data Documentation

float reco::GsfComponent5D::covariance_[dimension *(dimension+1)/2] [private]

Definition at line 25 of file GsfComponent5D.h.

Referenced by covariance(), and GsfComponent5D().

ParameterVector reco::GsfComponent5D::parameters_ [private]

Definition at line 24 of file GsfComponent5D.h.

Referenced by parameters().

double reco::GsfComponent5D::weight_ [private]

Definition at line 23 of file GsfComponent5D.h.

Referenced by weight().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:07 2009 for CMSSW by  doxygen 1.5.4