Alignment
CommonAlignmentAlgorithm
interface
AlignableData.h
Go to the documentation of this file.
1
#ifndef Alignment_CommonAlignmentAlgorithm_AlignableData_h
2
#define Alignment_CommonAlignmentAlgorithm_AlignableData_h
3
4
#include "
Alignment/CommonAlignment/interface/StructureType.h
"
5
#include "
CondFormats/Alignment/interface/Definitions.h
"
6
#include <vector>
7
12
13
template
<
class
T>
14
class
AlignableData
{
15
public
:
18
AlignableData
(
const
T
&
pos
,
19
const
align::RotationType
&
rot
,
20
align::ID
id
,
21
align::StructureType
objid,
22
const
std::vector<double>&
deformationParameters
= std::vector<double>())
23
:
thePos
(
pos
),
theRot
(
rot
),
theObjId
(objid),
theId
(
id
),
theDeformationParameters
(
deformationParameters
) {}
24
26
const
T
&
pos
()
const
{
return
thePos
; }
27
const
align::RotationType
&
rot
()
const
{
return
theRot
; }
28
align::StructureType
objId
()
const
{
return
theObjId
; }
29
align::ID
id
()
const
{
return
theId
; }
30
const
std::vector<double>
deformationParameters
()
const
{
return
theDeformationParameters
; }
31
32
private
:
33
// data members
34
35
T
thePos
;
36
align::RotationType
theRot
;
37
align::StructureType
theObjId
;
38
align::ID
theId
;
39
std::vector<double>
theDeformationParameters
;
40
};
41
43
typedef
AlignableData<align::GlobalPoint>
AlignableAbsData
;
45
typedef
AlignableData<align::GlobalVector>
AlignableRelData
;
46
47
typedef
std::vector<AlignableAbsData>
AlignablePositions
;
48
typedef
std::vector<AlignableRelData>
AlignableShifts
;
49
50
#endif
TkRotation< Scalar >
AlignableData::AlignableData
AlignableData(const T &pos, const align::RotationType &rot, align::ID id, align::StructureType objid, const std::vector< double > &deformationParameters=std::vector< double >())
Definition:
AlignableData.h:18
StructureType.h
pos
Definition:
PixelAliasList.h:18
AlignableRelData
AlignableData< align::GlobalVector > AlignableRelData
relative position/rotation
Definition:
AlignableData.h:45
AlignableShifts
std::vector< AlignableRelData > AlignableShifts
Definition:
AlignableData.h:48
AlignableData::thePos
T thePos
Definition:
AlignableData.h:35
AlignableData::objId
align::StructureType objId() const
Definition:
AlignableData.h:28
AlignableData::theRot
align::RotationType theRot
Definition:
AlignableData.h:36
align::StructureType
StructureType
Definition:
StructureType.h:16
AlignableData::deformationParameters
const std::vector< double > deformationParameters() const
Definition:
AlignableData.h:30
align::ID
uint32_t ID
Definition:
Definitions.h:24
Definitions.h
AlignableData::theObjId
align::StructureType theObjId
Definition:
AlignableData.h:37
AlignableData::theDeformationParameters
std::vector< double > theDeformationParameters
Definition:
AlignableData.h:39
AlignableData::pos
const T & pos() const
accessors
Definition:
AlignableData.h:26
AlignableData::theId
align::ID theId
Definition:
AlignableData.h:38
AlignableData
Definition:
AlignableData.h:14
AlignableAbsData
AlignableData< align::GlobalPoint > AlignableAbsData
Absolute position/rotation.
Definition:
AlignableData.h:43
T
long double T
Definition:
Basic3DVectorLD.h:48
AlignableData::id
align::ID id() const
Definition:
AlignableData.h:29
AlignablePositions
std::vector< AlignableAbsData > AlignablePositions
Definition:
AlignableData.h:47
AlignableData::rot
const align::RotationType & rot() const
Definition:
AlignableData.h:27
Generated for CMSSW Reference Manual by
1.8.16