CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
SurveyError Class Reference

#include <SurveyError.h>

Public Member Functions

ErrorMatrix matrix () const
 
align::ID rawId () const
 
uint8_t structureType () const
 
 SurveyError (uint8_t structureType=0, align::ID rawId=0, const ErrorMatrix &=ErrorMatrix())
 

Private Types

typedef align::ErrorMatrix ErrorMatrix
 
typedef ErrorMatrix::value_type Scalar
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

Scalar m_errors [size_]
 
align::ID m_rawId
 
uint8_t m_structureType
 

Static Private Attributes

static const unsigned int nPar_ = ErrorMatrix::kRows
 
static const unsigned int size_ = nPar_ * (nPar_ + 1) / 2
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Class to hold DB object for survey errors.

DB object contains the following: an unsigned 8-bit integer for the structure type an unsigned 32-bit integer for the detector's raw id an array of 21 floats for the error matrix of 6 alignment parameters The lower triangular of the error matrix is stored.

Date
2007/04/03 15:59:58
Revision
1.1
Author
Chung Khim Lae

Definition at line 23 of file SurveyError.h.

Member Typedef Documentation

◆ ErrorMatrix

Definition at line 24 of file SurveyError.h.

◆ Scalar

typedef ErrorMatrix::value_type SurveyError::Scalar
private

Definition at line 25 of file SurveyError.h.

Constructor & Destructor Documentation

◆ SurveyError()

SurveyError::SurveyError ( uint8_t  structureType = 0,
align::ID  rawId = 0,
const ErrorMatrix cov = ErrorMatrix() 
)
inline

Definition at line 51 of file SurveyError.h.

References data, mps_fire::i, m_errors, and size_.

53  const Scalar* data = cov.Array(); // lower triangular of cov
54 
55  for (unsigned int i = 0; i < size_; ++i)
56  m_errors[i] = data[i];
57 }
uint8_t structureType() const
Definition: SurveyError.h:59
uint8_t m_structureType
Definition: SurveyError.h:43
Scalar m_errors[size_]
Definition: SurveyError.h:46
align::ID rawId() const
Definition: SurveyError.h:61
align::ID m_rawId
Definition: SurveyError.h:44
ErrorMatrix::value_type Scalar
Definition: SurveyError.h:25
static const unsigned int size_
Definition: SurveyError.h:41
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

Member Function Documentation

◆ matrix()

SurveyError::ErrorMatrix SurveyError::matrix ( void  ) const
inline

Definition at line 63 of file SurveyError.h.

References m_errors, and size_.

63 { return ErrorMatrix(m_errors, m_errors + size_); }
Scalar m_errors[size_]
Definition: SurveyError.h:46
static const unsigned int size_
Definition: SurveyError.h:41
align::ErrorMatrix ErrorMatrix
Definition: SurveyError.h:24

◆ rawId()

align::ID SurveyError::rawId ( ) const
inline

Definition at line 61 of file SurveyError.h.

References m_rawId.

61 { return m_rawId; }
align::ID m_rawId
Definition: SurveyError.h:44

◆ serialize()

template<class Archive >
void SurveyError::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ structureType()

uint8_t SurveyError::structureType ( ) const
inline

Definition at line 59 of file SurveyError.h.

References m_structureType.

59 { return m_structureType; }
uint8_t m_structureType
Definition: SurveyError.h:43

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 48 of file SurveyError.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 48 of file SurveyError.h.

Member Data Documentation

◆ m_errors

Scalar SurveyError::m_errors[size_]
private

Definition at line 46 of file SurveyError.h.

Referenced by matrix(), and SurveyError().

◆ m_rawId

align::ID SurveyError::m_rawId
private

Definition at line 44 of file SurveyError.h.

Referenced by rawId().

◆ m_structureType

uint8_t SurveyError::m_structureType
private

Definition at line 43 of file SurveyError.h.

Referenced by structureType().

◆ nPar_

const unsigned int SurveyError::nPar_ = ErrorMatrix::kRows
staticprivate

Definition at line 40 of file SurveyError.h.

◆ size_

const unsigned int SurveyError::size_ = nPar_ * (nPar_ + 1) / 2
staticprivate

Definition at line 41 of file SurveyError.h.

Referenced by matrix(), and SurveyError().