Belle II Software development
TRGGDLDST.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8//-----------------------------------------------------------
9// $Id$
10//-----------------------------------------------------------
11// Filename : TRGGDLDST.h
12// Section : TRG GDL
13// Owner :
14// Email :
15//-----------------------------------------------------------
16// Description : A class to save TRG GDL information of event.
17//-----------------------------------------------------------
18// $Log$
19//-----------------------------------------------------------
20#pragma once
21#include <mdst/dataobjects/TRGSummary.h>
22#include <TObject.h>
23
24namespace Belle2 {
30 class TRGGDLDST : public TObject {
31 public:
32
34 ClassDef(TRGGDLDST, 2); /*< the class title */
35
36 TRGGDLDST() {}
37
38 ~TRGGDLDST() {}
39
41 void setTimsrcGdlTime(int top, int ecl, int cdc)
42 {
43 m_timsrc_gdl_time[2] = top;
44 m_timsrc_gdl_time[1] = ecl;
45 m_timsrc_gdl_time[0] = cdc;
46 }
47
49 unsigned getTimsrcGdlTime(int i) {return m_timsrc_gdl_time[i];}
50
52 void setT0(int top, int ecl, int cdc)
53 {
54 m_t0[2] = top;
55 m_t0[1] = ecl;
56 m_t0[0] = cdc;
57 }
58
60 unsigned getT0(int i) {return m_t0[i];}
61
63 unsigned getComL1Time(void) {return m_comL1_time;}
64
66 void setComL1Time(int comL1) {m_comL1_time = comL1;}
67
69 unsigned getGdlL1Time(void) {return m_gdlL1_time;}
70
72 void setGdlL1Time(int gdlL1) {m_gdlL1_time = gdlL1;}
73
75 void setTimType(TRGSummary::ETimingType timType) {m_timType = timType;}
76
81 {
82 return m_timType;
83 }
84
85 private:
86
88 unsigned int m_timsrc_gdl_time[3] = {0};
89
91 unsigned int m_t0[3] = {0};
92
94 unsigned int m_comL1_time = 0;
95
97 unsigned int m_gdlL1_time = 0;
98
101
102 };
103
105} // end namespace Belle2
106
107//#endif
void setGdlL1Time(int gdlL1)
set timestamp value when GDL generates L1
Definition: TRGGDLDST.h:72
unsigned int m_gdlL1_time
timestamp when GDL generates L1
Definition: TRGGDLDST.h:97
unsigned getT0(int i)
get t0 timestamp values in clk1nsec
Definition: TRGGDLDST.h:60
unsigned getGdlL1Time(void)
get timestamp value when GDL generates L1
Definition: TRGGDLDST.h:69
TRGSummary::ETimingType getTimType() const
get timing source information
Definition: TRGGDLDST.h:80
unsigned getTimsrcGdlTime(int i)
get timestamp when GDL receives timing sources
Definition: TRGGDLDST.h:49
ClassDef(TRGGDLDST, 2)
! The Class title
TRGSummary::ETimingType m_timType
types of trigger timing source defined in b2tt firmware
Definition: TRGGDLDST.h:100
unsigned int m_t0[3]
estimated t0 timestamp of 2:top,1:ecl,0:cdc
Definition: TRGGDLDST.h:91
void setTimType(TRGSummary::ETimingType timType)
set the timType
Definition: TRGGDLDST.h:75
unsigned int m_timsrc_gdl_time[3]
timestamp when GDL receives timing src, 2:top,1:ecl,0:cdc
Definition: TRGGDLDST.h:88
void setTimsrcGdlTime(int top, int ecl, int cdc)
set timestamp when GDL receives timing sources
Definition: TRGGDLDST.h:41
void setT0(int top, int ecl, int cdc)
set t0 timestamp values in clk1nsec
Definition: TRGGDLDST.h:52
unsigned int m_comL1_time
timestamp when GDL receives common L1
Definition: TRGGDLDST.h:94
unsigned getComL1Time(void)
get timestamp value when GDL receives common L1
Definition: TRGGDLDST.h:63
void setComL1Time(int comL1)
set timestamp value when GDL receives common L1
Definition: TRGGDLDST.h:66
ETimingType
types of trigger timing source defined in b2tt firmware
Definition: TRGSummary.h:43
@ TTYP_NONE
reserved (not defined yet)
Definition: TRGSummary.h:75
Abstract base class for different kinds of events.