#include <AlignTransform.h>
Public Types | |
typedef CLHEP::HepEulerAngles | EulerAngles |
typedef CLHEP::HepRotation | Rotation |
typedef HepGeom::Transform3D | Transform |
typedef CLHEP::Hep3Vector | Translation |
Public Member Functions | |
AlignTransform () | |
Default constructor. | |
AlignTransform (const Translation &itranslation, const EulerAngles &ieulerAngles, align::ID irawId) | |
Constructor from Euler angles. | |
AlignTransform (const Translation &itranslation, const Rotation &irotation, align::ID irawId) | |
Constructor from Rotation. | |
align::ID | rawId () const |
Do not expose Euler angles since we may change its type later. | |
Rotation | rotation () const |
Transform | transform () const |
const Translation & | translation () const |
Private Attributes | |
EulerAngles | m_eulerAngles |
align::ID | m_rawId |
Translation | m_translation |
Class holding data for an Alignment transformation It contains the raw detector id, its global position and global orientation. It is optimized for storage.
Definition at line 13 of file AlignTransform.h.
typedef CLHEP::HepEulerAngles AlignTransform::EulerAngles |
Definition at line 16 of file AlignTransform.h.
typedef CLHEP::HepRotation AlignTransform::Rotation |
Definition at line 18 of file AlignTransform.h.
typedef HepGeom::Transform3D AlignTransform::Transform |
Definition at line 19 of file AlignTransform.h.
typedef CLHEP::Hep3Vector AlignTransform::Translation |
Definition at line 17 of file AlignTransform.h.
AlignTransform::AlignTransform | ( | ) | [inline] |
AlignTransform::AlignTransform | ( | const Translation & | itranslation, |
const EulerAngles & | ieulerAngles, | ||
align::ID | irawId | ||
) | [inline] |
Constructor from Euler angles.
Definition at line 25 of file AlignTransform.h.
: m_translation(itranslation), m_eulerAngles(ieulerAngles), m_rawId(irawId) {}
AlignTransform::AlignTransform | ( | const Translation & | itranslation, |
const Rotation & | irotation, | ||
align::ID | irawId | ||
) | [inline] |
Constructor from Rotation.
Definition at line 33 of file AlignTransform.h.
: m_translation(itranslation), m_eulerAngles(irotation.eulerAngles()), m_rawId(irawId) {}
align::ID AlignTransform::rawId | ( | ) | const [inline] |
Do not expose Euler angles since we may change its type later.
Definition at line 43 of file AlignTransform.h.
References m_rawId.
Referenced by GlobalTrackerMuonAlignment::writeGlPosRcd().
{ return m_rawId; }
Rotation AlignTransform::rotation | ( | void | ) | const [inline] |
Definition at line 45 of file AlignTransform.h.
References m_eulerAngles.
Referenced by GeometryAligner::applyAlignments(), GeometryAligner::removeGlobalTransform(), transform(), and GlobalTrackerMuonAlignment::writeGlPosRcd().
{ //std::cout<<"Inside aligntransform::rotation() with id="<<std::hex<<m_rawId<<std::dec<<std::endl ; //std::cout<<" for e.a.="<<m_eulerAngles<<std::endl; return Rotation(m_eulerAngles); }
Transform AlignTransform::transform | ( | ) | const [inline] |
Definition at line 50 of file AlignTransform.h.
References rotation(), and translation().
Referenced by AlignmentProducer::writeDB().
{ return Transform( rotation(), translation() ) ; }
const Translation& AlignTransform::translation | ( | void | ) | const [inline] |
Definition at line 40 of file AlignTransform.h.
References m_translation.
Referenced by GeometryAligner::applyAlignments(), GeometryAligner::removeGlobalTransform(), transform(), and GlobalTrackerMuonAlignment::writeGlPosRcd().
{ return m_translation; }
EulerAngles AlignTransform::m_eulerAngles [private] |
Definition at line 55 of file AlignTransform.h.
Referenced by rotation().
align::ID AlignTransform::m_rawId [private] |
Definition at line 56 of file AlignTransform.h.
Referenced by rawId().
Translation AlignTransform::m_translation [private] |
Definition at line 54 of file AlignTransform.h.
Referenced by translation().