 |
Belle II Software
release-05-02-19
|
14 #include <klm/dataobjects/bklm/BKLMElementNumbers.h>
15 #include <klm/dataobjects/eklm/EKLMElementNumbers.h>
29 class KLMElementNumbers {
60 uint16_t
channelNumber(
int subdetector,
int section,
int sector,
int layer,
61 int plane,
int strip)
const;
136 uint16_t channel,
int* subdetector,
int* section,
int* sector,
137 int* layer,
int* plane,
int* strip)
const;
166 uint16_t
moduleNumber(
int subdetector,
int section,
int sector,
200 uint16_t module,
int* subdetector,
int* section,
int* sector,
261 std::string
getSectorDAQName(
int subdetector,
int section,
int sector)
const;
uint16_t sectorNumberBKLM(int section, int sector) const
Get sector number for BKLM.
static constexpr int getTotalChannelNumber()
Get total number of channels.
bool isEKLMChannel(uint16_t channel) const
Determine whether a given channel is in EKLM.
bool isBKLMChannel(uint16_t channel) const
Determine whether a given channel is in BKLM.
uint16_t moduleNumberByChannel(uint16_t channel) const
Get module number by channel number.
static constexpr int getMaximalLayerGlobalNumber()
Get maximal layer global number.
int localChannelNumberBKLM(uint16_t channel) const
Get local BKLM channel number.
Subdetector
Subdetector constants.
int getMinimalPlaneNumber(int subdetector) const
Get minimal plane number.
uint16_t planeNumberBKLM(int section, int sector, int layer, int plane) const
Get plane number for BKLM.
int localChannelNumberEKLM(uint16_t channel) const
Get local EKLM channel number.
uint16_t channelNumber(int subdetector, int section, int sector, int layer, int plane, int strip) const
Get channel number.
static const KLMElementNumbers & Instance()
Instantiation.
void moduleNumberToElementNumbers(uint16_t module, int *subdetector, int *section, int *sector, int *layer) const
Get element numbers by module number.
~KLMElementNumbers()
Destructor.
uint16_t channelNumberBKLM(int section, int sector, int layer, int plane, int strip) const
Get channel number for BKLM.
KLMElementNumbers()
Constructor.
static constexpr int getTotalModuleNumber()
Get total number of modules.
static constexpr int getMaximalLayerNumber()
Get maximal layer number.
unsigned int getNChannelsModule(uint16_t module) const
Get number of channels in module.
static constexpr int getMaximalLayerNumber()
Get maximal layer number (1-based).
uint16_t sectorNumberEKLM(int section, int sector) const
Get sector number for EKLM.
Abstract base class for different kinds of events.
uint16_t moduleNumberEKLM(int section, int sector, int layer) const
Get module number for EKLM.
static constexpr int getMaximalExtrapolationLayer()
Get maximal extrapolation layer.
uint16_t planeNumberEKLM(int section, int sector, int layer, int plane) const
Get channel number for EKLM.
uint16_t moduleNumberBKLM(int section, int sector, int layer) const
Get module number for BKLM.
uint16_t channelNumberEKLM(int section, int sector, int layer, int plane, int strip) const
Get channel number for EKLM.
static constexpr int getMaximalSectorGlobalNumber()
Get maximal sector global number.
static constexpr uint16_t m_BKLMOffset
BKLM offset.
static constexpr int getTotalChannelNumber()
Get total number of channels.
uint16_t moduleNumber(int subdetector, int section, int sector, int layer) const
Get module number.
const EKLMElementNumbers * m_eklmElementNumbers
EKLM element numbers.
static constexpr int getTotalChannelNumber()
Get total number of channels.
std::string getSectorDAQName(int subdetector, int section, int sector) const
Get DAQ name for a given sector.
int getExtrapolationLayer(int subdetector, int layer) const
Get extrapolation layer number (BKLM - from 1 to 15, EKLM - from 16 to 29).
void channelNumberToElementNumbers(uint16_t channel, int *subdetector, int *section, int *sector, int *layer, int *plane, int *strip) const
Get element numbers by channel number.