Data structure for UTC time.
More...
#include <JDAQUTCExtended.hh>
Data structure for UTC time.
Definition at line 22 of file JDAQUTCExtended.hh.
KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 34 of file JDAQUTCExtended.hh.
uint32_t UTC_16nanosecondcycles
KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended |
( |
const uint32_t |
seconds, |
|
|
const uint32_t |
cycles |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
seconds | seconds [s] |
cycles | cycles [16 ns] |
Definition at line 46 of file JDAQUTCExtended.hh.
uint32_t UTC_16nanosecondcycles
KM3NETDAQ::JDAQUTCExtended::JDAQUTCExtended |
( |
const double |
nanoseconds | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 58 of file JDAQUTCExtended.hh.
void setTimeNanoSecond(const double utc_ns)
Set time.
virtual KM3NETDAQ::JDAQUTCExtended::~JDAQUTCExtended |
( |
| ) |
|
|
inlinevirtual |
bool KM3NETDAQ::JDAQUTCExtended::getWRStatus |
( |
| ) |
const |
|
inline |
Get White Rabbit status.
- Returns
- true if okay; else false
Definition at line 76 of file JDAQUTCExtended.hh.
static uint32_t getMask()
Get mask for seconds data.
uint32_t KM3NETDAQ::JDAQUTCExtended::getUTCseconds |
( |
| ) |
const |
|
inline |
Get major time.
- Returns
- time [s]
Definition at line 87 of file JDAQUTCExtended.hh.
static uint32_t getMask()
Get mask for seconds data.
uint32_t KM3NETDAQ::JDAQUTCExtended::getUTC16nanosecondcycles |
( |
| ) |
const |
|
inline |
Get minor time.
- Returns
- time [16 ns]
Definition at line 98 of file JDAQUTCExtended.hh.
uint32_t UTC_16nanosecondcycles
double KM3NETDAQ::JDAQUTCExtended::getTimeNanoSecond |
( |
| ) |
const |
|
inline |
Get time (limited to 16 ns cycles).
- Returns
- time [ns]
Definition at line 109 of file JDAQUTCExtended.hh.
uint32_t getUTC16nanosecondcycles() const
Get minor time.
static double getTick()
Get number of nano-seconds per tick.
uint32_t getUTCseconds() const
Get major time.
void KM3NETDAQ::JDAQUTCExtended::setTimeNanoSecond |
( |
const double |
utc_ns | ) |
|
|
inline |
Set time.
- Parameters
-
Definition at line 120 of file JDAQUTCExtended.hh.
static double getTick()
Get number of nano-seconds per tick.
uint32_t UTC_16nanosecondcycles
void KM3NETDAQ::JDAQUTCExtended::addTimeNanoSecond |
( |
const double |
t_ns | ) |
|
|
inline |
Add time.
- Parameters
-
Definition at line 132 of file JDAQUTCExtended.hh.
135 const uint32_t t_s = (uint32_t) (x_ns * 1.0e-9);
uint32_t getUTC16nanosecondcycles() const
Get minor time.
static double getTick()
Get number of nano-seconds per tick.
uint32_t UTC_16nanosecondcycles
Get minimum possible value.
- Returns
- minimum possible value
Definition at line 147 of file JDAQUTCExtended.hh.
JDAQUTCExtended()
Default constructor.
Get maximum possible value.
- Returns
- maximum possible value
Definition at line 158 of file JDAQUTCExtended.hh.
161 std::numeric_limits<uint32_t>::max());
JDAQUTCExtended()
Default constructor.
static uint32_t KM3NETDAQ::JDAQUTCExtended::getMask |
( |
| ) |
|
|
inlinestatic |
static double KM3NETDAQ::JDAQUTCExtended::getTick |
( |
| ) |
|
|
inlinestatic |
Definition of method to get size of data type.
This method should be specialised for each desired data type with fixed length.
- Returns
- number of bytes
Read UTC from input.
- Parameters
-
- Returns
- reader
Definition at line 33 of file JDAQUTCExtendedIO.hh.
uint32_t UTC_16nanosecondcycles
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Write UTC to output.
- Parameters
-
- Returns
- writer
Definition at line 49 of file JDAQUTCExtendedIO.hh.
uint32_t UTC_16nanosecondcycles
Read UTC time.
- Parameters
-
in | intput stream |
utc | UTC extended time |
- Returns
- intput stream
Definition at line 194 of file JDAQUTCExtended.hh.
uint32_t UTC_16nanosecondcycles
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JDAQUTCExtended & |
utc |
|
) |
| |
|
friend |
Write UTC time.
- Parameters
-
out | output stream |
utc | UTC extended time |
- Returns
- output stream
Definition at line 211 of file JDAQUTCExtended.hh.
215 const char c = out.fill();
uint32_t getUTC16nanosecondcycles() const
Get minor time.
uint32_t getUTCseconds() const
Get major time.
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
uint32_t KM3NETDAQ::JDAQUTCExtended::UTC_seconds |
|
protected |
uint32_t KM3NETDAQ::JDAQUTCExtended::UTC_16nanosecondcycles |
|
protected |
The documentation for this class was generated from the following file: