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 "CLHEP/Vector/EulerAngles.h"
4
#include "CLHEP/Vector/Rotation.h"
5
#include "CLHEP/Vector/ThreeVector.h"
6
#include "CLHEP/Geometry/Transform3D.h"
7
8
#include "
CondFormats/Alignment/interface/Definitions.h
"
9
13
class
AlignTransform
14
{
15
public
:
16
typedef
CLHEP::HepEulerAngles
EulerAngles
;
17
typedef
CLHEP::Hep3Vector
Translation
;
18
typedef
CLHEP::HepRotation
Rotation
;
19
typedef
HepGeom::Transform3D
Transform
;
20
22
AlignTransform
(){}
23
25
AlignTransform
(
const
Translation
& itranslation,
26
const
EulerAngles
& ieulerAngles,
27
align::ID
irawId ) :
28
m_translation
(itranslation),
29
m_eulerAngles
(ieulerAngles),
30
m_rawId
(irawId) {}
31
33
AlignTransform
(
const
Translation
& itranslation,
34
const
Rotation
& irotation,
35
align::ID
irawId ) :
36
m_translation
(itranslation),
37
m_eulerAngles
(irotation.eulerAngles()),
38
m_rawId
(irawId) {}
39
40
const
Translation
&
translation
()
const
{
return
m_translation
; }
42
// const EulerAngles & eulerAngles() const { return m_eulerAngles; }
43
align::ID
rawId
()
const
{
return
m_rawId
; }
44
45
Rotation
rotation
()
const
46
{
//std::cout<<"Inside aligntransform::rotation() with id="<<std::hex<<m_rawId<<std::dec<<std::endl ;
47
//std::cout<<" for e.a.="<<m_eulerAngles<<std::endl;
48
return
Rotation
(
m_eulerAngles
); }
49
50
Transform
transform
()
const
{
return
Transform
(
rotation
(),
translation
() ) ; }
51
52
private
:
53
54
Translation
m_translation
;
55
EulerAngles
m_eulerAngles
;
56
align::ID
m_rawId
;
57
58
59
};
60
#endif //AlignTransform_H
AlignTransform
Definition:
AlignTransform.h:13
AlignTransform::Transform
HepGeom::Transform3D Transform
Definition:
AlignTransform.h:19
AlignTransform::AlignTransform
AlignTransform(const Translation &itranslation, const EulerAngles &ieulerAngles, align::ID irawId)
Constructor from Euler angles.
Definition:
AlignTransform.h:25
align::ID
uint32_t ID
Definition:
Definitions.h:26
AlignTransform::Translation
CLHEP::Hep3Vector Translation
Definition:
AlignTransform.h:17
AlignTransform::EulerAngles
CLHEP::HepEulerAngles EulerAngles
Definition:
AlignTransform.h:16
AlignTransform::AlignTransform
AlignTransform(const Translation &itranslation, const Rotation &irotation, align::ID irawId)
Constructor from Rotation.
Definition:
AlignTransform.h:33
AlignTransform::translation
const Translation & translation() const
Definition:
AlignTransform.h:40
AlignTransform::m_eulerAngles
EulerAngles m_eulerAngles
Definition:
AlignTransform.h:55
Definitions.h
AlignTransform::m_rawId
align::ID m_rawId
Definition:
AlignTransform.h:56
AlignTransform::AlignTransform
AlignTransform()
Default constructor.
Definition:
AlignTransform.h:22
AlignTransform::transform
Transform transform() const
Definition:
AlignTransform.h:50
AlignTransform::m_translation
Translation m_translation
Definition:
AlignTransform.h:54
AlignTransform::rotation
Rotation rotation() const
Definition:
AlignTransform.h:45
AlignTransform::rawId
align::ID rawId() const
Do not expose Euler angles since we may change its type later.
Definition:
AlignTransform.h:43
AlignTransform::Rotation
CLHEP::HepRotation Rotation
Definition:
AlignTransform.h:18
Generated for CMSSW Reference Manual by
1.8.5