1 #ifndef DD_CLHEPToROOTMath_h
2 #define DD_CLHEPToROOTMath_h
10 #include "CLHEP/Vector/Rotation.h"
11 #include "CLHEP/Vector/ThreeVector.h"
12 #include "CLHEP/Units/GlobalSystemOfUnits.h"
21 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.xx();
22 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xy();
23 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xz() <<
" ]" << std::endl;
24 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.yx();
25 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yy();
26 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yz() <<
" ]" << std::endl;
27 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.zx();
28 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zy();
29 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zz() <<
" ]" << std::endl;
67 double xx,
xy, xz, yx, yy, yz, zx, zy, zz;
68 r.GetComponents(xx, xy, xz, yx, yy, yz, zx, zy, zz);
69 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << xx;
70 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) <<
xy;
71 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << xz <<
" ]" << std::endl;
72 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << yx;
73 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << yy;
74 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << yz <<
" ]" << std::endl;
75 std::cout <<
"[ " << std::setw(12) << std::fixed << std::setprecision(5) << zx;
76 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << zy;
77 std::cout <<
", " << std::setw(12) << std::fixed << std::setprecision(5) << zz <<
" ]"<< std::endl;
void operator()(const DDRotationMatrix &r)
void operator()(const CLHEP::HepRotation &r)
C++ functors for output and conversion of CLHEP and ROOT::Math.
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.