RawTrigger.h
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////////////////////////////
2 /// \brief Definition of basic raw Trigger information.
3 /// See definition of all trigger fields in the
4 /// DAQDataFormats documentation, NOvA-DocDB-4390 in the section "Trigger Formats".
5 /// \author denis@fnal.gov
6 /// \date
7 /////////////////////////////////////////////////////////////////////////////////////////
8 #ifndef RAWTRIGGER_H
9 #define RAWTRIGGER_H
10 
11 #include <iomanip>
12 #include <iosfwd>
13 #include <iostream>
14 #include <stdint.h>
15 #include <string>
16 #include <vector>
17 
18 namespace rawdata {
19 
20  class RawTrigger
21  {
22  public:
23  RawTrigger(); // Default constructor
24  ~RawTrigger();
25 
26  // using unsigned long long instead of uint64_t to ensure the same
27  // behavior with OSX and Linux
28  unsigned long long TDCT0() const;
29 
30  public:
34  unsigned long long fTriggerHeader_TriggerNumber;
36  unsigned long long fTriggerTime_GenTime;
38  unsigned long long fTriggerTimingMarker_TimeStart;
45 
46  friend std::ostream& operator << (std::ostream& o, const RawTrigger& rt);
47 
48  private:
49 
50  };
51 }
52 
53 #endif // RAWTRIGGER_H
54 ///////////////////////////////////////////////////////////////////////////////////////////
uint32_t fTriggerMask_Prescale
Definition: RawTrigger.h:44
uint32_t fTriggerHeader_SourceSubID
Definition: RawTrigger.h:33
uint8_t fTriggerHeader_Source
Definition: RawTrigger.h:31
Definition of connection map class.
Definition: CMap.h:19
uint8_t fTriggerTime_ClockSource
Definition: RawTrigger.h:37
uint8_t fTriggerMask_TriggerType
Definition: RawTrigger.h:43
uint8_t fTriggerMask_TMod
Definition: RawTrigger.h:42
unsigned long long fTriggerHeader_MasterTriggerNumber
Definition: RawTrigger.h:35
unsigned long long fTriggerTimingMarker_ExtractionStart
Definition: RawTrigger.h:39
unsigned long long fTriggerTime_GenTime
Definition: RawTrigger.h:36
uint16_t fTriggerHeader_SourceID
Definition: RawTrigger.h:32
unsigned long long fTriggerHeader_TriggerNumber
Definition: RawTrigger.h:34
unsigned long long fTriggerTimingMarker_TimeStart
Definition: RawTrigger.h:38
friend std::ostream & operator<<(std::ostream &o, const RawTrigger &rt)
Definition: RawTrigger.cxx:51
uint32_t fTriggerRange_TriggerLength
Definition: RawTrigger.h:40
unsigned long long TDCT0() const
Return just the lower 32 bits of the timing marker. This is the reference "t0" for the RawDigit TDC c...
Definition: RawTrigger.cxx:44