src
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
typedef
align::ErrorMatrix
ErrorMatrix
;
25
typedef
ErrorMatrix::value_type
Scalar
;
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
;
44
align::ID
m_rawId
;
45
46
Scalar
m_errors
[
size_
];
47
48
COND_SERIALIZABLE
;
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
61
align::ID
SurveyError::rawId
()
const
{
return
m_rawId
; }
62
63
SurveyError::ErrorMatrix
SurveyError::matrix
()
const
{
return
ErrorMatrix
(
m_errors
,
m_errors
+
size_
); }
64
65
#endif
SurveyError::nPar_
static const unsigned int nPar_
Definition:
SurveyError.h:40
mps_fire.i
i
Definition:
mps_fire.py:429
nano_mu_digi_cff.rawId
rawId
Definition:
nano_mu_digi_cff.py:56
SurveyError::structureType
uint8_t structureType() const
Definition:
SurveyError.h:59
align::ID
uint32_t ID
Definition:
Definitions.h:24
SurveyError::m_structureType
uint8_t m_structureType
Definition:
SurveyError.h:43
SurveyError::m_errors
Scalar m_errors[size_]
Definition:
SurveyError.h:46
SurveyError::rawId
align::ID rawId() const
Definition:
SurveyError.h:61
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
Definitions.h
SurveyError::matrix
ErrorMatrix matrix() const
Definition:
SurveyError.h:63
SurveyError::m_rawId
align::ID m_rawId
Definition:
SurveyError.h:44
SurveyError::Scalar
ErrorMatrix::value_type Scalar
Definition:
SurveyError.h:25
SurveyError::SurveyError
SurveyError(uint8_t structureType=0, align::ID rawId=0, const ErrorMatrix &=ErrorMatrix())
Definition:
SurveyError.h:51
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
SurveyError::size_
static const unsigned int size_
Definition:
SurveyError.h:41
SurveyError::ErrorMatrix
align::ErrorMatrix ErrorMatrix
Definition:
SurveyError.h:24
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:80
align::ErrorMatrix
math::Error< 6 >::type ErrorMatrix
Definition:
Definitions.h:37
Serializable.h
SurveyError
Definition:
SurveyError.h:23
Generated for CMSSW Reference Manual by
1.8.14