Belle II Software development
TRGGDLDBDelay Class Reference

The payload class for delay of GDL input bit. More...

#include <TRGGDLDBDelay.h>

Inheritance diagram for TRGGDLDBDelay:

Public Member Functions

 TRGGDLDBDelay ()
 Default constructor.
 
 TRGGDLDBDelay (const TRGGDLDBDelay &b)
 copy constructor
 
TRGGDLDBDelayoperator= (const TRGGDLDBDelay &b)
 assignment operator
 
void setninbit (int i)
 
void setdelay (int i, const int j)
 
int getninbit () const
 
int getdelay (int i) const
 

Private Member Functions

 ClassDef (TRGGDLDBDelay, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

int m_ninbit
 Number of bit.
 
int m_delay [320]
 Number of bins per sensor along u side.
 

Detailed Description

The payload class for delay of GDL input bit.

The payload class stores the number of input bit and their delay value of a missing delay is "-1"

Definition at line 27 of file TRGGDLDBDelay.h.

Constructor & Destructor Documentation

◆ TRGGDLDBDelay() [1/2]

TRGGDLDBDelay ( )
inline

Default constructor.

Definition at line 31 of file TRGGDLDBDelay.h.

31: m_ninbit{0}, m_delay{0} {}
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() [2/2]

TRGGDLDBDelay ( const TRGGDLDBDelay b)
inline

copy constructor

Definition at line 33 of file TRGGDLDBDelay.h.

33 : 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 }

Member Function Documentation

◆ getdelay()

int getdelay ( int  i) const
inline

Definition at line 63 of file TRGGDLDBDelay.h.

64 {
65 return m_delay[i];
66 }

◆ getninbit()

int getninbit ( ) const
inline

Definition at line 59 of file TRGGDLDBDelay.h.

60 {
61 return m_ninbit;
62 }

◆ operator=()

TRGGDLDBDelay & operator= ( const TRGGDLDBDelay b)
inline

assignment operator

Definition at line 41 of file TRGGDLDBDelay.h.

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 }

◆ setdelay()

void setdelay ( int  i,
const int  j 
)
inline

Definition at line 54 of file TRGGDLDBDelay.h.

55 {
56 m_delay[i] = j;
57 }

◆ setninbit()

void setninbit ( int  i)
inline

Definition at line 50 of file TRGGDLDBDelay.h.

51 {
52 m_ninbit = i;
53 }

Member Data Documentation

◆ m_delay

int m_delay[320]
private

Number of bins per sensor along u side.

Definition at line 74 of file TRGGDLDBDelay.h.

◆ m_ninbit

int m_ninbit
private

Number of bit.

Definition at line 71 of file TRGGDLDBDelay.h.


The documentation for this class was generated from the following file: