Belle II Software  release-05-01-25
TRGGDLDST.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGGDLDST.h
5 // Section : TRG GDL
6 // Owner :
7 // Email :
8 //-----------------------------------------------------------
9 // Description : A class to save TRG GDL information of event.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 #pragma once
14 #include <mdst/dataobjects/TRGSummary.h>
15 #include <TObject.h>
16 
17 namespace Belle2 {
23  class TRGGDLDST : public TObject {
24  public:
25 
27  ClassDef(TRGGDLDST, 2); /*< the class title */
28 
29  TRGGDLDST() {}
30 
31  ~TRGGDLDST() {}
32 
34  void setTimsrcGdlTime(int top, int ecl, int cdc)
35  {
36  m_timsrc_gdl_time[2] = top;
37  m_timsrc_gdl_time[1] = ecl;
38  m_timsrc_gdl_time[0] = cdc;
39  }
40 
42  unsigned getTimsrcGdlTime(int i) {return m_timsrc_gdl_time[i];}
43 
45  void setT0(int top, int ecl, int cdc)
46  {
47  m_t0[2] = top;
48  m_t0[1] = ecl;
49  m_t0[0] = cdc;
50  }
51 
53  unsigned getT0(int i) {return m_t0[i];}
54 
56  unsigned getComL1Time(void) {return m_comL1_time;}
57 
59  void setComL1Time(int comL1) {m_comL1_time = comL1;}
60 
62  unsigned getGdlL1Time(void) {return m_gdlL1_time;}
63 
65  void setGdlL1Time(int gdlL1) {m_gdlL1_time = gdlL1;}
66 
68  void setTimType(TRGSummary::ETimingType timType) {m_timType = timType;}
69 
74  {
75  return m_timType;
76  }
77 
78  private:
79 
81  unsigned int m_timsrc_gdl_time[3] = {0};
82 
84  unsigned int m_t0[3] = {0};
85 
87  unsigned int m_comL1_time = 0;
88 
90  unsigned int m_gdlL1_time = 0;
91 
94 
95  };
96 
98 } // end namespace Belle2
99 
100 //#endif
Belle2::TRGGDLDST::getTimsrcGdlTime
unsigned getTimsrcGdlTime(int i)
get timestamp when GDL receives timing sources
Definition: TRGGDLDST.h:42
Belle2::TRGGDLDST::m_gdlL1_time
unsigned int m_gdlL1_time
timestamp when GDL generates L1
Definition: TRGGDLDST.h:90
Belle2::TRGGDLDST::setGdlL1Time
void setGdlL1Time(int gdlL1)
set timestamp value when GDL generates L1
Definition: TRGGDLDST.h:65
Belle2::TRGGDLDST::getComL1Time
unsigned getComL1Time(void)
get timestamp value when GDL receives common L1
Definition: TRGGDLDST.h:56
Belle2::TRGGDLDST::m_timType
TRGSummary::ETimingType m_timType
types of trigger timing source defined in b2tt firmware
Definition: TRGGDLDST.h:93
Belle2::TRGGDLDST::getT0
unsigned getT0(int i)
get t0 timestamp values in clk1nsec
Definition: TRGGDLDST.h:53
Belle2::TRGGDLDST::m_comL1_time
unsigned int m_comL1_time
timestamp when GDL receives common L1
Definition: TRGGDLDST.h:87
Belle2::TRGGDLDST::m_t0
unsigned int m_t0[3]
estimated t0 timestamp of 2:top,1:ecl,0:cdc
Definition: TRGGDLDST.h:84
Belle2::TRGGDLDST::ClassDef
ClassDef(TRGGDLDST, 2)
! The Class title
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGGDLDST::m_timsrc_gdl_time
unsigned int m_timsrc_gdl_time[3]
timestamp when GDL receives timing src, 2:top,1:ecl,0:cdc
Definition: TRGGDLDST.h:81
Belle2::TRGGDLDST::setT0
void setT0(int top, int ecl, int cdc)
set t0 timestamp values in clk1nsec
Definition: TRGGDLDST.h:45
Belle2::TRGGDLDST::setTimsrcGdlTime
void setTimsrcGdlTime(int top, int ecl, int cdc)
set timestamp when GDL receives timing sources
Definition: TRGGDLDST.h:34
Belle2::TRGGDLDST::setComL1Time
void setComL1Time(int comL1)
set timestamp value when GDL receives common L1
Definition: TRGGDLDST.h:59
Belle2::TRGSummary::ETimingType
ETimingType
types of trigger timing source defined in b2tt firmware
Definition: TRGSummary.h:54
Belle2::TRGSummary::TTYP_NONE
@ TTYP_NONE
reserved (not defined yet)
Definition: TRGSummary.h:86
Belle2::TRGGDLDST::getTimType
TRGSummary::ETimingType getTimType() const
get timing source information
Definition: TRGGDLDST.h:73
Belle2::TRGGDLDST
Definition: TRGGDLDST.h:23
Belle2::TRGGDLDST::getGdlL1Time
unsigned getGdlL1Time(void)
get timestamp value when GDL generates L1
Definition: TRGGDLDST.h:62
Belle2::TRGGDLDST::setTimType
void setTimType(TRGSummary::ETimingType timType)
set the timType
Definition: TRGGDLDST.h:68