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 
28  det. rotate( rotation);
29  }
30 
38  det.setPosition( position, rotation);
39  }
40 
47  const AlignmentPositionError& ape) {
48  return 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
bool setAlignmentPositionError(GeomDet &det, const AlignmentPositionError &ape)
Definition: DetPositioner.h:46
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:24
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
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:8
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:31
def rotate
Definition: svgfig.py:704
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:48
static int position[264][3]
Definition: ReadPGInfo.cc:509
void moveGeomDet(GeomDet &det, const GlobalVector &displacement)
Definition: DetPositioner.h:19