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