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.

11 { dimension = 5 };

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.

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 }

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

Member Function Documentation

◆ covariance()

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

Definition at line 14 of file GsfComponent5D.cc.

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 }

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

◆ parameters()

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

Definition at line 17 of file GsfComponent5D.h.

17 { return parameters_; }

References parameters_.

◆ weight()

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

Definition at line 16 of file GsfComponent5D.h.

16 { return weight_; }

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

mps_fire.i
i
Definition: mps_fire.py:355
makeMuonMisalignmentScenario.matrix
list matrix
Definition: makeMuonMisalignmentScenario.py:141
reco::GsfComponent5D::parameters_
ParameterVector parameters_
Definition: GsfComponent5D.h:22
parameters
parameters
Definition: BeamSpot_PayloadInspector.cc:14
reco::GsfComponent5D::weight_
double weight_
Definition: GsfComponent5D.h:21
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
reco::GsfComponent5D::covariance_
float covariance_[dimension *(dimension+1)/2]
Definition: GsfComponent5D.h:23
reco::GsfComponent5D::dimension
Definition: GsfComponent5D.h:11
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
weight
Definition: weight.py:1