CMS 3D CMS Logo

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

◆ ~DetPositioner()

virtual DetPositioner::~DetPositioner ( )
inlinevirtual

Definition at line 14 of file DetPositioner.h.

14 {}

Member Function Documentation

◆ moveGeomDet()

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

Definition at line 17 of file DetPositioner.h.

17 { det.move(displacement); }

References GeomDet::move().

◆ rotateGeomDet()

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.

22 { det.rotate(rotation); }

References GeomDet::rotate(), and idealTransformation::rotation.

◆ setAlignmentPositionError()

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.

37  {
38  return det.setAlignmentPositionError(ape);
39  }

References GeomDet::setAlignmentPositionError().

Referenced by GeometryAligner::applyAlignments().

◆ setGeomDetPosition()

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.

28  {
30  }

References position, idealTransformation::rotation, and GeomDet::setPosition().

Referenced by GeometryAligner::applyAlignments().

◆ setSurfaceDeformation()

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.

44  {
45  detUnit.setSurfaceDeformation(deformation);
46  }

References GeomDet::setSurfaceDeformation().

Referenced by GeometryAligner::attachSurfaceDeformations().

GeomDet::setPosition
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:21
GeomDet::rotate
void rotate(const Surface::RotationType &rotation)
Definition: GeomDet.cc:14
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GeomDet::move
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:7
GeomDet::setAlignmentPositionError
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:25
GeomDet::setSurfaceDeformation
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:40