Belle II Software development
KLMElectronicsChannel Class Reference

BKLM electronics channel. More...

#include <KLMElectronicsChannel.h>

Inheritance diagram for KLMElectronicsChannel:

Public Member Functions

 KLMElectronicsChannel ()
 Constructor.
 
 KLMElectronicsChannel (int copper, int slot, int lane, int axis, int channel)
 Constructor.
 
 ~KLMElectronicsChannel ()
 Destructor.
 
int getCopper () const
 Get copper.
 
void setCopper (int copper)
 Set copper.
 
int getSlot () const
 Get slot.
 
void setSlot (int slot)
 Set slot.
 
int getLane () const
 Get lane.
 
void setLane (int lane)
 Set lane.
 
int getAxis () const
 Get axis.
 
void setAxis (int axis)
 Set axis.
 
int getChannel () const
 Get channel.
 
void setChannel (int channel)
 Set channel.
 
bool operator< (const KLMElectronicsChannel &channel) const
 Operator <.
 
KLMElectronicsChannel getAsic () const
 Get ASIC.
 

Private Member Functions

 ClassDef (KLMElectronicsChannel, 1)
 Class version.
 

Private Attributes

int m_Copper
 Copper.
 
int m_Slot
 Slot.
 
int m_Lane
 Lane.
 
int m_Axis
 Axis.
 
int m_Channel
 Channel.
 

Detailed Description

BKLM electronics channel.

Definition at line 23 of file KLMElectronicsChannel.h.

Constructor & Destructor Documentation

◆ KLMElectronicsChannel() [1/2]

◆ KLMElectronicsChannel() [2/2]

KLMElectronicsChannel ( int  copper,
int  slot,
int  lane,
int  axis,
int  channel 
)
inline

Constructor.

Parameters
[in]copperCopper.
[in]slotSlot.
[in]laneLane.
[in]axisAxis.
[in]channelChannel.

Definition at line 47 of file KLMElectronicsChannel.h.

48 :
49 m_Copper(copper),
50 m_Slot(slot),
51 m_Lane(lane),
52 m_Axis(axis),
53 m_Channel(channel)
54 {
55 }

◆ ~KLMElectronicsChannel()

~KLMElectronicsChannel ( )
inline

Destructor.

Definition at line 60 of file KLMElectronicsChannel.h.

61 {
62 }

Member Function Documentation

◆ getAsic()

KLMElectronicsChannel getAsic ( ) const

Get ASIC.

Definition at line 39 of file KLMElectronicsChannel.cc.

40{
41 int asic = (m_Channel - 1) / KLM::c_NChannelsAsic;
43}

◆ getAxis()

int getAxis ( ) const
inline

Get axis.

Definition at line 118 of file KLMElectronicsChannel.h.

119 {
120 return m_Axis;
121 }

◆ getChannel()

int getChannel ( ) const
inline

Get channel.

Definition at line 135 of file KLMElectronicsChannel.h.

136 {
137 return m_Channel;
138 }

◆ getCopper()

int getCopper ( ) const
inline

Get copper.

Definition at line 67 of file KLMElectronicsChannel.h.

68 {
69 return m_Copper;
70 }

◆ getLane()

int getLane ( ) const
inline

Get lane.

Definition at line 101 of file KLMElectronicsChannel.h.

102 {
103 return m_Lane;
104 }

◆ getSlot()

int getSlot ( ) const
inline

Get slot.

Definition at line 84 of file KLMElectronicsChannel.h.

85 {
86 return m_Slot;
87 }

◆ operator<()

bool operator< ( const KLMElectronicsChannel channel) const

Operator <.

Definition at line 17 of file KLMElectronicsChannel.cc.

19{
20 if (m_Copper < channel.m_Copper)
21 return true;
22 else if (m_Copper > channel.m_Copper)
23 return false;
24 if (m_Slot < channel.m_Slot)
25 return true;
26 else if (m_Slot > channel.m_Slot)
27 return false;
28 if (m_Lane < channel.m_Lane)
29 return true;
30 else if (m_Lane > channel.m_Lane)
31 return false;
32 if (m_Axis < channel.m_Axis)
33 return true;
34 else if (m_Axis > channel.m_Axis)
35 return false;
36 return m_Channel < channel.m_Channel;
37}

◆ setAxis()

void setAxis ( int  axis)
inline

Set axis.

Parameters
[in]axisAxis.

Definition at line 127 of file KLMElectronicsChannel.h.

128 {
129 m_Axis = axis;
130 }

◆ setChannel()

void setChannel ( int  channel)
inline

Set channel.

Parameters
[in]channelChannel.

Definition at line 144 of file KLMElectronicsChannel.h.

145 {
146 m_Channel = channel;
147 }

◆ setCopper()

void setCopper ( int  copper)
inline

Set copper.

Parameters
[in]copperCopper.

Definition at line 76 of file KLMElectronicsChannel.h.

77 {
78 m_Copper = copper;
79 }

◆ setLane()

void setLane ( int  lane)
inline

Set lane.

Parameters
[in]laneLane.

Definition at line 110 of file KLMElectronicsChannel.h.

111 {
112 m_Lane = lane;
113 }

◆ setSlot()

void setSlot ( int  slot)
inline

Set slot.

Parameters
[in]slotSlot.

Definition at line 93 of file KLMElectronicsChannel.h.

94 {
95 m_Slot = slot;
96 }

Member Data Documentation

◆ m_Axis

int m_Axis
private

Axis.

Definition at line 171 of file KLMElectronicsChannel.h.

◆ m_Channel

int m_Channel
private

Channel.

Definition at line 174 of file KLMElectronicsChannel.h.

◆ m_Copper

int m_Copper
private

Copper.

Definition at line 162 of file KLMElectronicsChannel.h.

◆ m_Lane

int m_Lane
private

Lane.

Definition at line 168 of file KLMElectronicsChannel.h.

◆ m_Slot

int m_Slot
private

Slot.

Definition at line 165 of file KLMElectronicsChannel.h.


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