CMS 3D CMS Logo

AlignableComposite.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_AlignableComposite_H
2 #define Alignment_CommonAlignment_AlignableComposite_H
3 
5 
22 
23 class GeomDet;
24 
26 {
27 
28 public:
33  StructureType aType,
34  const RotationType& rot = RotationType() );
35 
37  virtual ~AlignableComposite();
38 
41  void update(align::ID,
42  StructureType aType,
43  const RotationType& rot = RotationType());
44 
48  virtual void addComponent( Alignable* component );
49 
51  virtual Alignables components() const { return theComponents; }
52 
54  virtual void recursiveComponents(Alignables &result) const;
55 
57  virtual void move( const GlobalVector& displacement );
58 
60  virtual void moveComponentsLocal( const LocalVector& localDisplacement );
61 
63  virtual void moveComponentLocal( const int i, const LocalVector& localDisplacement );
64 
66  virtual void rotateInGlobalFrame( const RotationType& rotation );
67 
70  virtual void setAlignmentPositionError( const AlignmentPositionError& ape, bool propagateDown );
71 
74  virtual void addAlignmentPositionError( const AlignmentPositionError& ape, bool propagateDown );
75 
78  virtual void addAlignmentPositionErrorFromRotation( const RotationType& rotation, bool propagateDown );
79 
82  virtual void addAlignmentPositionErrorFromLocalRotation( const RotationType& rotation, bool propagateDown );
83 
85  virtual void setSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown);
86 
89  virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown);
90 
92  virtual StructureType alignableObjectId() const { return theStructureType; }
93 
95  virtual void dump() const;
96 
98  virtual Alignments* alignments() const;
99 
101  virtual AlignmentErrorsExtended* alignmentErrors() const;
102 
104  virtual int surfaceDeformationIdPairs(std::vector<std::pair<int,SurfaceDeformation*> > &) const;
105 
106 protected:
108  explicit AlignableComposite( const GeomDet* geomDet );
109 
112  void update(const GeomDet* geomDet);
113 
114  // avoid implicit cast of not explicitely defined version to the defined ones
115  template<class T> void update(T) = delete;
116 
117  void setSurface( const AlignableSurface& s) { theSurface = s; }
118 
120 
121 private:
124 
125  Alignables theComponents; // direct daughters
126 };
127 
128 #endif
AlignableComposite()
default constructor hidden
uint32_t ID
Definition: Definitions.h:26
virtual void addAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
Definition: Alignable.h:144
virtual void setAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)
virtual void dump() const
Recursive printout of alignable structure.
virtual void recursiveComponents(Alignables &result) const
Provide all components, subcomponents etc. (cf. description in base class)
virtual void moveComponentsLocal(const LocalVector &localDisplacement)
Move with respect to the local reference frame.
const RotationType & rotation() const
Return change of orientation since the creation of the object.
Definition: Alignable.h:147
StructureType theStructureType
void setSurface(const AlignableSurface &s)
virtual void move(const GlobalVector &displacement)
Move with respect to the global reference frame.
virtual StructureType alignableObjectId() const
Return the alignable type identifier.
virtual Alignments * alignments() const
Return alignment data.
virtual void moveComponentLocal(const int i, const LocalVector &localDisplacement)
Move a single component with respect to the local reference frame.
virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown)
virtual int surfaceDeformationIdPairs(std::vector< std::pair< int, SurfaceDeformation * > > &) const
Return surface deformations.
align::RotationType RotationType
Definition: Alignable.h:34
virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown)
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown)
Set the surface deformation parameters - if (!propagateDown) do not affect daughters.
virtual ~AlignableComposite()
deleting its components
virtual void addAlignmentPositionErrorFromRotation(const RotationType &rotation, bool propagateDown)
virtual Alignables components() const
Return vector of direct components.
void update(align::ID, StructureType aType, const RotationType &rot=RotationType())
long double T
align::Alignables Alignables
Definition: Alignable.h:37
virtual void rotateInGlobalFrame(const RotationType &rotation)
Rotation interpreted in global reference frame.
virtual AlignmentErrorsExtended * alignmentErrors() const
Return vector of alignment errors.
AlignableSurface theSurface
Definition: Alignable.h:243
virtual void addComponent(Alignable *component)