Belle II Software development
TRGGDLDBDelay.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#pragma once
9
10#include <TObject.h>
11
12namespace Belle2 {
27 class TRGGDLDBDelay: public TObject {
28 public:
29
33 TRGGDLDBDelay(const TRGGDLDBDelay& b): TObject(b)
34 {
35 m_ninbit = b.m_ninbit;
36 for (int i = 0; i < 320; i++) {
37 m_delay[i] = b.m_delay[i];
38 }
39 }
42 {
43 m_ninbit = b.m_ninbit;
44 for (int i = 0; i < 320; i++) {
45 m_delay[i] = b.m_delay[i];
46 }
47 return *this;
48 }
49
50 void setninbit(int i)
51 {
52 m_ninbit = i;
53 }
54 void setdelay(int i, const int j)
55 {
56 m_delay[i] = j;
57 }
58
59 int getninbit() const
60 {
61 return m_ninbit;
62 }
63 int getdelay(int i) const
64 {
65 return m_delay[i];
66 }
67
68 private:
69
72
74 int m_delay[320];
75
77 };
78
80} // end of namespace Belle2
The payload class for delay of GDL input bit.
Definition: TRGGDLDBDelay.h:27
int m_delay[320]
Number of bins per sensor along u side.
Definition: TRGGDLDBDelay.h:74
int m_ninbit
Number of bit.
Definition: TRGGDLDBDelay.h:71
TRGGDLDBDelay & operator=(const TRGGDLDBDelay &b)
assignment operator
Definition: TRGGDLDBDelay.h:41
ClassDef(TRGGDLDBDelay, 1)
ClassDef, must be the last term before the closing {}.
TRGGDLDBDelay()
Default constructor.
Definition: TRGGDLDBDelay.h:31
TRGGDLDBDelay(const TRGGDLDBDelay &b)
copy constructor
Definition: TRGGDLDBDelay.h:33
Abstract base class for different kinds of events.