CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

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, i, cmsHarvester::index, j, 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 }
int i
Definition: DBlmapReader.cc:9
double weight() const
float covariance_[dimension *(dimension+1)/2]
int j
Definition: DBlmapReader.cc:9
ParameterVector parameters_
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const ParameterVector & parameters() const

Member Function Documentation

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

Definition at line 17 of file GsfComponent5D.cc.

References covariance_, data, dimension, i, cmsHarvester::index, j, and makeMuonMisalignmentScenario::matrix.

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

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().