Belle II Software development
KLMElectronicsChannel.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
9#pragma once
10
11/* ROOT headers. */
12#include <TObject.h>
13
14namespace Belle2 {
23 class KLMElectronicsChannel : public TObject {
24
25 public:
26
31 m_Copper(0),
32 m_Slot(0),
33 m_Lane(0),
34 m_Axis(0),
35 m_Channel(0)
36 {
37 }
38
48 int copper, int slot, int lane, int axis, int channel) :
49 m_Copper(copper),
50 m_Slot(slot),
51 m_Lane(lane),
52 m_Axis(axis),
53 m_Channel(channel)
54 {
55 }
56
61 {
62 }
63
67 int getCopper() const
68 {
69 return m_Copper;
70 }
71
76 void setCopper(int copper)
77 {
78 m_Copper = copper;
79 }
80
84 int getSlot() const
85 {
86 return m_Slot;
87 }
88
93 void setSlot(int slot)
94 {
95 m_Slot = slot;
96 }
97
101 int getLane() const
102 {
103 return m_Lane;
104 }
105
110 void setLane(int lane)
111 {
112 m_Lane = lane;
113 }
114
118 int getAxis() const
119 {
120 return m_Axis;
121 }
122
127 void setAxis(int axis)
128 {
129 m_Axis = axis;
130 }
131
135 int getChannel() const
136 {
137 return m_Channel;
138 }
139
144 void setChannel(int channel)
145 {
146 m_Channel = channel;
147 }
148
152 bool operator<(const KLMElectronicsChannel& channel) const;
153
158
159 private:
160
163
166
169
172
175
178
179 };
180
182}
BKLM electronics channel.
int getCopper() const
Get copper.
KLMElectronicsChannel(int copper, int slot, int lane, int axis, int channel)
Constructor.
void setCopper(int copper)
Set copper.
int getChannel() const
Get channel.
ClassDef(KLMElectronicsChannel, 1)
Class version.
bool operator<(const KLMElectronicsChannel &channel) const
Operator <.
void setSlot(int slot)
Set slot.
KLMElectronicsChannel getAsic() const
Get ASIC.
void setChannel(int channel)
Set channel.
Abstract base class for different kinds of events.