Jpp  master_rocky
the software that should make you happy
Public Member Functions | Public Attributes | Friends | List of all members
JCOMPASS::JOrientation Struct Reference

Orientation of module. More...

#include <JEvt.hh>

Inheritance diagram for JCOMPASS::JOrientation:
JCOMPASS::JQuaternion TObject

Public Member Functions

 JOrientation ()
 Default constructor. More...
 
 JOrientation (const int id, const double ts, const JQuaternion &Q)
 Constructor. More...
 
 ClassDefNV (JOrientation, 1)
 
 ClassDefNV (JQuaternion, 1)
 

Public Attributes

int id
 module identifier More...
 
double t
 time [s] More...
 
double a
 
double b
 
double c
 
double d
 

Friends

std::ostream & operator<< (std::ostream &out, const JOrientation &object)
 Write orientation to output. More...
 

Detailed Description

Orientation of module.

Definition at line 91 of file JCompass/JEvt.hh.

Constructor & Destructor Documentation

◆ JOrientation() [1/2]

JCOMPASS::JOrientation::JOrientation ( )
inline

Default constructor.

Definition at line 98 of file JCompass/JEvt.hh.

98  :
99  JQuaternion(),
100  id(-1),
101  t (0)
102  {}
int id
module identifier
JQuaternion()
Default constructor.

◆ JOrientation() [2/2]

JCOMPASS::JOrientation::JOrientation ( const int  id,
const double  ts,
const JQuaternion Q 
)
inline

Constructor.

Parameters
idmodule identifier
tstime [s]
Qorientation

Definition at line 112 of file JCompass/JEvt.hh.

114  :
115  JQuaternion(Q),
116  id(id),
117  t (ts)
118  {}

Member Function Documentation

◆ ClassDefNV() [1/2]

JCOMPASS::JOrientation::ClassDefNV ( JOrientation  ,
 
)

◆ ClassDefNV() [2/2]

JCOMPASS::JQuaternion::ClassDefNV ( JQuaternion  ,
 
)
inherited

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const JOrientation object 
)
friend

Write orientation to output.

Parameters
outoutput stream
objectorientation
Returns
output stream

Definition at line 128 of file JCompass/JEvt.hh.

129  {
130  using namespace std;
131 
132  out << setw(10) << object.id << ' '
133  << FIXED(20,0) << object.t << ' '
134  << static_cast<const JQuaternion&>(object) << endl;
135 
136  return out;
137  }
Definition: JSTDTypes.hh:14
Auxiliary data structure for floating point format specification.
Definition: JManip.hh:448

Member Data Documentation

◆ id

int JCOMPASS::JOrientation::id

module identifier

Definition at line 142 of file JCompass/JEvt.hh.

◆ t

double JCOMPASS::JOrientation::t

time [s]

Definition at line 143 of file JCompass/JEvt.hh.

◆ a

double JCOMPASS::JQuaternion::a
inherited

Definition at line 81 of file JCompass/JEvt.hh.

◆ b

double JCOMPASS::JQuaternion::b
inherited

Definition at line 82 of file JCompass/JEvt.hh.

◆ c

double JCOMPASS::JQuaternion::c
inherited

Definition at line 83 of file JCompass/JEvt.hh.

◆ d

double JCOMPASS::JQuaternion::d
inherited

Definition at line 84 of file JCompass/JEvt.hh.


The documentation for this struct was generated from the following file: