Belle II Software light-2406-ragdoll
TRGGDLDBPrescales Class Reference

The payload class for GDL psnm. More...

#include <TRGGDLDBPrescales.h>

Inheritance diagram for TRGGDLDBPrescales:
Collaboration diagram for TRGGDLDBPrescales:

Public Member Functions

 TRGGDLDBPrescales ()
 Default constructor.
 
 TRGGDLDBPrescales (const TRGGDLDBPrescales &b)
 copy constructor
 
TRGGDLDBPrescalesoperator= (const TRGGDLDBPrescales &b)
 assignment operator
 
void setprescales (int i, int j)
 set prescale of i-th output trigger bit
 
void setnoutbit (int i)
 set the number of output trigger bit
 
int getprescales (int i) const
 get prescale of i-th output trigger bit
 
int getnoutbit () const
 get the number of output trigger bit
 

Private Member Functions

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

Private Attributes

int m_noutbit
 Number of bit.
 
int m_prescales [320]
 Number of bins per sensor along u side.
 

Detailed Description

The payload class for GDL psnm.

The payload class stores the number of psnm bit and their prescale values value of a missing bit is "0"

Definition at line 25 of file TRGGDLDBPrescales.h.

Constructor & Destructor Documentation

◆ TRGGDLDBPrescales() [1/2]

TRGGDLDBPrescales ( )
inline

Default constructor.

Definition at line 29 of file TRGGDLDBPrescales.h.

29: m_noutbit{0}, m_prescales{0} {}
int m_noutbit
Number of bit.
int m_prescales[320]
Number of bins per sensor along u side.

◆ TRGGDLDBPrescales() [2/2]

TRGGDLDBPrescales ( const TRGGDLDBPrescales b)
inline

copy constructor

Definition at line 31 of file TRGGDLDBPrescales.h.

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

Member Function Documentation

◆ getnoutbit()

int getnoutbit ( ) const
inline

get the number of output trigger bit

Definition at line 63 of file TRGGDLDBPrescales.h.

64 {
65 return m_noutbit;
66 }

◆ getprescales()

int getprescales ( int  i) const
inline

get prescale of i-th output trigger bit

Definition at line 58 of file TRGGDLDBPrescales.h.

59 {
60 return m_prescales[i];
61 }

◆ operator=()

TRGGDLDBPrescales & operator= ( const TRGGDLDBPrescales b)
inline

assignment operator

Definition at line 39 of file TRGGDLDBPrescales.h.

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

◆ setnoutbit()

void setnoutbit ( int  i)
inline

set the number of output trigger bit

Definition at line 53 of file TRGGDLDBPrescales.h.

54 {
55 m_noutbit = i;
56 }

◆ setprescales()

void setprescales ( int  i,
int  j 
)
inline

set prescale of i-th output trigger bit

Definition at line 48 of file TRGGDLDBPrescales.h.

49 {
50 m_prescales[i] = j;
51 }

Member Data Documentation

◆ m_noutbit

int m_noutbit
private

Number of bit.

Definition at line 71 of file TRGGDLDBPrescales.h.

◆ m_prescales

int m_prescales[320]
private

Number of bins per sensor along u side.

Definition at line 74 of file TRGGDLDBPrescales.h.


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