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
virtual ~DetPositioner()
Definition: DetPositioner.h:14
bool setAlignmentPositionError(GeomDet &det, const AlignmentPositionError &ape)
Definition: DetPositioner.h:37
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:21
void setSurfaceDeformation(GeomDetUnit &detUnit, const SurfaceDeformation *deformation)
Definition: DetPositioner.h:44
void rotateGeomDet(GeomDet &det, const Surface::RotationType &rotation)
Definition: DetPositioner.h:22
void setGeomDetPosition(GeomDet &det, const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: DetPositioner.h:28
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:7
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:25
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:40
static int position[264][3]
Definition: ReadPGInfo.cc:289
void rotate(const Surface::RotationType &rotation)
Definition: GeomDet.cc:14
void moveGeomDet(GeomDet &det, const GlobalVector &displacement)
Definition: DetPositioner.h:17