13 #ifndef DD4HEP_ALIGNMENT_GLOBALALIGNMENT_H
14 #define DD4HEP_ALIGNMENT_GLOBALALIGNMENT_H
20 #include "TGeoPhysicalNode.h"
26 namespace Alignments {
49 :
Handle<TGeoPhysicalNode>(p) {
55 :
Handle<TGeoPhysicalNode>(e) {
Transform3D toMother(int level=-1) const
Access the currently applied alignment/placement matrix with respect to mother volume.
Transform3D delta() const
Access the currently applied correction matrix (delta) (mother to daughter)
Transform3D toGlobal(int level=-1) const
Access the currently applied alignment/placement matrix with respect to the world.
Transform3D nominal() const
Access the currently applied alignment/placement matrix (mother to daughter)
Main handle class to hold a TGeo alignment object of type TGeoPhysicalNode.
GlobalAlignment(TGeoPhysicalNode *p)
Default constructor.
int numNodes() const
Number of nodes in this branch (=depth of the placement hierarchy from the top level volume) ...
GlobalAlignment(const Handle< Q > &e)
Constructor to be used when reading the already parsed object.
PlacedVolume motherPlacement(int level_up=1) const
Access the placement of the mother of this node.
Transform3D invDelta() const
Access the inverse of the currently applied correction matrix (delta) (mother to daughter) ...
ROOT::Math::RotationZYX RotationZYX
Geometry::Position Position
ROOT::Math::XYZVector Position
GlobalAlignment()
Default constructor.
Geometry::Transform3D Transform3D
PlacedVolume placement() const
Access the placement of this node.
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
Geometry::RotationZYX RotationZYX
GlobalAlignment & operator=(const GlobalAlignment &c)
Assignment operator.
Position globalToLocal(const Position &globalPoint, int level=-1) const
Transform a point from global coordinates to local coordinates of a given level.
PlacedVolume nodePlacement(int level=-1) const
Access the placement of a node in the chain of placements for this branch.
ROOT::Math::Transform3D Transform3D