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

◆ CovarianceMatrix

Definition at line 13 of file GsfComponent5D.h.

◆ ParameterVector

Definition at line 12 of file GsfComponent5D.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
dimension 

Definition at line 11 of file GsfComponent5D.h.

Constructor & Destructor Documentation

◆ GsfComponent5D() [1/2]

reco::GsfComponent5D::GsfComponent5D ( )
inline

Definition at line 14 of file GsfComponent5D.h.

14 : weight_(0.) {}

◆ GsfComponent5D() [2/2]

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, dqmiolumiharvest::j, and makeMuonMisalignmentScenario::matrix.

7  float* data(covariance_);
8  typedef unsigned int index;
9  for (index i = 0; i < dimension; ++i)
10  for (index j = 0; j <= i; ++j)
11  *(data++) = matrix(i, j);
12 }
Definition: weight.py:1
float covariance_[dimension *(dimension+1)/2]
ParameterVector parameters_
const ParameterVector & parameters() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Function Documentation

◆ covariance()

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

Definition at line 14 of file GsfComponent5D.cc.

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

14  {
15  const float* data(covariance_);
16  typedef unsigned int index;
17  for (index i = 0; i < dimension; ++i)
18  for (index j = 0; j <= i; ++j)
19  matrix(i, j) = *(data++);
20  return matrix;
21 }
float covariance_[dimension *(dimension+1)/2]
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ parameters()

const ParameterVector& reco::GsfComponent5D::parameters ( void  ) const
inline

Definition at line 17 of file GsfComponent5D.h.

References parameters_.

17 { return parameters_; }
ParameterVector parameters_

◆ weight()

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

Definition at line 16 of file GsfComponent5D.h.

References weight_.

16 { return weight_; }

Member Data Documentation

◆ covariance_

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

Definition at line 23 of file GsfComponent5D.h.

Referenced by covariance(), and GsfComponent5D().

◆ parameters_

ParameterVector reco::GsfComponent5D::parameters_
private

◆ weight_

double reco::GsfComponent5D::weight_
private

Definition at line 21 of file GsfComponent5D.h.

Referenced by weight().