SEvent/StationGPSData.h
Go to the documentation of this file.
1 #ifndef _sevt_StationGPSData_h_
2 #define _sevt_StationGPSData_h_
3 
4 #include <utl/ShadowPtr_fwd.h>
5 
6 
7 namespace sevt {
8 
18 
19  public:
21  unsigned int GetSecond() const { return fSecond; }
22 
24  void SetSecond(const unsigned int sec) { fSecond = sec; }
25 
27  int GetOffset() const { return fOffset; }
28 
30  void SetOffset(const int os) { fOffset = os; }
31 
33  unsigned int GetCorrectedNanosecond() const { return fCorrectedNanosecond; }
34 
36  void SetCorrectedNanosecond(const unsigned int ns)
38 
39  unsigned int GetTick() const { return fTick; }
40  void SetTick(const unsigned int num) { fTick = num; }
41 
42  unsigned int GetTickFall() const { return fTickFall; }
43  void SetTickFall(const unsigned int num) { fTickFall = num; }
44 
45  int GetCurrent100() const { return fCurrent100; }
46  void SetCurrent100(const int num) { fCurrent100 = num; }
47 
48  int GetNext100() const { return fNext100; }
49  void SetNext100(const int num) { fNext100 = num; }
50 
51  int GetCurrent40() const { return fCurrent40; }
52  void SetCurrent40(const int num) { fCurrent40 = num; }
53 
54  int GetNext40() const { return fNext40; }
55  void SetNext40(const int num) { fNext40 = num; }
56 
57  int GetPreviousST() const { return fPreviousST; }
58  void SetPreviousST(const int num) { fPreviousST = num; }
59 
60  int GetCurrentST() const { return fCurrentST; }
61  void SetCurrentST(const int num) { fCurrentST = num; }
62 
63  int GetNextST() const { return fNextST; }
64  void SetNextST(const int num) { fNextST = num; }
65 
66  private:
67  StationGPSData() = default;
68  //~StationGPSData() = default; // std::pair needs it
69 
70  unsigned int fSecond = 0;
71  int fOffset = 0;
72  unsigned int fTick = 0;
73  unsigned int fTickFall = 0;
74  int fCurrent100 = 0;
75  int fNext100 = 0;
76  int fCurrent40 = 0;
77  int fNext40 = 0;
78  int fPreviousST = 0;
79  int fCurrentST = 0;
80  int fNextST = 0;
81  unsigned int fCorrectedNanosecond = 0;
82 
83  friend class Station;
84  friend class StationSimData;
86 
87  };
88 
89 }
90 
91 
92 #endif
pointer with built-in initialization, deletion, deep copying
Definition: ShadowPtr.h:163
StationGPSData()=default
Station Level Simulated Data
void SetCurrentST(const int num)
void SetCurrent100(const int num)
void SetNext40(const int num)
unsigned int GetSecond() const
Get end of traces raw time.
void SetTick(const unsigned int num)
void SetCurrent40(const int num)
unsigned int GetTick() const
class to hold data at Station level
int GetOffset() const
Get GPS offset compared to a reference.
const double ns
void SetSecond(const unsigned int sec)
Set end of traces raw time.
unsigned int GetCorrectedNanosecond() const
Get corrected trigger nanosecond.
void SetOffset(const int os)
Set GPS offset compared to a reference.
void SetNext100(const int num)
void SetCorrectedNanosecond(const unsigned int ns)
Set corrected trigger nanosecond.
unsigned int GetTickFall() const
void SetNextST(const int num)
void SetPreviousST(const int num)
void SetTickFall(const unsigned int num)

, generated on Tue Sep 26 2023.