CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes | Static Private Attributes

SurveyError Class Reference

#include <SurveyError.h>

List of all members.

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

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/10/08 14:44:38
Revision:
1.2
Author:
Chung Khim Lae

Definition at line 21 of file SurveyError.h.


Member Typedef Documentation

Definition at line 23 of file SurveyError.h.

typedef ErrorMatrix::value_type SurveyError::Scalar [private]

Definition at line 24 of file SurveyError.h.


Constructor & Destructor Documentation

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, i, m_errors, and size_.

                                                :
  m_structureType(structureType),
  m_rawId(rawId)
{
  const Scalar* data = cov.Array(); // lower triangular of cov

  for (unsigned int i = 0; i < size_; ++i) m_errors[i] = data[i];
}

Member Function Documentation

SurveyError::ErrorMatrix SurveyError::matrix ( void  ) const [inline]
align::ID SurveyError::rawId ( ) const [inline]
uint8_t SurveyError::structureType ( ) const [inline]

Member Data Documentation

Definition at line 48 of file SurveyError.h.

Referenced by matrix(), and SurveyError().

Definition at line 46 of file SurveyError.h.

Referenced by rawId().

uint8_t SurveyError::m_structureType [private]

Definition at line 45 of file SurveyError.h.

Referenced by structureType().

const unsigned int SurveyError::nPar_ = ErrorMatrix::kRows [static, private]

Definition at line 42 of file SurveyError.h.

const unsigned int SurveyError::size_ = nPar_ * (nPar_ + 1) / 2 [static, private]

Definition at line 43 of file SurveyError.h.

Referenced by matrix(), and SurveyError().