RawTrigger.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \brief RawTrigger class
3 /// \author jpaley@indiana.edu
4 /// \date
5 ////////////////////////////////////////////////////////////////////////
6 #include "RawData/RawTrigger.h"
7 
8 #include <iostream>
9 #include <string>
10 
11 namespace rawdata{
12 
13  //----------------------------------------------------------------------
14 
15  RawTrigger::RawTrigger() : fTriggerHeader_Source(0),
16  fTriggerHeader_SourceID(0),
17  fTriggerHeader_SourceSubID(0),
18  fTriggerHeader_TriggerNumber(0),
19  fTriggerHeader_MasterTriggerNumber(0),
20  fTriggerTime_GenTime(0),
21  fTriggerTime_ClockSource(0),
22  fTriggerTimingMarker_TimeStart(0),
23  fTriggerTimingMarker_ExtractionStart(0),
24  fTriggerRange_TriggerLength(0),
25  fTriggerMask_MCBit(false),
26  fTriggerMask_TMod(0),
27  fTriggerMask_TriggerType(0),
28  fTriggerMask_Prescale(0)
29  {
30  }
31 
32  //----------------------------------------------------------------------
33 
35 
36  //----------------------------------------------------------------------
37  ///
38  /// \brief Return just the lower 32 bits of the timing marker. This is the
39  /// reference "t0" for the RawDigit TDC counters.
40  ///
41  /// \todo There may be some issues with roll-overs with this simple
42  /// treatment.
43  ///
44  unsigned long long RawTrigger::TDCT0() const
45  {
46  unsigned long long mask = 0xFFFFFFFF;
48  }
49 
50  //------------------------------------------------------------
51  std::ostream& operator<< (std::ostream& o, const RawTrigger& rt)
52  {
53  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
54  o << "TDCT0 = " << std::setw(5) << std::right << rt.TDCT0()
55  << " Trigger Header Source = " << std::setw(5) << std::right << rt.fTriggerHeader_Source
56  << " Trigger Mask Type = " << std::setw(5) << std::right << rt.fTriggerMask_TriggerType
57  << " Trigger Length = " << std::setw(5) << std::right << rt.fTriggerRange_TriggerLength
58  << " Trigger Time Start = " << std::setw(5) << std::right << rt.fTriggerTimingMarker_TimeStart;
59 
60  return o;
61  }
62 
63 } // end namespace rawdata
64 ////////////////////////////////////////////////////////////////////////
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
uint8_t fTriggerHeader_Source
Definition: RawTrigger.h:31
Definition of connection map class.
Definition: CMap.h:19
uint8_t fTriggerMask_TriggerType
Definition: RawTrigger.h:43
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