Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
Alignment
interface
AlignTransform.h
Go to the documentation of this file.
1
#ifndef AlignTransform_H
2
#define AlignTransform_H
3
#include "
CondFormats/Serialization/interface/Serializable.h
"
4
5
#include "CLHEP/Vector/EulerAngles.h"
6
#include "CLHEP/Vector/Rotation.h"
7
#include "CLHEP/Vector/ThreeVector.h"
8
#include "CLHEP/Geometry/Transform3D.h"
9
10
#include "
CondFormats/Alignment/interface/Definitions.h
"
11
15
class
AlignTransform
16
{
17
public
:
18
typedef
CLHEP::HepEulerAngles
EulerAngles
;
19
typedef
CLHEP::Hep3Vector
Translation
;
20
typedef
CLHEP::HepRotation
Rotation
;
21
typedef
HepGeom::Transform3D
Transform
;
22
24
AlignTransform
(){}
25
27
AlignTransform
(
const
Translation
& itranslation,
28
const
EulerAngles
& ieulerAngles,
29
align::ID
irawId ) :
30
m_translation
(itranslation),
31
m_eulerAngles
(ieulerAngles),
32
m_rawId
(irawId) {}
33
35
AlignTransform
(
const
Translation
& itranslation,
36
const
Rotation
& irotation,
37
align::ID
irawId ) :
38
m_translation
(itranslation),
39
m_eulerAngles
(irotation.eulerAngles()),
40
m_rawId
(irawId) {}
41
42
const
Translation
&
translation
()
const
{
return
m_translation
; }
44
// const EulerAngles & eulerAngles() const { return m_eulerAngles; }
45
align::ID
rawId
()
const
{
return
m_rawId
; }
46
47
Rotation
rotation
()
const
48
{
//std::cout<<"Inside aligntransform::rotation() with id="<<std::hex<<m_rawId<<std::dec<<std::endl ;
49
//std::cout<<" for e.a.="<<m_eulerAngles<<std::endl;
50
return
Rotation
(
m_eulerAngles
); }
51
52
Transform
transform
()
const
{
return
Transform
(
rotation
(),
translation
() ) ; }
53
54
private
:
55
56
Translation
m_translation
;
57
EulerAngles
m_eulerAngles
;
58
align::ID
m_rawId
;
59
60
61
62
COND_SERIALIZABLE
;
63
};
64
#endif //AlignTransform_H
AlignTransform
Definition:
AlignTransform.h:15
AlignTransform::Transform
HepGeom::Transform3D Transform
Definition:
AlignTransform.h:21
AlignTransform::AlignTransform
AlignTransform(const Translation &itranslation, const EulerAngles &ieulerAngles, align::ID irawId)
Constructor from Euler angles.
Definition:
AlignTransform.h:27
align::ID
uint32_t ID
Definition:
Definitions.h:26
AlignTransform::Translation
CLHEP::Hep3Vector Translation
Definition:
AlignTransform.h:19
AlignTransform::EulerAngles
CLHEP::HepEulerAngles EulerAngles
Definition:
AlignTransform.h:18
AlignTransform::AlignTransform
AlignTransform(const Translation &itranslation, const Rotation &irotation, align::ID irawId)
Constructor from Rotation.
Definition:
AlignTransform.h:35
AlignTransform::translation
const Translation & translation() const
Definition:
AlignTransform.h:42
AlignTransform::m_eulerAngles
EulerAngles m_eulerAngles
Definition:
AlignTransform.h:57
Definitions.h
AlignTransform::m_rawId
align::ID m_rawId
Definition:
AlignTransform.h:58
AlignTransform::AlignTransform
AlignTransform()
Default constructor.
Definition:
AlignTransform.h:24
AlignTransform::transform
Transform transform() const
Definition:
AlignTransform.h:52
AlignTransform::COND_SERIALIZABLE
COND_SERIALIZABLE
Definition:
AlignTransform.h:62
AlignTransform::m_translation
Translation m_translation
Definition:
AlignTransform.h:56
AlignTransform::rotation
Rotation rotation() const
Definition:
AlignTransform.h:47
AlignTransform::rawId
align::ID rawId() const
Do not expose Euler angles since we may change its type later.
Definition:
AlignTransform.h:45
Serializable.h
AlignTransform::Rotation
CLHEP::HepRotation Rotation
Definition:
AlignTransform.h:20
Generated for CMSSW Reference Manual by
1.8.5