14 #include "TGeoMatrix.h" 17 #include "CLHEP/Geometry/Transform3D.h" 18 #include "CLHEP/Vector/Rotation.h" 19 #include "CLHEP/Vector/RotationInterfaces.h" 20 #include "CLHEP/Vector/ThreeVector.h" 30 (std::vector<TGeoNode const*>
const& path,
size_t depth)
33 TGeoHMatrix matrix = *(path[0]->GetMatrix());
34 for(
size_t i = 1; i <= depth; ++i)
35 matrix.Multiply(path[i]->GetMatrix());
45 (std::vector<TGeoNode const*>
const& path,
size_t depth)
51 const Double_t* translation =
mat.GetTranslation();
52 return HepGeom::Transform3D(
53 CLHEP::HepRotation(CLHEP::HepRep3x3(
mat.GetRotationMatrix())),
54 CLHEP::Hep3Vector(translation[0], translation[1], translation[2])
Namespace collecting geometry-related classes utilities.