Belle II Software development
KLMElectronicsChannel.cc
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/* Own header. */
10#include <klm/dbobjects/KLMElectronicsChannel.h>
11
12/* KLM headers. */
13#include <klm/rawdata/RawData.h>
14
15using namespace Belle2;
16
18 const KLMElectronicsChannel& channel) const
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}
38
40{
41 int asic = (m_Channel - 1) / KLM::c_NChannelsAsic;
43}
BKLM electronics channel.
bool operator<(const KLMElectronicsChannel &channel) const
Operator <.
KLMElectronicsChannel getAsic() const
Get ASIC.
Abstract base class for different kinds of events.