Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
Alignment
interface
SurveyError.h
Go to the documentation of this file.
1
#ifndef CondFormats_Alignment_SurveyError_H
2
#define CondFormats_Alignment_SurveyError_H
3
19
#include "
CondFormats/Serialization/interface/Serializable.h
"
20
21
#include "
CondFormats/Alignment/interface/Definitions.h
"
22
23
class
SurveyError
24
{
25
typedef
align::ErrorMatrix
ErrorMatrix
;
26
typedef
ErrorMatrix::value_type
Scalar
;
27
28
public
:
29
30
inline
SurveyError
(
31
uint8_t
structureType
= 0,
// default unknown
32
align::ID
rawId
= 0,
// default unknown
33
const
ErrorMatrix
& =
ErrorMatrix
()
// default 0
34
);
35
36
inline
uint8_t
structureType
()
const
;
37
38
inline
align::ID
rawId
()
const
;
39
40
inline
ErrorMatrix
matrix
()
const
;
41
42
private
:
43
44
static
const
unsigned
int
nPar_
= ErrorMatrix::kRows;
45
static
const
unsigned
int
size_
=
nPar_
* (
nPar_
+ 1) / 2;
46
47
uint8_t
m_structureType
;
48
align::ID
m_rawId
;
49
50
Scalar
m_errors
[
size_
];
51
52
COND_SERIALIZABLE
;
53
};
54
55
SurveyError::SurveyError
(uint8_t structureType,
56
align::ID
rawId,
57
const
ErrorMatrix
& cov):
58
m_structureType(structureType),
59
m_rawId(rawId)
60
{
61
const
Scalar
*
data
= cov.Array();
// lower triangular of cov
62
63
for
(
unsigned
int
i
= 0;
i
<
size_
; ++
i
)
m_errors
[
i
] = data[
i
];
64
}
65
66
uint8_t
SurveyError::structureType
()
const
67
{
68
return
m_structureType
;
69
}
70
71
align::ID
SurveyError::rawId
()
const
72
{
73
return
m_rawId
;
74
}
75
76
SurveyError::ErrorMatrix
SurveyError::matrix
()
const
77
{
78
return
ErrorMatrix
(
m_errors
,
m_errors
+
size_
);
79
}
80
81
#endif
SurveyError::nPar_
static const unsigned int nPar_
Definition:
SurveyError.h:44
i
int i
Definition:
DBlmapReader.cc:9
SurveyError::matrix
ErrorMatrix matrix() const
Definition:
SurveyError.h:76
align::ID
uint32_t ID
Definition:
Definitions.h:26
SurveyError::m_structureType
uint8_t m_structureType
Definition:
SurveyError.h:47
SurveyError::m_errors
Scalar m_errors[size_]
Definition:
SurveyError.h:50
SurveyError::structureType
uint8_t structureType() const
Definition:
SurveyError.h:66
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
SurveyError::rawId
align::ID rawId() const
Definition:
SurveyError.h:71
Definitions.h
SurveyError::m_rawId
align::ID m_rawId
Definition:
SurveyError.h:48
SurveyError::Scalar
ErrorMatrix::value_type Scalar
Definition:
SurveyError.h:26
SurveyError::SurveyError
SurveyError(uint8_t structureType=0, align::ID rawId=0, const ErrorMatrix &=ErrorMatrix())
Definition:
SurveyError.h:55
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:37
SurveyError::size_
static const unsigned int size_
Definition:
SurveyError.h:45
SurveyError::ErrorMatrix
align::ErrorMatrix ErrorMatrix
Definition:
SurveyError.h:25
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
align::ErrorMatrix
math::Error< 6 >::type ErrorMatrix
Definition:
Definitions.h:39
Serializable.h
SurveyError
Definition:
SurveyError.h:23
Generated for CMSSW Reference Manual by
1.8.5