CMS 3D CMS Logo

DetPositioner.h
Go to the documentation of this file.
1 #ifndef DetPositioner_H
2 #define DetPositioner_H
3 
6 
7 /* A base class for classes which modify the positions/orientations of GeomDets.
8  * The derived classes can call the methods moveGeomDet, rotateGeomDet, setGeomDetPosition,
9  * setAlignmentPositionError and setSurfaceDeformation to change the position, orientation etc.
10  */
11 
13 public:
14  virtual ~DetPositioner() {}
15 
16 protected:
17  void moveGeomDet(GeomDet& det, const GlobalVector& displacement) { det.move(displacement); }
18 
23 
30  }
31 
38  return det.setAlignmentPositionError(ape);
39  }
40 
44  void setSurfaceDeformation(GeomDetUnit& detUnit, const SurfaceDeformation* deformation) {
45  detUnit.setSurfaceDeformation(deformation);
46  }
47 };
48 
49 #endif
Vector3DBase
Definition: Vector3DBase.h:8
TkRotation< float >
GeomDet
Definition: GeomDet.h:27
GeomDet::setPosition
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:21
SurfaceDeformation
Definition: SurfaceDeformation.h:18
DetPositioner::moveGeomDet
void moveGeomDet(GeomDet &det, const GlobalVector &displacement)
Definition: DetPositioner.h:17
DetPositioner::setGeomDetPosition
void setGeomDetPosition(GeomDet &det, const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: DetPositioner.h:28
GeomDet::rotate
void rotate(const Surface::RotationType &rotation)
Definition: GeomDet.cc:14
Point3DBase< float, GlobalTag >
DetPositioner
Definition: DetPositioner.h:12
DetPositioner::~DetPositioner
virtual ~DetPositioner()
Definition: DetPositioner.h:14
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
DetPositioner::setAlignmentPositionError
bool setAlignmentPositionError(GeomDet &det, const AlignmentPositionError &ape)
Definition: DetPositioner.h:37
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GeomDet::move
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:7
DetPositioner::rotateGeomDet
void rotateGeomDet(GeomDet &det, const Surface::RotationType &rotation)
Definition: DetPositioner.h:22
GeomDet::setAlignmentPositionError
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:25
GeomDet::setSurfaceDeformation
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:40
DetPositioner::setSurfaceDeformation
void setSurfaceDeformation(GeomDetUnit &detUnit, const SurfaceDeformation *deformation)
Definition: DetPositioner.h:44
AlignmentPositionError
Definition: AlignmentPositionError.h:10
GeomDet.h