File indexing completed on 2024-04-06 11:56:05
0001 #ifndef Alignment_CommonAlignment_AlignableDetUnit_H
0002 #define Alignment_CommonAlignment_AlignableDetUnit_H
0003
0004 #include "Alignment/CommonAlignment/interface/Alignable.h"
0005 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0006
0007
0008
0009
0010
0011
0012 class AlignableDetUnit : public Alignable {
0013 public:
0014
0015 AlignableDetUnit(const GeomDetUnit* geomDetUnit);
0016
0017
0018 ~AlignableDetUnit() override;
0019
0020
0021
0022 void update(const GeomDetUnit* geomDetUnit);
0023
0024
0025 void addComponent(Alignable*) final;
0026
0027
0028 const Alignables& components() const override { return emptyComponents_; }
0029
0030
0031 void recursiveComponents(Alignables& result) const override {}
0032
0033
0034 void move(const GlobalVector& displacement) override;
0035
0036
0037 void rotateInGlobalFrame(const RotationType& rotation) override;
0038
0039
0040 void setAlignmentPositionError(const AlignmentPositionError& ape, bool ) final;
0041
0042
0043
0044 void addAlignmentPositionError(const AlignmentPositionError& ape, bool ) final;
0045
0046
0047
0048
0049 void addAlignmentPositionErrorFromRotation(const RotationType& rot, bool ) final;
0050
0051
0052
0053
0054 void addAlignmentPositionErrorFromLocalRotation(const RotationType& rot, bool ) final;
0055
0056
0057 void setSurfaceDeformation(const SurfaceDeformation* deformation, bool) final;
0058
0059 void addSurfaceDeformation(const SurfaceDeformation* deformation, bool) final;
0060
0061
0062 StructureType alignableObjectId() const override { return align::AlignableDetUnit; }
0063
0064
0065 void dump() const override;
0066
0067
0068 Alignments* alignments() const override;
0069
0070
0071 AlignmentErrorsExtended* alignmentErrors() const override;
0072
0073
0074 int surfaceDeformationIdPairs(std::vector<std::pair<int, SurfaceDeformation*> >&) const override;
0075
0076
0077 void cacheTransformation() override;
0078
0079
0080 void cacheTransformation(const align::RunNumber&) override;
0081
0082
0083 void restoreCachedTransformation() override;
0084
0085
0086 void restoreCachedTransformation(const align::RunNumber&) override;
0087
0088
0089 const AlignmentPositionError* alignmentPositionError() const { return theAlignmentPositionError; }
0090
0091 private:
0092 static const Alignables emptyComponents_;
0093 AlignmentPositionError* theAlignmentPositionError;
0094 SurfaceDeformation* theSurfaceDeformation;
0095 SurfaceDeformation* theCachedSurfaceDeformation;
0096 Cache<SurfaceDeformation*> surfaceDeformationsCache_;
0097 };
0098
0099 #endif