LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ExternalTrigger.h
Go to the documentation of this file.
1 //
3 //
4 //
5 //
7 
8 #ifndef EXTERNALTRIGGER_H
9 #define EXTERNALTRIGGER_H
10 
11 namespace raw {
12 
13  typedef long long TriggerTimeStamp_t;
14 
16  public:
17  ExternalTrigger(); // Default constructor
18 
19  private:
20  unsigned int fTrigID;
21  TriggerTimeStamp_t fTrigTime;
22 
23  public:
24  ExternalTrigger(unsigned int trigid, TriggerTimeStamp_t trigtime);
25 
26  // Set Methods
27  void SetTrigID(unsigned int i);
28  void SetTrigTime(TriggerTimeStamp_t i);
29 
30  // Get Methods
31  unsigned int GetTrigID() const;
32  TriggerTimeStamp_t GetTrigTime() const;
33  };
34 
35 }
36 
37 namespace raw {
38  inline void ExternalTrigger::SetTrigID(unsigned int i)
39  {
40  fTrigID = i;
41  }
43  {
44  fTrigTime = i;
45  }
46  inline unsigned int ExternalTrigger::GetTrigID() const
47  {
48  return fTrigID;
49  }
51  {
52  return fTrigTime;
53  }
54 }
55 
56 #endif // EXTERNALTRIGGER_H
57 
long long TriggerTimeStamp_t
type of trigger time stamp
TriggerTimeStamp_t fTrigTime
void SetTrigTime(TriggerTimeStamp_t i)
Raw data description.
Definition: RawTypes.h:6
TriggerTimeStamp_t GetTrigTime() const
unsigned int GetTrigID() const
void SetTrigID(unsigned int i)