REvent/StationTriggerData.h
Go to the documentation of this file.
1 #ifndef _revt_StationTriggerData_h_
2 #define _revt_StationTriggerData_h_
3 
4 #include <stdint.h>
5 
6 #include <utl/ShadowPtr_fwd.h>
7 
8 
9 namespace revt {
10 
20 
21  public:
23  eNone = 0,
28  eSD,
30  eFD,
36  };
37 
39  eNoSelf = 0,
45  };
46 
49  };
50 
53  };
54 
57 
59  void SetTriggerSource(const TriggerSource TrigSource) { fTrigSource = TrigSource; }
60 
63 
65  void SetSelfTriggerType(const SelfTriggerType SelfTrig) { fSelfTrig = SelfTrig; }
66 
69 
71  void SetExternalTriggerType(const ExternalTriggerType ExtTrig) { fExtTrig = ExtTrig; }
72 
75 
77  void SetPeriodicTriggerType(const PeriodicTriggerType PeriodicTrig) { fPeriodicTrig = PeriodicTrig; }
78 
80  uint32_t GetBitPattern() const { return fBitPattern; }
81 
83  void SetBitPattern(const uint32_t BitPattern) { fBitPattern = BitPattern; }
84 
86  int GetSelfTriggerTime() const { return fSelfTriggerTime; }
87 
89  void SetSelfTriggerTime(const int SelfTriggerTime) { fSelfTriggerTime = SelfTriggerTime; }
90 
92  int GetSelfTriggerBin() const { return fSelfTriggerBin; }
93 
95  void SetSelfTriggerBin(const int SelfTriggerBin) { fSelfTriggerBin = SelfTriggerBin; }
96 
98  int GetSelfTriggerAmp() const { return fSelfTriggerAmp; }
99 
101  void SetSelfTriggerAmp(const double SelfTriggerAmp) { fSelfTriggerAmp = SelfTriggerAmp; }
102 
104  void SetOffset(const int offset) { fOffset = offset; }
105 
107  int GetOffset() const { return fOffset; }
108 
109  private:
112 
117  uint32_t fBitPattern = 0;
120  double fSelfTriggerAmp = 0;
121 
122  int fOffset = 0;
123 
124  friend class Station;
126 
127  };
128 
129 }
130 
131 
132 #endif
pointer with built-in initialization, deletion, deep copying
Definition: ShadowPtr.h:163
void SetOffset(const int offset)
Set postTrigger time in bins.
Station Trigger Data description
SelfTriggerType GetSelfTriggerType() const
Get the type of the stations self trigger algorithm.
PeriodicTriggerType GetPeriodicTriggerType() const
Get the type of Periodic trigger algorithm.
uint32_t GetBitPattern() const
Get the hardware&#39;s resulting trigger bit pattern.
void SetExternalTriggerType(const ExternalTriggerType ExtTrig)
Set the type of external trigger.
int GetOffset() const
Get postTrigger time in bins.
void SetBitPattern(const uint32_t BitPattern)
Set the hardware&#39;s resulting trigger bit pattern.
class to hold data at the radio Station level.
void SetSelfTriggerBin(const int SelfTriggerBin)
Set the Selfttriggerbin in case of T2Threshold trigger.
int GetSelfTriggerAmp() const
Set the Selfttriggeramp in case of T2Threshold trigger.
int GetSelfTriggerTime() const
Set the Selfttriggertime in case of T2Threshold trigger.
TriggerSource GetTriggerSource() const
Get the Trigger Source of the station, i.e. if it triggered itself or was triggered by the central st...
void SetSelfTriggerType(const SelfTriggerType SelfTrig)
Set the type of the stations self trigger algorithm.
void SetPeriodicTriggerType(const PeriodicTriggerType PeriodicTrig)
Set the type of Periodic trigger algorithm.
void SetSelfTriggerTime(const int SelfTriggerTime)
Set the Selfttriggertime in case of T2Threshold trigger.
void SetSelfTriggerAmp(const double SelfTriggerAmp)
Set the Selfttriggeramp in case of T2Threshold trigger.
void SetTriggerSource(const TriggerSource TrigSource)
Set the Trigger Source of the station, i.e. if it triggered itself or was triggered by the central st...
ExternalTriggerType GetExternalTriggerType() const
Get the type of external trigger.
int GetSelfTriggerBin() const
Set the Selfttriggerbin in case of T2Threshold trigger.

, generated on Tue Sep 26 2023.