10#include <klm/dbobjects/KLMElectronicsMap.h>
13#include <framework/logging/Logger.h>
28 std::map<KLMElectronicsChannel, KLMChannelNumber>::const_iterator it;
38 std::map<KLMChannelNumber, KLMElectronicsChannel>::const_iterator it;
51 B2ERROR(
"Detector channel already exists in the electronics map."
52 <<
LogVar(
"Detector channel", detectorChannel));
56 B2ERROR(
"Electronics channel already exists in the electronics map."
57 <<
LogVar(
"Copper", copper)
61 <<
LogVar(
"Channel", channel));
65 detectorChannel, electronicsChannel));
67 electronicsChannel, detectorChannel));
BKLM electronics channel.
const KLMElectronicsChannel * getElectronicsChannel(KLMChannelNumber detectorChannel) const
Get electronics channel by detector channel.
std::map< KLMChannelNumber, KLMElectronicsChannel > m_MapDetectorElectronics
Detector channel - electronics channel map.
~KLMElectronicsMap()
Destructor.
const KLMChannelNumber * getDetectorChannel(KLMElectronicsChannel *electronicsChannel) const
Get detector channel by electronics channel.
void addChannel(KLMChannelNumber detectorChannel, int copper, int slot, int lane, int axis, int channel)
Add channel.
std::map< KLMElectronicsChannel, KLMChannelNumber > m_MapElectronicsDetector
Electronics channel - detector channel map.
KLMElectronicsMap()
Constructor.
Class to store variables with their name which were sent to the logging service.
uint16_t KLMChannelNumber
Channel number.
Abstract base class for different kinds of events.