LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
TriggerData.h
Go to the documentation of this file.
1 // TriggerData/TriggerData.h
2 #ifndef TRIGGERDATA_H
3 #define TRIGGERDATA_H
4 
5 // C++ includes
6 #include <vector>
7 #include <limits>
8 #include <stdexcept>
9 #include <iostream>
10 namespace raw {
11 
12  class Trigger {
13 
14  public:
15 
18  {
20 
23 
24  fTriggerBits = 0x0;
25  }
26 
27  private:
28 
29  unsigned int fTriggerNumber;
30  double fTriggerTime;
31  double fBeamGateTime;
32  unsigned int fTriggerBits;
33 
34  public:
35 
36 
38  Trigger(unsigned int counter,
39  double trigger_time,
40  double beamgate_time,
41  uint32_t bits)
42  : fTriggerNumber ( counter ),
43  fTriggerTime ( trigger_time ),
44  fBeamGateTime ( beamgate_time ),
45  fTriggerBits ( bits )
46  {}
47 
49  unsigned int TriggerNumber() const { return fTriggerNumber; }
51  double TriggerTime () const { return fTriggerTime; }
53  double BeamGateTime () const { return fBeamGateTime; }
55  unsigned int TriggerBits () const { return fTriggerBits; }
57  bool Triggered(const unsigned char bit) const;
58 
59  };
60 }
61 
62 #endif
Trigger(unsigned int counter, double trigger_time, double beamgate_time, uint32_t bits)
Alternative constructor.
Definition: TriggerData.h:38
unsigned int TriggerNumber() const
Trigger number.
Definition: TriggerData.h:49
bool Triggered(const unsigned char bit) const
Accessor to specific bit.
Definition: TriggerData.cxx:9
Raw data description.
Definition: RawTypes.h:6
double TriggerTime() const
Trigger time w.r.t. electronics clock T0 in us.
Definition: TriggerData.h:51
Int_t max
Definition: plot.C:27
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:32
double BeamGateTime() const
BeamGate time w.r.t. electronics clock T0 in us.
Definition: TriggerData.h:53
Trigger()
Default ctor.
Definition: TriggerData.h:17
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:30
unsigned int TriggerBits() const
Trigger Bits.
Definition: TriggerData.h:55
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:29
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:31