#include <CondFormats/Alignment/interface/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 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 |
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.
Definition at line 21 of file SurveyError.h.
typedef align::ErrorMatrix SurveyError::ErrorMatrix [private] |
Definition at line 23 of file SurveyError.h.
typedef ErrorMatrix::value_type SurveyError::Scalar [private] |
Definition at line 24 of file SurveyError.h.
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_.
00053 : 00054 m_structureType(structureType), 00055 m_rawId(rawId) 00056 { 00057 const Scalar* data = cov.Array(); // lower triangular of cov 00058 00059 for (unsigned int i = 0; i < size_; ++i) m_errors[i] = data[i]; 00060 }
SurveyError::ErrorMatrix SurveyError::matrix | ( | void | ) | const [inline] |
Definition at line 72 of file SurveyError.h.
References m_errors, and size_.
Referenced by TrackerGeometryCompare::addSurveyInfo(), AlignmentProducer::addSurveyInfo_(), and MuonAlignmentInputSurveyDB::addSurveyInfo_().
00073 { 00074 return ErrorMatrix(m_errors, m_errors + size_); 00075 }
align::ID SurveyError::rawId | ( | ) | const [inline] |
Definition at line 67 of file SurveyError.h.
References m_rawId.
Referenced by TrackerGeometryCompare::addSurveyInfo(), AlignmentProducer::addSurveyInfo_(), and MuonAlignmentInputSurveyDB::addSurveyInfo_().
00068 { 00069 return m_rawId; 00070 }
uint8_t SurveyError::structureType | ( | ) | const [inline] |
Definition at line 62 of file SurveyError.h.
References m_structureType.
Referenced by TrackerGeometryCompare::addSurveyInfo(), AlignmentProducer::addSurveyInfo_(), and MuonAlignmentInputSurveyDB::addSurveyInfo_().
00063 { 00064 return m_structureType; 00065 }
Scalar SurveyError::m_errors[size_] [private] |
align::ID SurveyError::m_rawId [private] |
uint8_t SurveyError::m_structureType [private] |
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] |