10#include <klm/dataobjects/KLMElementArrayIndex.h>
13#include <framework/logging/Logger.h>
27 number = klmElement.getKLMChannelNumber();
30 number = klmElement.getKLMPlaneNumber();
33 number = klmElement.getKLMModuleNumber();
36 number = klmElement.getKLMSectorNumber();
39 B2FATAL(
"Unsupported index level in KLMElementArrayIndex.");
54 std::map<uint16_t, uint16_t>::const_iterator it =
57 B2FATAL(
"Incorrect KLM element number.");
63 std::map<uint16_t, uint16_t>::const_iterator it =
66 B2FATAL(
"Incorrect KLM element index.");
IndexLevel
Index level (loop over KLM elements at the specified level).
@ c_IndexLevelSector
Sector.
@ c_IndexLevelLayer
Layer.
@ c_IndexLevelStrip
Strip.
@ c_IndexLevelPlane
Plane.
uint16_t getNumber(uint16_t index) const
Get element number.
uint16_t m_NElements
Number of elements.
uint16_t getIndex(uint16_t number) const
Get element index.
std::map< uint16_t, uint16_t > m_MapIndexNumber
Map KLM element index - KLM element number.
virtual ~KLMElementArrayIndex()
Destructor.
KLMElementArrayIndex(enum KLMChannelIndex::IndexLevel indexLevel)
Constructor.
std::map< uint16_t, uint16_t > m_MapNumberIndex
Map KLM element number - KLM element index.
Abstract base class for different kinds of events.