CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
reco::GsfComponent5D Class Reference

#include <GsfComponent5D.h>

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 ()
 
 GsfComponent5D (const double &weight, const ParameterVector &vector, const CovarianceMatrix &matrix)
 
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

Definition at line 13 of file GsfComponent5D.h.

Definition at line 12 of file GsfComponent5D.h.

Member Enumeration Documentation

anonymous enum
Enumerator
dimension 

Definition at line 11 of file GsfComponent5D.h.

Constructor & Destructor Documentation

reco::GsfComponent5D::GsfComponent5D ( )
inline

Definition at line 14 of file GsfComponent5D.h.

References makeMuonMisalignmentScenario::matrix.

14  :
15  weight_(0.) {}
GsfComponent5D::GsfComponent5D ( const double &  weight,
const ParameterVector vector,
const CovarianceMatrix matrix 
)

Definition at line 5 of file GsfComponent5D.cc.

References covariance_, data, dimension, mps_fire::i, and makeMuonMisalignmentScenario::matrix.

7  :
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 }
Definition: weight.py:1
float covariance_[dimension *(dimension+1)/2]
ParameterVector parameters_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82

Member Function Documentation

GsfComponent5D::CovarianceMatrix & GsfComponent5D::covariance ( CovarianceMatrix matrix) const

Definition at line 17 of file GsfComponent5D.cc.

References covariance_, data, dimension, mps_fire::i, and makeMuonMisalignmentScenario::matrix.

Referenced by parameters().

17  {
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 }
float covariance_[dimension *(dimension+1)/2]
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const ParameterVector& reco::GsfComponent5D::parameters ( void  ) const
inline
double reco::GsfComponent5D::weight ( ) const
inline

Definition at line 19 of file GsfComponent5D.h.

References weight_.

19 {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
double reco::GsfComponent5D::weight_
private

Definition at line 23 of file GsfComponent5D.h.

Referenced by weight().