Belle II Software development
CDCTriggerDeadch Class Reference

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

#include <CDCTriggerDeadch.h>

Inheritance diagram for CDCTriggerDeadch:

Public Member Functions

 CDCTriggerDeadch ()
 Default constructor.
 
 CDCTriggerDeadch (const CDCTriggerDeadch &b)
 copy constructor
 
CDCTriggerDeadchoperator= (const CDCTriggerDeadch &b)
 assignment operator
 
bool getdeadch (int sl, int layer, int ch) const
 Get the number of TS.
 
void setdeadch (int sl, int layer, int ch, bool flag)
 Set the number of TS.
 

Private Member Functions

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

Private Attributes

bool m_deadch [c_nSuperLayers][MAX_N_LAYERS][c_maxNDriftCells]
 Dead channel mapping in each superlayer, layer, ch.
 

Static Private Attributes

static const int MAX_N_LAYERS = 8
 

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 29 of file CDCTriggerDeadch.h.

Constructor & Destructor Documentation

◆ CDCTriggerDeadch() [1/2]

CDCTriggerDeadch ( )
inline

Default constructor.

Definition at line 33 of file CDCTriggerDeadch.h.

34 {
35 for (unsigned int i = 0; i < c_nSuperLayers; i++) {
36 for (unsigned int j = 0; j < MAX_N_LAYERS; j++) {
37 for (unsigned int k = 0; k < c_maxNDriftCells; k++) {
38 m_deadch[i][j][k] = true;
39 }
40 }
41 }
42 }
bool m_deadch[c_nSuperLayers][MAX_N_LAYERS][c_maxNDriftCells]
Dead channel mapping in each superlayer, layer, ch.

◆ CDCTriggerDeadch() [2/2]

CDCTriggerDeadch ( const CDCTriggerDeadch b)
inline

copy constructor

Definition at line 44 of file CDCTriggerDeadch.h.

44 : TObject(b)
45 {
46 for (unsigned int i = 0; i < c_nSuperLayers; i++) {
47 for (unsigned int j = 0; j < MAX_N_LAYERS; j++) {
48 for (unsigned int k = 0; k < c_maxNDriftCells; k++) {
49 m_deadch[i][j][k] = b.m_deadch[i][j][k];
50 }
51 }
52 }
53 }

Member Function Documentation

◆ getdeadch()

bool getdeadch ( int  sl,
int  layer,
int  ch 
) const
inline

Get the number of TS.

Definition at line 68 of file CDCTriggerDeadch.h.

69 {
70 return m_deadch[sl][layer][ch];
71 }

◆ operator=()

CDCTriggerDeadch & operator= ( const CDCTriggerDeadch b)
inline

assignment operator

Definition at line 55 of file CDCTriggerDeadch.h.

56 {
57 for (unsigned int i = 0; i < c_nSuperLayers; i++) {
58 for (unsigned int j = 0; j < MAX_N_LAYERS; j++) {
59 for (unsigned int k = 0; k < c_maxNDriftCells; k++) {
60 m_deadch[i][j][k] = b.m_deadch[i][j][k];
61 }
62 }
63 }
64 return *this;
65 }

◆ setdeadch()

void setdeadch ( int  sl,
int  layer,
int  ch,
bool  flag 
)
inline

Set the number of TS.

Definition at line 73 of file CDCTriggerDeadch.h.

74 {
75 m_deadch[sl][layer][ch] = flag;
76 }

Member Data Documentation

◆ m_deadch

bool m_deadch[c_nSuperLayers][MAX_N_LAYERS][c_maxNDriftCells]
private

Dead channel mapping in each superlayer, layer, ch.

Definition at line 85 of file CDCTriggerDeadch.h.

◆ MAX_N_LAYERS

const int MAX_N_LAYERS = 8
staticprivate

Definition at line 82 of file CDCTriggerDeadch.h.


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