CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignableDetUnit.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_AlignableDetUnit_H
2 #define Alignment_CommonAlignment_AlignableDetUnit_H
3 
6 
7 
12 
13 class AlignableDetUnit : public Alignable
14 {
15 
16 public:
17 
19  AlignableDetUnit(const GeomDetUnit *geomDetUnit);
20 
22  virtual ~AlignableDetUnit();
23 
25  virtual void addComponent( Alignable* );
26 
28  virtual Alignables components() const { return Alignables(); }
29 
31  virtual void recursiveComponents(Alignables &result) const {}
32 
34  virtual void move( const GlobalVector& displacement );
35 
37  virtual void rotateInGlobalFrame( const RotationType& rotation );
38 
40  virtual void setAlignmentPositionError(const AlignmentPositionError &ape, bool /*propDown*/);
41 
44  virtual void addAlignmentPositionError(const AlignmentPositionError& ape, bool /*propDown*/);
45 
49  virtual void addAlignmentPositionErrorFromRotation(const RotationType& rot, bool /*propDown*/);
50 
54  virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType& rot, bool /*propDown*/);
55 
57  virtual void setSurfaceDeformation(const SurfaceDeformation *deformation, bool);
59  virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool);
60 
63 
65  virtual void dump() const;
66 
68  virtual Alignments* alignments() const;
69 
72 
74  virtual int surfaceDeformationIdPairs(std::vector<std::pair<int,SurfaceDeformation*> > &) const;
75 
77  virtual void cacheTransformation();
78 
80  virtual void restoreCachedTransformation();
81 
84 
85 private:
86 
90 };
91 
92 #endif
virtual void addAlignmentPositionErrorFromRotation(const RotationType &rot, bool)
virtual void rotateInGlobalFrame(const RotationType &rotation)
Rotation with respect to the global reference frame.
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
Definition: Alignable.h:135
virtual void addAlignmentPositionError(const AlignmentPositionError &ape, bool)
SurfaceDeformation * theCachedSurfaceDeformation
virtual void move(const GlobalVector &displacement)
Move with respect to the global reference frame.
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation, bool)
Set surface deformation parameters (2nd argument without effect)
const RotationType & rotation() const
Return change of orientation since the creation of the object.
Definition: Alignable.h:138
AlignableDetUnit(const GeomDetUnit *geomDetUnit)
Constructor from GeomDetUnit - must not be NULL pointer!
virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rot, bool)
tuple result
Definition: query.py:137
virtual Alignments * alignments() const
Return vector of alignment data.
virtual void setAlignmentPositionError(const AlignmentPositionError &ape, bool)
Set the AlignmentPositionError (no components =&gt; second argument ignored)
virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool)
Add surface deformation parameters to the existing ones (2nd argument without effect) ...
virtual void dump() const
Printout information about GeomDet.
const AlignmentPositionError * alignmentPositionError() const
alignment position error - for checking only, otherwise use alignmentErrors() above! ...
virtual int surfaceDeformationIdPairs(std::vector< std::pair< int, SurfaceDeformation * > > &) const
Return surface deformations.
virtual ~AlignableDetUnit()
Destructor.
virtual void addComponent(Alignable *)
No components here =&gt; exception!
align::RotationType RotationType
Definition: Alignable.h:36
virtual StructureType alignableObjectId() const
Return the alignable type identifier.
virtual void cacheTransformation()
cache the current position, rotation and other parameters (e.g. surface deformations) ...
virtual AlignmentErrorsExtended * alignmentErrors() const
Return vector of alignment errors.
virtual Alignables components() const
Returns a null vector (no components here)
virtual void restoreCachedTransformation()
restore the previously cached transformation
AlignmentPositionError * theAlignmentPositionError
virtual void recursiveComponents(Alignables &result) const
Do nothing (no components here, so no subcomponents either...)
SurfaceDeformation * theSurfaceDeformation
align::Alignables Alignables
Definition: Alignable.h:39