Go to the documentation of this file. 1 #ifndef Alignment_CommonAlignment_Alignable_H
2 #define Alignment_CommonAlignment_Alignable_H
186 virtual void dump()
const = 0;
226 using Cache = std::map<align::RunNumber, T>;
GlobalVector theDisplacement
virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown)=0
bool firstCompsWithParams(Alignables ¶mComps) const
Alignables theDeepComponents
align::Alignables Alignables
void setAlignmentParameters(AlignmentParameters *dap)
Set the AlignmentParameters.
virtual void setAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)=0
Set the alignment position error - if (!propagateDown) do not affect daughters.
AlignableSurface theCachedSurface
virtual void dump() const =0
Recursive printout of alignable information.
virtual void rotateInGlobalFrame(const RotationType &rotation)=0
cond::RealTimeType< cond::runnumber >::type RunNumber
virtual void rotateAroundGlobalX(Scalar radians)
Rotation around global x-axis.
virtual int surfaceDeformationIdPairs(std::vector< std::pair< int, SurfaceDeformation * > > &) const =0
virtual void restoreCachedTransformation()
restore the previously cached transformation, also for possible components
virtual void rotateAroundLocalAxis(const LocalVector &axis, Scalar radians)
Rotation around arbitratry local axis.
virtual Alignments * alignments() const =0
Return vector of alignment data.
Alignable()
private default ctr. to enforce usage of the specialised ones
align::GlobalVector GlobalVector
align::StructureType StructureType
virtual void rotateAroundGlobalZ(Scalar radians)
Rotation around global z-axis.
AlignmentSurfaceDeformations * surfaceDeformations() const
Return surface deformations, sorted by DetId.
Cache< AlignableSurface > surfacesCache_
void setSurvey(const SurveyDet *)
Set survey info.
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown)=0
Set the surface deformation parameters - if (!propagateDown) do not affect daughters.
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
align::PositionType PositionType
CompConstraintType compConstraintType_
void update(align::ID, const AlignableSurface &)
virtual void addAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)=0
virtual ~Alignable()
Destructor.
void addRotation(const RotationType &rotation)
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
bool lastCompsWithParams(Alignables ¶mComps) const
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
virtual void rotateAroundGlobalY(Scalar radians)
Rotation around global y-axis.
const SurveyDet * theSurvey
AlignmentParameters * theAlignmentParameters
virtual void addAlignmentPositionErrorFromRotation(const RotationType &rotation, bool propagateDown)=0
Cache< GlobalVector > displacementsCache_
virtual void updateMother(const GlobalVector &shift)
const RotationType & rotation() const
Return change of orientation since the creation of the object.
virtual void rotateAroundGlobalAxis(const GlobalVector &axis, Scalar radians)
Rotation around arbitratry global axis.
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
virtual void addComponent(Alignable *)=0
align::RotationType RotationType
virtual void rotateAroundLocalZ(Scalar radians)
Rotation around local z-axis.
virtual void rotateInLocalFrame(const RotationType &rotation)
Rotation intepreted in the local reference frame.
const DetId & geomDetId() const
AlignableSurface theSurface
RotationType theCachedRotation
virtual void rotateAroundLocalX(Scalar radians)
Rotation around local x-axis.
virtual void move(const GlobalVector &displacement)=0
Movement with respect to the global reference frame.
void setMother(Alignable *mother)
Assign mother to alignable.
const PositionType & position() const
std::vector< Alignable * > Alignables
static unsigned const int shift
Cache< RotationType > rotationsCache_
const Alignables & deepComponents() const
virtual void rotateAroundLocalY(Scalar radians)
Rotation around local y-axis.
GlobalVector theCachedDisplacement
void addDisplacement(const GlobalVector &displacement)
virtual AlignmentErrorsExtended * alignmentErrors() const =0
Return vector of alignment errors.
virtual void cacheTransformation()
cache the current position, rotation and other parameters (e.g. surface deformations),...
const RotationType & rotation() const
const PositionType & globalPosition() const
Return the global position of the object.
virtual void recursiveComponents(Alignables &result) const =0
virtual const Alignables & components() const =0
Return vector of all direct components.
AlignmentParameters * alignmentParameters() const
Get the AlignmentParameters.
align::LocalVector LocalVector
std::map< align::RunNumber, T > Cache
const SurveyDet * survey() const
Return survey info.
virtual void recenterSurface()
Recenter surface object without moving possible components.
virtual void addSurfaceDeformation(const SurfaceDeformation *deformation, bool propagateDown)=0
const RotationType & globalRotation() const
Return the global orientation of the object.
Alignable * mother() const
Return pointer to container alignable (if any)
int size() const
Return number of direct components.
virtual CompConstraintType compConstraintType() const
Return the alignable type of contraints wrt. its components.