CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

AlignTransform Class Reference

#include <AlignTransform.h>

List of all members.

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 Translationtranslation () const

Private Attributes

EulerAngles m_eulerAngles
align::ID m_rawId
Translation m_translation

Detailed Description

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.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

AlignTransform::AlignTransform ( ) [inline]

Default constructor.

Definition at line 22 of file AlignTransform.h.

{}
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) {}

Member Function Documentation

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]

Member Data Documentation

Definition at line 55 of file AlignTransform.h.

Referenced by rotation().

Definition at line 56 of file AlignTransform.h.

Referenced by rawId().

Definition at line 54 of file AlignTransform.h.

Referenced by translation().