| 
    Jpp 19.3.0-rc.3
    
   the software that should make you happy 
   | 
 
Module geometry. More...
#include <JModuleGeometry.hh>
  
Public Member Functions | |
| JModuleGeometry () | |
| Default constructor.   | |
| JModuleGeometry (const JDAQUTCExtended &utc, const JModuleIdentifier &id, const JPosition3D &pos, const JEulerAngle3D &angle) | |
| Constructor.   | |
| bool | getWRStatus () const | 
| Get White Rabbit status.   | |
| uint32_t | getUTCseconds () const | 
| Get major time.   | |
| uint32_t | getUTC16nanosecondcycles () const | 
| Get minor time.   | |
| double | getTimeNanoSecond () const | 
| Get time (limited to 16 ns cycles).   | |
| void | setTimeNanoSecond (const double utc_ns) | 
| Set time.   | |
| void | addTimeNanoSecond (const double t_ns) | 
| Add time.   | |
| ClassDef (JDAQUTCExtended, 1) | |
| int | getID () const | 
| Get identifier.   | |
| int & | getID () | 
| Get identifier.   | |
| void | setID (const int id) | 
| Set identifier.   | |
| bool | less (const JObjectID &object) const | 
| Less than method.   | |
| bool | less (const int id) const | 
| Less than method.   | |
| bool | more (const int id) const | 
| More than method.   | |
| const JPosition3D & | getPosition () const | 
| Get position.   | |
| JPosition3D & | getPosition () | 
| Get position.   | |
| void | setPosition (const JVector3D &pos) | 
| Set position.   | |
| operator JAngle3D () const | |
| Type conversion operator.   | |
| operator JVersor3D () const | |
| Type conversion operator.   | |
| JPosition3D & | rotate (const JRotation3D &R) | 
| Rotate.   | |
| JPosition3D & | rotate (const JRotation3X &R) | 
| Rotate around X-axis.   | |
| JPosition3D & | rotate (const JRotation3Y &R) | 
| Rotate around Y-axis.   | |
| JPosition3D & | rotate (const JRotation3Z &R) | 
| Rotate around Z-axis.   | |
| JPosition3D & | rotate (const JQuaternion3D &Q) | 
| Rotate.   | |
| JPosition3D & | rotate_back (const JRotation3D &R) | 
| Rotate back.   | |
| JPosition3D & | rotate_back (const JRotation3X &R) | 
| Rotate back around X-axis.   | |
| JPosition3D & | rotate_back (const JRotation3Y &R) | 
| Rotate back around Y-axis.   | |
| JPosition3D & | rotate_back (const JRotation3Z &R) | 
| Rotate back around Z-axis.   | |
| JPosition3D & | rotate_back (const JQuaternion3D &Q) | 
| Rotate back.   | |
| void | transform (const JRotation3D &R, const JVector3D &pos) | 
| Transform position.   | |
| JVector3D & | transform (const JMatrix3D &T) | 
| Transform.   | |
| void | transform_back (const JRotation3D &R, const JVector3D &pos) | 
| Transform back position.   | |
| double | getDot (const JAngle3D &angle) const | 
| Get dot product.   | |
| double | getDot (const JVersor3D &dir) const | 
| Get dot product.   | |
| double | getDot (const JVersor3Z &dir) const | 
| Get dot product.   | |
| double | getDot (const JVector3D &vector) const | 
| Get dot product.   | |
| operator JVector2D () const | |
| Type conversion operator.   | |
| double | getX () const | 
| Get x position.   | |
| double | getY () const | 
| Get y position.   | |
| double | getZ () const | 
| Get z position.   | |
| JVector3D & | negate () | 
| Negate vector.   | |
| JVector3D & | add (const JVector3D &vector) | 
| Add vector.   | |
| JVector3D & | sub (const JVector3D &vector) | 
| Subtract vector.   | |
| JVector3D & | mul (const double factor) | 
| Scale vector.   | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.   | |
| JVector3D & | div (const double factor) | 
| Scale vector.   | |
| bool | equals (const JVector3D &vector, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.   | |
| double | getLengthSquared () const | 
| Get length squared.   | |
| double | getLength () const | 
| Get length.   | |
| double | getDistanceSquared (const JVector3D &pos) const | 
| Get squared of distance to point.   | |
| double | getDistance (const JVector3D &pos) const | 
| Get distance to point.   | |
| JVector3D & | getCross (const JVector3D &first, const JVector3D &second) | 
| Get cross product.   | |
| const JEulerAngle3D & | getEulerAngle () const | 
| Get Euler angle.   | |
| void | setEulerAngle (const JEulerAngle3D &angle) | 
| Set Euler angle.   | |
| JEulerAngle3D & | negate () | 
| Negate angle.   | |
| JEulerAngle3D & | add (const JEulerAngle3D &angle) | 
| Add angle.   | |
| JEulerAngle3D & | sub (const JEulerAngle3D &angle) | 
| Subtract angle.   | |
| JEulerAngle3D & | mul (const double factor) | 
| Scale angle.   | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object.   | |
| JEulerAngle3D & | div (const double factor) | 
| Scale angle.   | |
| double | getAlpha () const | 
| Get alpha angle.   | |
| double | getBeta () const | 
| Get beta angle.   | |
| double | getGamma () const | 
| Get gamma angle.   | |
Static Public Member Functions | |
| static JDAQUTCExtended | min () | 
| Get minimum possible value.   | |
| static JDAQUTCExtended | max () | 
| Get maximum possible value.   | |
| static uint32_t | getMask () | 
| Get mask for seconds data.   | |
| static double | getTick () | 
| Get number of nano-seconds per tick.   | |
| static const JDAQUTCExtended & | getInstance () | 
| Get arbitrary offset (e.g.   | |
Protected Attributes | |
| uint32_t | UTC_seconds | 
| uint32_t | UTC_16nanosecondcycles | 
| int | __id | 
| double | __x | 
| double | __y | 
| double | __z | 
| double | __alpha | 
| double | __beta | 
| double | __gamma | 
Friends | |
| std::istream & | operator>> (std::istream &in, JModuleGeometry &geometry) | 
| Read module geometry from input.   | |
| std::ostream & | operator<< (std::ostream &out, const JModuleGeometry &geometry) | 
| Write module geometry to output.   | |
| JReader & | operator>> (JReader &in, JModuleGeometry &geometry) | 
| Read module geometry from input.   | |
| JWriter & | operator<< (JWriter &out, const JModuleGeometry &geometry) | 
| Write module geometry to output.   | |
Module geometry.
Definition at line 30 of file JModuleGeometry.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 40 of file JModuleGeometry.hh.
      
  | 
  inline | 
Constructor.
| utc | UTC | 
| id | module identifier | 
| pos | module position | 
| angle | module orientation | 
Definition at line 56 of file JModuleGeometry.hh.
      
  | 
  inlineinherited | 
Get White Rabbit status.
Definition at line 76 of file JDAQUTCExtended.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get minor time.
Definition at line 98 of file JDAQUTCExtended.hh.
      
  | 
  inlineinherited | 
Get time (limited to 16 ns cycles).
Definition at line 109 of file JDAQUTCExtended.hh.
      
  | 
  inlineinherited | 
Set time.
| utc_ns | time [ns] | 
Definition at line 120 of file JDAQUTCExtended.hh.
      
  | 
  inlineinherited | 
Add time.
| t_ns | time [ns] | 
Definition at line 132 of file JDAQUTCExtended.hh.
      
  | 
  inlinestaticinherited | 
Get minimum possible value.
Definition at line 147 of file JDAQUTCExtended.hh.
      
  | 
  inlinestaticinherited | 
Get maximum possible value.
Definition at line 158 of file JDAQUTCExtended.hh.
      
  | 
  inlinestaticinherited | 
Get mask for seconds data.
Definition at line 170 of file JDAQUTCExtended.hh.
      
  | 
  inlinestaticinherited | 
Get number of nano-seconds per tick.
Definition at line 181 of file JDAQUTCExtended.hh.
      
  | 
  inlinestaticinherited | 
Get arbitrary offset (e.g.
for accuracy of time differences).
Definition at line 192 of file JDAQUTCExtended.hh.
      
  | 
  inherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Less than method.
| object | object identifier | 
Definition at line 84 of file JObjectID.hh.
      
  | 
  inlineinherited | 
Less than method.
| id | identifier | 
Definition at line 96 of file JObjectID.hh.
      
  | 
  inlineinherited | 
More than method.
| id | identifier | 
Definition at line 108 of file JObjectID.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Rotate.
| R | rotation matrix | 
Definition at line 186 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate around X-axis.
| R | rotation matrix | 
Definition at line 214 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate around Y-axis.
| R | rotation matrix | 
Definition at line 242 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate around Z-axis.
| R | rotation matrix | 
Definition at line 270 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Rotate back.
| R | rotation matrix | 
Definition at line 200 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate back around X-axis.
| R | rotation matrix | 
Definition at line 228 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate back around Y-axis.
| R | rotation matrix | 
Definition at line 256 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate back around Z-axis.
| R | rotation matrix | 
Definition at line 284 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Rotate back.
| Q | quaternion | 
Definition at line 312 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Transform position.
The final position is obtained as follows:
| R | rotation matrix | 
| pos | position of origin (after rotation) | 
Definition at line 331 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Transform back position.
The final position is obtained as follows:
| R | rotation matrix | 
| pos | position of origin (before rotation) | 
Definition at line 359 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| angle | angle | 
Definition at line 378 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| dir | direction | 
Definition at line 393 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| dir | direction | 
Definition at line 408 of file JPosition3D.hh.
      
  | 
  inlineinherited | 
Get dot product.
| vector | vector | 
Definition at line 282 of file JVector3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Subtract vector.
| vector | vector | 
Definition at line 158 of file JVector3D.hh.
      
  | 
  inlineinherited | 
Scale vector.
| factor | multiplication factor | 
Definition at line 174 of file JVector3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Scale vector.
| factor | division factor | 
Definition at line 190 of file JVector3D.hh.
      
  | 
  inlineinherited | 
Check equality.
| vector | vector | 
| precision | precision | 
Definition at line 221 of file JVector3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get length.
Definition at line 246 of file JVector3D.hh.
      
  | 
  inlineinherited | 
Get squared of distance to point.
| pos | position | 
Definition at line 258 of file JVector3D.hh.
      
  | 
  inlineinherited | 
Get distance to point.
| pos | position | 
Definition at line 270 of file JVector3D.hh.
      
  | 
  inlineinherited | 
Get cross product.
Note that this vector should not overlap with the first or second vector,
| first | first vector | 
| second | second vector | 
Definition at line 299 of file JVector3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Negate angle.
Definition at line 117 of file JEulerAngle3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Subtract angle.
| angle | angle | 
Definition at line 149 of file JEulerAngle3D.hh.
      
  | 
  inlineinherited | 
Scale angle.
| factor | multiplication factor | 
Definition at line 165 of file JEulerAngle3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Scale angle.
| factor | division factor | 
Definition at line 181 of file JEulerAngle3D.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  friend | 
Read module geometry from input.
| in | input stream | 
| geometry | module geometry | 
Definition at line 74 of file JModuleGeometry.hh.
      
  | 
  friend | 
Write module geometry to output.
| out | output stream | 
| geometry | module geometry | 
Definition at line 92 of file JModuleGeometry.hh.
      
  | 
  friend | 
Read module geometry from input.
| in | reader | 
| geometry | module geometry | 
Definition at line 113 of file JModuleGeometry.hh.
      
  | 
  friend | 
Write module geometry to output.
| out | writer | 
| geometry | module geometry | 
Definition at line 131 of file JModuleGeometry.hh.
      
  | 
  protectedinherited | 
Definition at line 242 of file JDAQUTCExtended.hh.
      
  | 
  protectedinherited | 
Definition at line 243 of file JDAQUTCExtended.hh.
      
  | 
  protectedinherited | 
Definition at line 140 of file JObjectID.hh.
      
  | 
  protectedinherited | 
Definition at line 310 of file JVector3D.hh.
      
  | 
  protectedinherited | 
Definition at line 311 of file JVector3D.hh.
      
  | 
  protectedinherited | 
Definition at line 312 of file JVector3D.hh.
      
  | 
  protectedinherited | 
Definition at line 293 of file JEulerAngle3D.hh.
      
  | 
  protectedinherited | 
Definition at line 294 of file JEulerAngle3D.hh.
      
  | 
  protectedinherited | 
Definition at line 295 of file JEulerAngle3D.hh.