CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

reco::GsfComponent5D Class Reference

#include <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

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.

{ dimension = 5 };

Constructor & Destructor Documentation

reco::GsfComponent5D::GsfComponent5D ( ) [inline]

Definition at line 14 of file GsfComponent5D.h.

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

Definition at line 5 of file GsfComponent5D.cc.

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

                                                                :
  weight_(weight), parameters_(parameters) {
  float* data(covariance_);
  typedef unsigned int index;
  for( index i = 0; i < dimension; ++ i )
    for( index j = 0; j <= i; ++ j )
      *(data++) = matrix(i,j);
}

Member Function Documentation

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

Definition at line 17 of file GsfComponent5D.cc.

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

                                                          {
  const float* data(covariance_);
  typedef unsigned int index;
  for( index i = 0; i < dimension; ++ i )
    for( index j = 0; j <= i; ++ j )
      matrix(i,j) = *(data++);
  return matrix;
}
const ParameterVector& reco::GsfComponent5D::parameters ( void  ) const [inline]

Definition at line 20 of file GsfComponent5D.h.

References parameters_.

{return parameters_;}
double reco::GsfComponent5D::weight ( ) const [inline]

Definition at line 19 of file GsfComponent5D.h.

References weight_.

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

Definition at line 24 of file GsfComponent5D.h.

Referenced by parameters().

Definition at line 23 of file GsfComponent5D.h.

Referenced by weight().