5 #include "CLHEP/Units/GlobalSystemOfUnits.h"
6 #include <Math/AxisAngle.h>
23 os << *(defined.first) <<
" ";
27 os <<
"t=" << ra.Axis().Theta()/deg <<
"deg "
28 <<
"p=" << ra.Axis().Phi()/deg <<
"deg "
29 <<
"a=" << ra.Angle()/deg <<
"deg";
33 os <<
"* rotation not defined * ";
37 os <<
"* rotation not declared * ";
49 constexpr char const* baseName =
"DdBlNa";
50 static int countBlank;
52 snprintf(buf, 64,
"%s%i", baseName, countBlank++);
78 static std::ostringstream ostr2;
101 double thetaX,
double phiX,
102 double thetaY,
double phiY,
103 double thetaZ,
double phiZ)
111 double check = (x.Cross(y)).Dot(z);
112 if (fabs(1.-check)>tol) {
113 edm::LogError(
"DDRotation") << ddname <<
" is not a RIGHT-handed orthonormal matrix!" << std::endl;
137 double thetaX,
double phiX,
138 double thetaY,
double phiY,
139 double thetaZ,
double phiZ)
148 double check = (x.Cross(y)).Dot(z);
149 if (fabs(1.+check)>tol) {
150 edm::LogError(
"DDRotation") << ddname <<
" is not a LEFT-handed orthonormal matrix!" << std::endl;
167 double thetaY,
double phiY,
168 double thetaZ,
double phiZ)
176 double check = (x.Cross(y)).Dot(z);
177 if ((1.-fabs(check))>tol) {
178 std::ostringstream
o;
179 o <<
"matrix is not an (left or right handed) orthonormal matrix! (in deg)" << std::endl
180 <<
" thetaX=" << thetaX/deg <<
" phiX=" << phiX/deg << std::endl
181 <<
" thetaY=" << thetaY/deg <<
" phiY=" << phiY/deg << std::endl
182 <<
" thetaZ=" << thetaZ/deg <<
" phiZ=" << phiZ/deg << std::endl;
const DDRotationMatrix * rotation() const
Returns the read-only rotation-matrix.
def_type isDefined() const
Sin< T >::type sin(const T &t)
DDName is used to identify DDD entities uniquely.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Represents a uniquely identifyable rotation matrix.
static value_type & instance()
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
bool check(const DataFrame &df, bool capcheck, bool dvercheck)
Cos< T >::type cos(const T &t)
#define DCOUT_V(M_v_Y, M_v_S)
DDRotation()
refers to the unit-rotation (no rotation at all)
ROOT::Math::AxisAngle DDAxisAngle
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const std::string & name() const
Returns the name.