Belle II Software  release-08-01-10
KLMElementArrayIndex Class Reference

KLM element array index. More...

#include <KLMElementArrayIndex.h>

Inheritance diagram for KLMElementArrayIndex:
Collaboration diagram for KLMElementArrayIndex:

Public Member Functions

 KLMElementArrayIndex (enum KLMChannelIndex::IndexLevel indexLevel)
 Constructor.
 
virtual ~KLMElementArrayIndex ()
 Destructor.
 
uint16_t getIndex (uint16_t number) const
 Get element index. More...
 
uint16_t getNumber (uint16_t index) const
 Get element number. More...
 
uint16_t getNElements () const
 Get number of elements.
 

Private Attributes

std::map< uint16_t, uint16_t > m_MapNumberIndex
 Map KLM element number - KLM element index.
 
std::map< uint16_t, uint16_t > m_MapIndexNumber
 Map KLM element index - KLM element number.
 
uint16_t m_NElements
 Number of elements.
 

Detailed Description

KLM element array index.

Definition at line 26 of file KLMElementArrayIndex.h.

Member Function Documentation

◆ getIndex()

uint16_t getIndex ( uint16_t  number) const

Get element index.

Parameters
[in]numberElement number.

Definition at line 52 of file KLMElementArrayIndex.cc.

◆ getNumber()

uint16_t getNumber ( uint16_t  index) const

Get element number.

Parameters
[in]indexElement index.

Definition at line 61 of file KLMElementArrayIndex.cc.


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