20 #ifndef CLHEPTOEIGENCONVERTER_H_
21 #define CLHEPTOEIGENCONVERTER_H_
25 #include "CLHEP/Geometry/Transform3D.h"
26 #include "CLHEP/Geometry/Point3D.h"
27 #include "CLHEP/Vector/Rotation.h"
28 #include "CLHEP/Vector/ThreeVector.h"
42 t(0, 0) = CLHEPtransf(0, 0);
43 t(0, 1) = CLHEPtransf(0, 1);
44 t(0, 2) = CLHEPtransf(0, 2);
45 t(1, 0) = CLHEPtransf(1, 0);
46 t(1, 1) = CLHEPtransf(1, 1);
47 t(1, 2) = CLHEPtransf(1, 2);
48 t(2, 0) = CLHEPtransf(2, 0);
49 t(2, 1) = CLHEPtransf(2, 1);
50 t(2, 2) = CLHEPtransf(2, 2);
51 t(0, 3) = CLHEPtransf(0, 3);
52 t(1, 3) = CLHEPtransf(1, 3);
53 t(2, 3) = CLHEPtransf(2, 3);
64 const CLHEP::HepRotation& CLHEProtation) {
67 t(0, 0) = CLHEProtation(0, 0);
68 t(0, 1) = CLHEProtation(0, 1);
69 t(0, 2) = CLHEProtation(0, 2);
70 t(1, 0) = CLHEProtation(1, 0);
71 t(1, 1) = CLHEProtation(1, 1);
72 t(1, 2) = CLHEProtation(1, 2);
73 t(2, 0) = CLHEProtation(2, 0);
74 t(2, 1) = CLHEProtation(2, 1);
75 t(2, 2) = CLHEProtation(2, 2);
86 const CLHEP::Hep3Vector& CLHEPtranslation) {
88 Vector3D(CLHEPtranslation[0], CLHEPtranslation[1],
89 CLHEPtranslation[2]));
100 const HepGeom::Translate3D& CLHEPtranslate3D)
108 t(0, 3) = CLHEPtranslate3D(0, 3);
109 t(1, 3) = CLHEPtranslate3D(1, 3);
110 t(2, 3) = CLHEPtranslate3D(2, 3);
123 CLHEP::Hep3Vector(eigenTransf(0, 0), eigenTransf(1, 0), eigenTransf(2, 0)),
124 CLHEP::Hep3Vector(eigenTransf(0, 1), eigenTransf(1, 1), eigenTransf(2, 1)),
125 CLHEP::Hep3Vector(eigenTransf(0, 2), eigenTransf(1, 2), eigenTransf(2, 2)));
126 CLHEP::Hep3Vector translation(eigenTransf(0, 3), eigenTransf(1, 3), eigenTransf(2, 3));
138 return Amg::Vector3D(CLHEPvector[0], CLHEPvector[1], CLHEPvector[2]);
148 return CLHEP::Hep3Vector(eigenvector[0], eigenvector[1], eigenvector[2]);