Belle II Software development
TRGGDLDBFTDLBits Class Reference

The payload class for FTDL output bit. More...

#include <TRGGDLDBFTDLBits.h>

Inheritance diagram for TRGGDLDBFTDLBits:

Public Member Functions

 TRGGDLDBFTDLBits ()
 Default constructor.
 
 TRGGDLDBFTDLBits (const TRGGDLDBFTDLBits &b)
 copy constructor
 
TRGGDLDBFTDLBitsoperator= (const TRGGDLDBFTDLBits &b)
 assignment operator
 
void setoutbitname (int i, const char *c)
 set name of i-th output trigger bit
 
void setnoutbit (int i)
 set the number of output trigger bits
 
const char * getoutbitname (int i) const
 get name of i-th output trigger bit
 
int getnoutbit () const
 get the number of output trigger bits
 
int getoutbitnum (const char *c) const
 get name of i-th input trigger bit
 

Private Member Functions

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

Private Attributes

int m_noutbit
 Number of bit.
 
char m_outbitname [320][100]
 Name of bit.
 

Detailed Description

The payload class for FTDL output bit.

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

Definition at line 24 of file TRGGDLDBFTDLBits.h.

Constructor & Destructor Documentation

◆ TRGGDLDBFTDLBits() [1/2]

TRGGDLDBFTDLBits ( )
inline

Default constructor.

Definition at line 28 of file TRGGDLDBFTDLBits.h.

28: m_noutbit{0}, m_outbitname{} {}
char m_outbitname[320][100]
Name of bit.
int m_noutbit
Number of bit.

◆ TRGGDLDBFTDLBits() [2/2]

TRGGDLDBFTDLBits ( const TRGGDLDBFTDLBits b)
inline

copy constructor

Definition at line 30 of file TRGGDLDBFTDLBits.h.

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

Member Function Documentation

◆ getnoutbit()

int getnoutbit ( ) const
inline

get the number of output trigger bits

Definition at line 62 of file TRGGDLDBFTDLBits.h.

63 {
64 return m_noutbit;
65 }

◆ getoutbitname()

const char * getoutbitname ( int  i) const
inline

get name of i-th output trigger bit

Definition at line 57 of file TRGGDLDBFTDLBits.h.

58 {
59 return m_outbitname[i];
60 }

◆ getoutbitnum()

int getoutbitnum ( const char *  c) const
inline

get name of i-th input trigger bit

Definition at line 67 of file TRGGDLDBFTDLBits.h.

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

◆ operator=()

TRGGDLDBFTDLBits & operator= ( const TRGGDLDBFTDLBits b)
inline

assignment operator

Definition at line 38 of file TRGGDLDBFTDLBits.h.

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

◆ setnoutbit()

void setnoutbit ( int  i)
inline

set the number of output trigger bits

Definition at line 52 of file TRGGDLDBFTDLBits.h.

53 {
54 m_noutbit = i;
55 }

◆ setoutbitname()

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

set name of i-th output trigger bit

Definition at line 47 of file TRGGDLDBFTDLBits.h.

48 {
49 strcpy(m_outbitname[i], c);
50 }

Member Data Documentation

◆ m_noutbit

int m_noutbit
private

Number of bit.

Definition at line 78 of file TRGGDLDBFTDLBits.h.

◆ m_outbitname

char m_outbitname[320][100]
private

Name of bit.

Definition at line 81 of file TRGGDLDBFTDLBits.h.


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