CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
DetPositioner Class Reference

#include <DetPositioner.h>

Inheritance diagram for DetPositioner:
GeometryAligner

Public Member Functions

virtual ~DetPositioner ()
 

Protected Member Functions

void moveGeomDet (GeomDet &det, const GlobalVector &displacement)
 
void rotateGeomDet (GeomDet &det, const Surface::RotationType &rotation)
 
bool setAlignmentPositionError (GeomDet &det, const AlignmentPositionError &ape)
 
void setGeomDetPosition (GeomDet &det, const Surface::PositionType &position, const Surface::RotationType &rotation)
 
void setSurfaceDeformation (GeomDetUnit &detUnit, const SurfaceDeformation *deformation)
 

Detailed Description

Definition at line 12 of file DetPositioner.h.

Constructor & Destructor Documentation

virtual DetPositioner::~DetPositioner ( )
inlinevirtual

Definition at line 15 of file DetPositioner.h.

15 {}

Member Function Documentation

void DetPositioner::moveGeomDet ( GeomDet det,
const GlobalVector displacement 
)
inlineprotected

Definition at line 19 of file DetPositioner.h.

References GeomDet::move().

19  {
20  det.move( displacement);
21  }
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:8
void DetPositioner::rotateGeomDet ( GeomDet det,
const Surface::RotationType rotation 
)
inlineprotected

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

Definition at line 27 of file DetPositioner.h.

References svgfig::rotate().

27  {
28  det. rotate( rotation);
29  }
def rotate
Definition: svgfig.py:704
bool DetPositioner::setAlignmentPositionError ( GeomDet det,
const AlignmentPositionError ape 
)
inlineprotected

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().

47  {
48  return det.setAlignmentPositionError( ape);
49  }
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:31
void DetPositioner::setGeomDetPosition ( GeomDet det,
const Surface::PositionType position,
const Surface::RotationType rotation 
)
inlineprotected

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().

37  {
38  det.setPosition( position, rotation);
39  }
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:24
void DetPositioner::setSurfaceDeformation ( GeomDetUnit detUnit,
const SurfaceDeformation deformation 
)
inlineprotected

set the SurfaceDeformation for this DetUnit. Does not affect the SurfaceDeformation of components (if any).

Definition at line 54 of file DetPositioner.h.

References GeomDet::setSurfaceDeformation().

Referenced by GeometryAligner::attachSurfaceDeformations().

55  {
56  detUnit.setSurfaceDeformation( deformation );
57  }
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:48