CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 14 of file DetPositioner.h.

14 {}

Member Function Documentation

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

Definition at line 17 of file DetPositioner.h.

References GeomDet::move().

17 { det.move(displacement); }
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:7
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 22 of file DetPositioner.h.

References GeomDet::rotate().

22 { det.rotate(rotation); }
void rotate(const Surface::RotationType &rotation)
Definition: GeomDet.cc:14
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 37 of file DetPositioner.h.

References GeomDet::setAlignmentPositionError().

Referenced by GeometryAligner::applyAlignments().

37  {
38  return det.setAlignmentPositionError(ape);
39  }
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:25
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 28 of file DetPositioner.h.

References GeomDet::setPosition().

Referenced by GeometryAligner::applyAlignments().

28  {
29  det.setPosition(position, rotation);
30  }
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:21
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 44 of file DetPositioner.h.

References GeomDet::setSurfaceDeformation().

Referenced by GeometryAligner::attachSurfaceDeformations().

44  {
45  detUnit.setSurfaceDeformation(deformation);
46  }
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:40