CMS 3D CMS Logo

DetPositioner Class Reference

#include <Geometry/CommonDetUnit/interface/DetPositioner.h>

Inheritance diagram for DetPositioner:

GeometryAligner

List of all members.

Public Member Functions

virtual ~DetPositioner ()

Protected Member Functions

void moveGeomDet (GeomDet &det, const GlobalVector &displacement)
void rotateGeomDet (GeomDet &det, const Surface::RotationType &rotation)
 Relative rotation (with respect to current orientation) Does not move components (if any).
void setAlignmentPositionError (GeomDet &det, const AlignmentPositionError &ape)
 create the AlignmentPositionError for this Det if not existing yet, or replace the existing one by the given one.
void setGeomDetPosition (GeomDet &det, const Surface::PositionType &position, const Surface::RotationType &rotation)
 Replaces the current position and rotation with new ones; actually replaces the surface with a new surface.


Detailed Description

Definition at line 12 of file DetPositioner.h.


Constructor & Destructor Documentation

virtual DetPositioner::~DetPositioner (  )  [inline, virtual]

Definition at line 15 of file DetPositioner.h.

00015 {}


Member Function Documentation

void DetPositioner::moveGeomDet ( GeomDet det,
const GlobalVector displacement 
) [inline, protected]

Definition at line 19 of file DetPositioner.h.

References GeomDet::move().

00019                                                                     {
00020     det.move( displacement);
00021   }

void DetPositioner::rotateGeomDet ( GeomDet det,
const Surface::RotationType rotation 
) [inline, protected]

Relative rotation (with respect to current orientation) Does not move components (if any).

Definition at line 27 of file DetPositioner.h.

00027                                                                          {
00028     det. rotate( rotation);
00029   }

void DetPositioner::setAlignmentPositionError ( GeomDet det,
const AlignmentPositionError ape 
) [inline, protected]

create the AlignmentPositionError for this Det if not existing yet, or replace the existing one by the given one.

For adding, use the +=,-= methods of the AlignmentPositionError Does not affect the AlignmentPositionError of components (if any).

Definition at line 46 of file DetPositioner.h.

References GeomDet::setAlignmentPositionError().

Referenced by GeometryAligner::applyAlignments().

00047                                                                      {
00048     det.setAlignmentPositionError( ape);
00049   }

void DetPositioner::setGeomDetPosition ( GeomDet det,
const Surface::PositionType position,
const Surface::RotationType rotation 
) [inline, protected]

Replaces the current position and rotation with new ones; actually replaces the surface with a new surface.

Does not move components (if any).

Definition at line 35 of file DetPositioner.h.

References GeomDet::setPosition().

Referenced by GeometryAligner::applyAlignments().

00037                                                                 {
00038     det.setPosition( position, rotation);
00039   }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:18:24 2009 for CMSSW by  doxygen 1.5.4