LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 #include <vector>
12 #include <iosfwd>
13 #include <time.h>
14 #include <stdint.h>
15 
16 namespace raw {
17 
18  typedef long long TriggerTimeStamp_t;
19 
21  public:
22  ExternalTrigger(); // Default constructor
23 
24  private:
25 
26  unsigned int fTrigID;
27  TriggerTimeStamp_t fTrigTime;
28 
29 
30  public:
31 
32  ExternalTrigger(unsigned int trigid, TriggerTimeStamp_t trigtime);
33 
34  // Set Methods
35  void SetTrigID(unsigned int i);
36  void SetTrigTime(TriggerTimeStamp_t i);
37 
38  // Get Methods
39  unsigned int GetTrigID() const;
40  TriggerTimeStamp_t GetTrigTime() const;
41 
42  };
43 
44 }
45 
46 
47 namespace raw{
48  inline void ExternalTrigger::SetTrigID(unsigned int i) { fTrigID = i; }
50  inline unsigned int ExternalTrigger::GetTrigID() const { return fTrigID; }
52 }
53 
54 #endif // EXTERNALTRIGGER_H
55 
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)