40 const HepGeom::Transform3D& CLHEPtransf) {
42 auto rotation{t.linear()};
43 auto translation{t.translation()};
45 rotation(0, 0) = CLHEPtransf(0, 0);
46 rotation(0, 1) = CLHEPtransf(0, 1);
47 rotation(0, 2) = CLHEPtransf(0, 2);
48 rotation(1, 0) = CLHEPtransf(1, 0);
49 rotation(1, 1) = CLHEPtransf(1, 1);
50 rotation(1, 2) = CLHEPtransf(1, 2);
51 rotation(2, 0) = CLHEPtransf(2, 0);
52 rotation(2, 1) = CLHEPtransf(2, 1);
53 rotation(2, 2) = CLHEPtransf(2, 2);
54 translation[0] = CLHEPtransf(0, 3);
55 translation[1] = CLHEPtransf(1, 3);
56 translation[2] = CLHEPtransf(2, 3);
57 assert( (t.linear() * t.linear().transpose() -
58 Amg::RotationMatrix3D::Identity()).cwiseAbs().maxCoeff() < 1.e-9);
69 const CLHEP::HepRotation& CLHEProtation) {
72 t(0, 0) = CLHEProtation(0, 0);
73 t(0, 1) = CLHEProtation(0, 1);
74 t(0, 2) = CLHEProtation(0, 2);
75 t(1, 0) = CLHEProtation(1, 0);
76 t(1, 1) = CLHEProtation(1, 1);
77 t(1, 2) = CLHEProtation(1, 2);
78 t(2, 0) = CLHEProtation(2, 0);
79 t(2, 1) = CLHEProtation(2, 1);
80 t(2, 2) = CLHEProtation(2, 2);
105 CLHEP::HepRotation rotation(
106 CLHEP::Hep3Vector(eigenTransf(0, 0), eigenTransf(1, 0), eigenTransf(2, 0)),
107 CLHEP::Hep3Vector(eigenTransf(0, 1), eigenTransf(1, 1), eigenTransf(2, 1)),
108 CLHEP::Hep3Vector(eigenTransf(0, 2), eigenTransf(1, 2), eigenTransf(2, 2)));
109 CLHEP::Hep3Vector translation(eigenTransf(0, 3), eigenTransf(1, 3), eigenTransf(2, 3));
110 HepGeom::Transform3D t(rotation, translation);