CMS 3D CMS Logo

SurveyError.h
Go to the documentation of this file.
1 #ifndef CondFormats_Alignment_SurveyError_H
2 #define CondFormats_Alignment_SurveyError_H
3 
20 
22 
23 class SurveyError {
26 
27 public:
28  inline SurveyError(uint8_t structureType = 0, // default unknown
29  align::ID rawId = 0, // default unknown
30  const ErrorMatrix& = ErrorMatrix() // default 0
31  );
32 
33  inline uint8_t structureType() const;
34 
35  inline align::ID rawId() const;
36 
37  inline ErrorMatrix matrix() const;
38 
39 private:
40  static const unsigned int nPar_ = ErrorMatrix::kRows;
41  static const unsigned int size_ = nPar_ * (nPar_ + 1) / 2;
42 
43  uint8_t m_structureType;
45 
47 
49 };
50 
51 SurveyError::SurveyError(uint8_t structureType, align::ID rawId, const ErrorMatrix& cov)
52  : m_structureType(structureType), m_rawId(rawId) {
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 }
58 
59 uint8_t SurveyError::structureType() const { return m_structureType; }
60 
62 
64 
65 #endif
mps_fire.i
i
Definition: mps_fire.py:355
SurveyError::m_structureType
uint8_t m_structureType
Definition: SurveyError.h:43
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SurveyError::rawId
align::ID rawId() const
Definition: SurveyError.h:61
align::ErrorMatrix
math::Error< 6 >::type ErrorMatrix
Definition: Definitions.h:37
SurveyError::structureType
uint8_t structureType() const
Definition: SurveyError.h:59
SurveyError::m_errors
Scalar m_errors[size_]
Definition: SurveyError.h:46
SurveyError::matrix
ErrorMatrix matrix() const
Definition: SurveyError.h:63
align::ID
uint32_t ID
Definition: Definitions.h:24
Definitions.h
Serializable.h
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
SurveyError::m_rawId
align::ID m_rawId
Definition: SurveyError.h:44
SurveyError::size_
static const unsigned int size_
Definition: SurveyError.h:41
SurveyError::ErrorMatrix
align::ErrorMatrix ErrorMatrix
Definition: SurveyError.h:24
SurveyError::Scalar
ErrorMatrix::value_type Scalar
Definition: SurveyError.h:25
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
SurveyError
Definition: SurveyError.h:23
SurveyError::SurveyError
SurveyError(uint8_t structureType=0, align::ID rawId=0, const ErrorMatrix &=ErrorMatrix())
Definition: SurveyError.h:51
SurveyError::nPar_
static const unsigned int nPar_
Definition: SurveyError.h:40