1#ifndef __JDAQUTCEXTENDED__ 
    2#define __JDAQUTCEXTENDED__ 
   47                    const uint32_t cycles):
 
 
  135      const uint32_t t_s   =  (uint32_t) (x_ns * 1.0e-9);
 
 
  161                             std::numeric_limits<uint32_t>::max());
 
 
  228      const char c = out.fill();
 
 
 
  272    return (second < first);
 
 
  285    return !(second < first);
 
 
  298    return !(first < second);
 
 
  325    return !(first == second);
 
 
  341    return utc_s  +  utc_ns*1.0e-9;
 
 
Interface for binary input.
 
Interface for binary output.
 
Data structure for UTC time.
 
void addTimeNanoSecond(const double t_ns)
Add time.
 
static uint32_t getMask()
Get mask for seconds data.
 
uint32_t getUTC16nanosecondcycles() const
Get minor time.
 
friend std::istream & operator>>(std::istream &in, JDAQUTCExtended &utc)
Read UTC time.
 
static JDAQUTCExtended max()
Get maximum possible value.
 
friend JWriter & operator<<(JWriter &, const JDAQUTCExtended &)
Write UTC to output.
 
void setTimeNanoSecond(const double utc_ns)
Set time.
 
virtual ~JDAQUTCExtended()
Virtual destructor.
 
bool getWRStatus() const
Get White Rabbit status.
 
JDAQUTCExtended(const uint32_t seconds, const uint32_t cycles)
Constructor.
 
friend JReader & operator>>(JReader &, JDAQUTCExtended &)
Read UTC from input.
 
static double getTick()
Get number of nano-seconds per tick.
 
uint32_t UTC_16nanosecondcycles
 
friend std::ostream & operator<<(std::ostream &out, const JDAQUTCExtended &utc)
Write UTC time.
 
static JDAQUTCExtended min()
Get minimum possible value.
 
uint32_t getUTCseconds() const
Get major time.
 
static const JDAQUTCExtended & getInstance()
Get arbitrary offset (e.g.
 
double getTimeNanoSecond() const
Get time (limited to 16 ns cycles).
 
JDAQUTCExtended(const double nanoseconds)
Constructor.
 
ClassDef(JDAQUTCExtended, 1)
 
JDAQUTCExtended()
Default constructor.
 
bool operator==(const Head &first, const Head &second)
Equal operator.
 
bool operator<(const Head &first, const Head &second)
Less than operator.
 
bool operator!=(const JTag &first, const JTag &second)
Not equal operator for JTag.
 
KM3NeT DAQ data structures and auxiliaries.
 
bool operator>=(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Greater than or equal operator for UTC times.
 
size_t getSizeof< JDAQUTCExtended >()
Get size of type.
 
double getTimeDifference(const JDAQChronometer &first, const JDAQChronometer &second)
Get time difference between two chronometers.
 
bool operator<=(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Less than or equal operator for UTC times.
 
bool operator>(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Greater than operator for UTC times.