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.
 
static const JDAQUTCExtended & getInstance()
Get arbitrary offset (e.g.
 
friend JWriter & operator<<(JWriter &, const JDAQUTCExtended &)
Write UTC to output.
 
void addTimeNanoSecond(const double t_ns)
Add time.
 
static uint32_t getMask()
Get mask for seconds data.
 
uint32_t getUTC16nanosecondcycles() const
Get minor time.
 
static JDAQUTCExtended max()
Get maximum possible value.
 
friend std::istream & operator>>(std::istream &in, JDAQUTCExtended &utc)
Read UTC time.
 
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.
 
static double getTick()
Get number of nano-seconds per tick.
 
uint32_t UTC_16nanosecondcycles
 
static JDAQUTCExtended min()
Get minimum possible value.
 
uint32_t getUTCseconds() const
Get major time.
 
double getTimeNanoSecond() const
Get time (limited to 16 ns cycles).
 
friend JReader & operator>>(JReader &, JDAQUTCExtended &)
Read UTC from input.
 
JDAQUTCExtended(const double nanoseconds)
Constructor.
 
ClassDef(JDAQUTCExtended, 1)
 
JDAQUTCExtended()
Default constructor.
 
friend std::ostream & operator<<(std::ostream &out, const JDAQUTCExtended &utc)
Write UTC time.
 
KM3NeT DAQ data structures and auxiliaries.
 
bool operator<(const JDAQHit &first, const JDAQHit &second)
Less than operator for DAQ hits.
 
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 JDAQChronometer &first, const JDAQChronometer &second)
Not-equal operator for DAQ chronometers.
 
bool operator<=(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Less than or equal operator for UTC times.
 
bool operator==(const JDAQChronometer &first, const JDAQChronometer &second)
Equal operator for DAQ chronometers.
 
bool operator>(const JDAQUTCExtended &first, const JDAQUTCExtended &second)
Greater than operator for UTC times.