CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
25 class AlignableComposite : public Alignable {
26 public:
31 
33  ~AlignableComposite() override;
34 
37  void update(align::ID, StructureType aType, const RotationType& rot = RotationType());
38 
42  void addComponent(Alignable* component) final;
43 
45  const Alignables& components() const override { return theComponents; }
46 
48  void recursiveComponents(Alignables& result) const override;
49 
51  void move(const GlobalVector& displacement) override;
52 
54  virtual void moveComponentsLocal(const LocalVector& localDisplacement);
55 
57  virtual void moveComponentLocal(const int i, const LocalVector& localDisplacement);
58 
60  void rotateInGlobalFrame(const RotationType& rotation) override;
61 
64  void setAlignmentPositionError(const AlignmentPositionError& ape, bool propagateDown) override;
65 
68  void addAlignmentPositionError(const AlignmentPositionError& ape, bool propagateDown) override;
69 
72  void addAlignmentPositionErrorFromRotation(const RotationType& rotation, bool propagateDown) override;
73 
76  void addAlignmentPositionErrorFromLocalRotation(const RotationType& rotation, bool propagateDown) override;
77 
79  void setSurfaceDeformation(const SurfaceDeformation* deformation, bool propagateDown) override;
80 
83  void addSurfaceDeformation(const SurfaceDeformation* deformation, bool propagateDown) override;
84 
86  StructureType alignableObjectId() const override { return theStructureType; }
87 
89  void dump() const override;
90 
92  Alignments* alignments() const override;
93 
95  AlignmentErrorsExtended* alignmentErrors() const override;
96 
98  int surfaceDeformationIdPairs(std::vector<std::pair<int, SurfaceDeformation*> >&) const override;
99 
100  // avoid implicit cast of not explicitely defined version to the defined ones
101  template <class T>
102  void update(T) = delete;
103 
104 protected:
106  explicit AlignableComposite(const GeomDet* geomDet);
107 
110  void update(const GeomDet* geomDet);
111 
113 
115 
116 private:
119 
120  Alignables theComponents; // direct daughters
121 };
122 
123 #endif
void addAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown) override
void addAlignmentPositionErrorFromRotation(const RotationType &rotation, bool propagateDown) override
void setSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown) override
Set the surface deformation parameters - if (!propagateDown) do not affect daughters.
void rotateInGlobalFrame(const RotationType &rotation) override
Rotation interpreted in global reference frame.
StructureType alignableObjectId() const override
Return the alignable type identifier.
AlignableComposite()
default constructor hidden
uint32_t ID
Definition: Definitions.h:24
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
Definition: Alignable.h:141
int surfaceDeformationIdPairs(std::vector< std::pair< int, SurfaceDeformation * > > &) const override
Return surface deformations.
const Alignables & components() const override
Return vector of direct components.
void move(const GlobalVector &displacement) override
Move with respect to the global reference frame.
void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown) override
void recursiveComponents(Alignables &result) const override
Provide all components, subcomponents etc. (cf. description in base class)
void setAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown) override
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
tuple result
Definition: mps_fire.py:311
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:144
StructureType theStructureType
void setSurface(const AlignableSurface &s)
Alignments * alignments() const override
Return alignment data.
virtual void moveComponentLocal(const int i, const LocalVector &localDisplacement)
Move a single component with respect to the local reference frame.
void dump() const override
Recursive printout of alignable structure.
void addSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown) override
align::RotationType RotationType
Definition: Alignable.h:31
~AlignableComposite() override
deleting its components
void update(align::ID, StructureType aType, const RotationType &rot=RotationType())
long double T
align::Alignables Alignables
Definition: Alignable.h:34
void addComponent(Alignable *component) final
AlignableSurface theSurface
Definition: Alignable.h:237