TimeStamp_ROOT.h
Go to the documentation of this file.
1 #ifndef _TimeStamp_ROOT_h_
2 #define _TimeStamp_ROOT_h_
3 
4 #include <io/EventIO.h>
5 #ifndef __CINT__
6 # include <utl/TimeStamp.h>
7 #endif
8 #include <Rtypes.h>
9 
10 
11 namespace io {
12 
22  public:
24 #ifndef __CINT__
26  : fGPSSec(t.GetGPSSecond()), fGPSNanoSec(t.GetGPSNanoSecond()) { }
27  void operator>>(utl::TimeStamp& t) const { t = Convert(); }
28  void Set(const utl::TimeStamp& t)
31 #endif
32  bool operator<(const TimeStamp_ROOT& t) const
33  { return fGPSSec < t.fGPSSec || (fGPSSec == t.fGPSSec && fGPSNanoSec < t.fGPSNanoSec); }
34 
35  unsigned int fGPSSec = 0;
36  double fGPSNanoSec = 0;
37 
39 
40  };
41 
42 }
43 
44 
45 #endif
void Set(const utl::TimeStamp &t)
unsigned int fGPSSec
ClassDefNV(TimeStamp_ROOT, DONT_CHANGE_THIS_NUMBER)
bool operator<(const TimeStamp_ROOT &t) const
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
utl::TimeStamp Convert() const
unsigned long GetGPSSecond() const
GPS second.
Definition: TimeStamp.h:124
#define DONT_CHANGE_THIS_NUMBER
Definition: EventIO.h:21
double GetGPSNanoSecond() const
GPS nanosecond.
Definition: TimeStamp.h:127
void operator>>(utl::TimeStamp &t) const
TimeStamp_ROOT(const utl::TimeStamp &t)

, generated on Tue Sep 26 2023.