SEvent/EventTrigger.h
Go to the documentation of this file.
1 #ifndef _sevt_EventTrigger_h_
2 #define _sevt_EventTrigger_h_
3 
4 #include <utl/TimeStamp.h>
5 #include <utl/LameShadowPtr_fwd.h>
6 
7 
8 namespace sevt {
9 
15  class EventTrigger {
16 
17  public:
19  unsigned int GetId() const { return fTriggerId; }
20 
22  void SetId(const unsigned int id) { fTriggerId = id; }
23 
25  unsigned int GetPreviousId() const { return fPreviousId; }
26 
28  void SetPreviousId(const unsigned int id) { fPreviousId = id; }
29 
31  unsigned int GetNStations() const { return fNStations; }
32 
34  void SetNStations(const unsigned int num) { fNStations = num; }
35 
36  // Sender and Algorithm should probably be changed to enumerations with a name lookup
37 
39  std::string GetSender() const { return fSender; }
40 
42  void SetSender(const std::string& sender) { fSender = sender; }
43 
45  std::string GetAlgorithm() const { return fAlgorithm; }
46 
48  void SetAlgorithm(const std::string& algo) { fAlgorithm = algo; }
49 
51  double GetSDPAngle() const { return fSDPAngle; }
52 
54  void SetSDPAngle(const double ang) { fSDPAngle = ang; }
55 
57  utl::TimeStamp GetTime() const { return fTime; }
58 
60  void SetTime(const utl::TimeStamp& time) { fTime = time; }
61 
62  bool IsFD() const;
63 
64  private:
65  EventTrigger() = default;
66  ~EventTrigger() = default;
67 
68  unsigned int fTriggerId = 0;
69  unsigned int fPreviousId = 0;
70  unsigned int fNStations = 0;
72  std::string fSender;
73  std::string fAlgorithm;
74  double fSDPAngle = 0;
75 
76  friend class SEvent;
78 
79  };
80 
81 }
82 
83 #endif
Interface class to access to the SD part of an event.
Definition: SEvent.h:39
void SetTime(const utl::TimeStamp &time)
Set time of the trigger.
unsigned int GetId() const
Get Id of the trigger.
void SetPreviousId(const unsigned int id)
Set Id of the FD trigger that contains data for this event.
unsigned int GetPreviousId() const
Get Id of the FD trigger that contains data for this event.
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
EventTrigger()=default
Interface class to access the Event Trigger (T3)
void SetId(const unsigned int id)
Set Id of the trigger.
unsigned int GetNStations() const
Get number of stations in the trigger.
utl::TimeStamp GetTime() const
Get time of the trigger.
void SetNStations(const unsigned int num)
Set number of stations in the trigger.
void SetSDPAngle(const double ang)
Set SDPAngle of the trigger.
void SetAlgorithm(const std::string &algo)
Set algorithm of the trigger.
~EventTrigger()=default
std::string GetAlgorithm() const
Get algorithm of the trigger.
std::string GetSender() const
Get sender of the trigger.
void SetSender(const std::string &sender)
Set sender of the trigger.
double GetSDPAngle() const
Get SDPAngle of the trigger.

, generated on Tue Sep 26 2023.