Belle II Software development
CDCTriggerDeadch.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <TObject.h>
11#include <unordered_map>
12#include <vector>
13#include <cdc/geometry/CDCGeometryPar.h>
14
15namespace Belle2 {
29 class CDCTriggerDeadch: public TObject {
30 public:
31
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 }
44 CDCTriggerDeadch(const CDCTriggerDeadch& b): 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 }
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 }
66
68 bool getdeadch(int sl, int layer, int ch) const
69 {
70 return m_deadch[sl][layer][ch];
71 }
73 void setdeadch(int sl, int layer, int ch, bool flag)
74 {
75 m_deadch[sl][layer][ch] = flag;
76 }
77
78
79 private:
80
81 //** number of layers in Super layer**/
82 const static int MAX_N_LAYERS = 8;
83
85 bool m_deadch[c_nSuperLayers][MAX_N_LAYERS][c_maxNDriftCells];
86
88 };
89
91} // end of namespace Belle2
The payload class for delay of GDL input bit.
void setdeadch(int sl, int layer, int ch, bool flag)
Set the number of TS.
bool m_deadch[c_nSuperLayers][MAX_N_LAYERS][c_maxNDriftCells]
Dead channel mapping in each superlayer, layer, ch.
bool getdeadch(int sl, int layer, int ch) const
Get the number of TS.
CDCTriggerDeadch()
Default constructor.
CDCTriggerDeadch(const CDCTriggerDeadch &b)
copy constructor
ClassDef(CDCTriggerDeadch, 1)
ClassDef, must be the last term before the closing {}.
CDCTriggerDeadch & operator=(const CDCTriggerDeadch &b)
assignment operator
Abstract base class for different kinds of events.