CondFormats
Alignment
interface
AlignTransformError.h
Go to the documentation of this file.
1
#ifndef AlignTransformError_H
2
#define AlignTransformError_H
3
#include "
CondFormats/Serialization/interface/Serializable.h
"
4
5
#include "CLHEP/Matrix/SymMatrix.h"
6
#include "CLHEP/Vector/RotationInterfaces.h"
7
8
#include "
CondFormats/Alignment/interface/Definitions.h
"
9
13
class
AlignTransformError
{
14
public
:
15
typedef
CLHEP::HepSymMatrix
SymMatrix
;
16
17
AlignTransformError
() {}
18
AlignTransformError
(
const
SymMatrix
& symMatrix,
align::ID
irawId) :
m_rawId
(irawId) {
19
for
(
unsigned
int
i
= 0;
i
<
m_nPars
; ++
i
)
20
for
(
unsigned
int
j
= 0;
j
<=
i
; ++
j
)
21
m_Parameters
[
i
* (
i
+ 1) / 2 +
j
] = symMatrix[
i
][
j
];
22
}
23
24
SymMatrix
matrix
()
const
{
25
SymMatrix
result
(
m_nPars
);
26
for
(
unsigned
int
i
= 0;
i
<
m_nPars
; ++
i
)
27
for
(
unsigned
int
j
= 0;
j
<=
i
; ++
j
)
28
result
[
i
][
j
] =
m_Parameters
[
i
* (
i
+ 1) / 2 +
j
];
29
return
result
;
30
}
31
32
align::ID
rawId
()
const
{
return
m_rawId
; }
33
34
private
:
35
static
const
unsigned
int
m_nPars
= 3;
36
double
m_Parameters
[
m_nPars
* (
m_nPars
+ 1) / 2];
37
align::ID
m_rawId
;
38
39
COND_SERIALIZABLE
;
40
};
41
#endif //AlignTransformError_H
mps_fire.i
i
Definition:
mps_fire.py:355
AlignTransformError::AlignTransformError
AlignTransformError(const SymMatrix &symMatrix, align::ID irawId)
Definition:
AlignTransformError.h:18
AlignTransformError::m_nPars
static const unsigned int m_nPars
Definition:
AlignTransformError.h:35
AlignTransformError::m_Parameters
double m_Parameters[m_nPars *(m_nPars+1)/2]
Definition:
AlignTransformError.h:36
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
AlignTransformError::AlignTransformError
AlignTransformError()
Definition:
AlignTransformError.h:17
AlignTransformError
Definition:
AlignTransformError.h:13
align::ID
uint32_t ID
Definition:
Definitions.h:24
AlignTransformError::matrix
SymMatrix matrix() const
Definition:
AlignTransformError.h:24
Definitions.h
Serializable.h
AlignTransformError::rawId
align::ID rawId() const
Definition:
AlignTransformError.h:32
AlignTransformError::SymMatrix
CLHEP::HepSymMatrix SymMatrix
Definition:
AlignTransformError.h:15
mps_fire.result
result
Definition:
mps_fire.py:303
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
AlignTransformError::m_rawId
align::ID m_rawId
Definition:
AlignTransformError.h:37
Generated for CMSSW Reference Manual by
1.8.16