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)
32 TGeoHMatrix matrix = *(path[0]->GetMatrix());
33 for(
size_t i = 1; i <= depth; ++i){
34 matrix.Multiply(path[i]->GetMatrix());
44 (std::vector<TGeoNode const*>
const& path,
size_t depth)
50 const Double_t* translation = mat.GetTranslation();
51 return HepGeom::Transform3D(
52 CLHEP::HepRotation(CLHEP::HepRep3x3(mat.GetRotationMatrix())),
53 CLHEP::Hep3Vector(translation[0], translation[1], translation[2])
General GArSoft Utilities.
LArSoft geometry interface.