CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
15  virtual ~DetPositioner() {}
16 
17 protected:
18 
19  void moveGeomDet( GeomDet& det, const GlobalVector& displacement) {
20  det.move( displacement);
21  }
22 
23 
27  void rotateGeomDet( GeomDet& det, const Surface::RotationType& rotation) {
28  det. rotate( rotation);
29  }
30 
37  const Surface::RotationType& rotation) {
38  det.setPosition( position, rotation);
39  }
40 
47  const AlignmentPositionError& ape) {
48  det.setAlignmentPositionError( ape);
49  }
50 
55  const SurfaceDeformation* deformation) {
56  detUnit.setSurfaceDeformation( deformation );
57  }
58 
59 };
60 
61 #endif
virtual ~DetPositioner()
Definition: DetPositioner.h:15
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:32
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
void setSurfaceDeformation(GeomDetUnit &detUnit, const SurfaceDeformation *deformation)
Definition: DetPositioner.h:54
void rotateGeomDet(GeomDet &det, const Surface::RotationType &rotation)
Definition: DetPositioner.h:27
void setGeomDetPosition(GeomDet &det, const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: DetPositioner.h:35
virtual void setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:39
void setAlignmentPositionError(GeomDet &det, const AlignmentPositionError &ape)
Definition: DetPositioner.h:46
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:16
def rotate
Definition: svgfig.py:704
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDetUnit.cc:19
void moveGeomDet(GeomDet &det, const GlobalVector &displacement)
Definition: DetPositioner.h:19