Belle II Software light-2406-ragdoll
TRGGDLDBInputBits Class Reference

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

#include <TRGGDLDBInputBits.h>

Inheritance diagram for TRGGDLDBInputBits:
Collaboration diagram for TRGGDLDBInputBits:

Public Member Functions

 TRGGDLDBInputBits ()
 Default constructor.
 
 TRGGDLDBInputBits (const TRGGDLDBInputBits &b)
 copy constructor
 
TRGGDLDBInputBitsoperator= (const TRGGDLDBInputBits &b)
 assignment operator
 
void setinbitname (int i, const char *c)
 set name of i-th input trigger bit
 
void setninbit (int i)
 set the number of input trigger bits
 
const char * getinbitname (int i) const
 get name of i-th input trigger bit
 
int getninbit () const
 get the number of input trigger bits
 
int getinbitnum (const char *c) const
 get name of i-th input trigger bit
 

Private Member Functions

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

Private Attributes

int m_ninbit
 Number of bit.
 
char m_inbitname [320][100]
 Number of bins per sensor along u side.
 

Detailed Description

The payload class for GDL input bit.

The payload class stores the number of input bit and their names value of a missing name is ""

Definition at line 25 of file TRGGDLDBInputBits.h.

Constructor & Destructor Documentation

◆ TRGGDLDBInputBits() [1/2]

TRGGDLDBInputBits ( )
inline

Default constructor.

Definition at line 29 of file TRGGDLDBInputBits.h.

29: m_ninbit{0}, m_inbitname{} {}
char m_inbitname[320][100]
Number of bins per sensor along u side.
int m_ninbit
Number of bit.

◆ TRGGDLDBInputBits() [2/2]

TRGGDLDBInputBits ( const TRGGDLDBInputBits b)
inline

copy constructor

Definition at line 31 of file TRGGDLDBInputBits.h.

31 : TObject(b)
32 {
33 m_ninbit = b.m_ninbit;
34 for (int i = 0; i < 320; i++) {
35 strcpy(m_inbitname[i], b.m_inbitname[i]);
36 }
37 }

Member Function Documentation

◆ getinbitname()

const char * getinbitname ( int  i) const
inline

get name of i-th input trigger bit

Definition at line 58 of file TRGGDLDBInputBits.h.

59 {
60 return m_inbitname[i];
61 }

◆ getinbitnum()

int getinbitnum ( const char *  c) const
inline

get name of i-th input trigger bit

Definition at line 68 of file TRGGDLDBInputBits.h.

69 {
70 for (int i = 0; i < 320; i++) {
71 if (strcmp(c, m_inbitname[i]) == 0)return i;
72 }
73 return -1;
74 }

◆ getninbit()

int getninbit ( ) const
inline

get the number of input trigger bits

Definition at line 63 of file TRGGDLDBInputBits.h.

64 {
65 return m_ninbit;
66 }

◆ operator=()

TRGGDLDBInputBits & operator= ( const TRGGDLDBInputBits b)
inline

assignment operator

Definition at line 39 of file TRGGDLDBInputBits.h.

40 {
41 m_ninbit = b.m_ninbit;
42 for (int i = 0; i < 320; i++) {
43 strcpy(m_inbitname[i], b.m_inbitname[i]);
44 }
45 return *this;
46 }

◆ setinbitname()

void setinbitname ( int  i,
const char *  c 
)
inline

set name of i-th input trigger bit

Definition at line 48 of file TRGGDLDBInputBits.h.

49 {
50 strcpy(m_inbitname[i], c);
51 }

◆ setninbit()

void setninbit ( int  i)
inline

set the number of input trigger bits

Definition at line 53 of file TRGGDLDBInputBits.h.

54 {
55 m_ninbit = i;
56 }

Member Data Documentation

◆ m_inbitname

char m_inbitname[320][100]
private

Number of bins per sensor along u side.

Definition at line 82 of file TRGGDLDBInputBits.h.

◆ m_ninbit

int m_ninbit
private

Number of bit.

Definition at line 79 of file TRGGDLDBInputBits.h.


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