9 #include <top/dbobjects/TOPGeoModuleDisplacement.h>
11 #include <Math/RotationX.h>
12 #include <Math/RotationY.h>
13 #include <Math/RotationZ.h>
14 #include <Math/Translation3D.h>
17 using namespace ROOT::Math;
25 void TOPGeoModuleDisplacement::print(
const std::string& title)
const
27 TOPGeoBase::print(title);
28 cout <<
" translation vector: (" << getX() <<
", "
29 << getY() <<
", " << getZ() <<
")" <<
" " << s_unitName << endl;
30 cout <<
" rotation angles: ";
31 cout << getAlpha() <<
" ";
32 cout << getBeta() <<
" ";
33 cout << getGamma() <<
" ";
37 Transform3D TOPGeoModuleDisplacement::getTransformation()
const
39 RotationX Rx(m_alpha);
41 RotationZ Rz(m_gamma);
42 Translation3D t(m_x, m_y, m_z);
43 return Transform3D(Rz * Ry * Rx, t);
Abstract base class for different kinds of events.