![]() |
Belle II Software
release-05-02-19
|
KLM element numbers. More...
#include <KLMElementNumbers.h>

Public Types | |
| enum | Subdetector { c_BKLM = 1, c_EKLM = 2 } |
| Subdetector constants. More... | |
Public Member Functions | |
| uint16_t | channelNumber (int subdetector, int section, int sector, int layer, int plane, int strip) const |
| Get channel number. More... | |
| uint16_t | channelNumberBKLM (int section, int sector, int layer, int plane, int strip) const |
| Get channel number for BKLM. More... | |
| uint16_t | channelNumberBKLM (int bklmChannel) const |
| Get channel number for BKLM. More... | |
| uint16_t | channelNumberEKLM (int section, int sector, int layer, int plane, int strip) const |
| Get channel number for EKLM. More... | |
| uint16_t | channelNumberEKLM (int eklmStrip) const |
| Get channel number for EKLM. More... | |
| bool | isBKLMChannel (uint16_t channel) const |
| Determine whether a given channel is in BKLM. More... | |
| bool | isEKLMChannel (uint16_t channel) const |
| Determine whether a given channel is in EKLM. More... | |
| int | localChannelNumberBKLM (uint16_t channel) const |
| Get local BKLM channel number. More... | |
| int | localChannelNumberEKLM (uint16_t channel) const |
| Get local EKLM channel number. More... | |
| void | channelNumberToElementNumbers (uint16_t channel, int *subdetector, int *section, int *sector, int *layer, int *plane, int *strip) const |
| Get element numbers by channel number. More... | |
| uint16_t | planeNumberBKLM (int section, int sector, int layer, int plane) const |
| Get plane number for BKLM. More... | |
| uint16_t | planeNumberEKLM (int section, int sector, int layer, int plane) const |
| Get channel number for EKLM. More... | |
| uint16_t | moduleNumber (int subdetector, int section, int sector, int layer) const |
| Get module number. More... | |
| uint16_t | moduleNumberBKLM (int section, int sector, int layer) const |
| Get module number for BKLM. More... | |
| uint16_t | moduleNumberEKLM (int section, int sector, int layer) const |
| Get module number for EKLM. More... | |
| uint16_t | moduleNumberByChannel (uint16_t channel) const |
| Get module number by channel number. More... | |
| void | moduleNumberToElementNumbers (uint16_t module, int *subdetector, int *section, int *sector, int *layer) const |
| Get element numbers by module number. More... | |
| unsigned int | getNChannelsModule (uint16_t module) const |
| Get number of channels in module. More... | |
| uint16_t | sectorNumberBKLM (int section, int sector) const |
| Get sector number for BKLM. More... | |
| uint16_t | sectorNumberEKLM (int section, int sector) const |
| Get sector number for EKLM. More... | |
| int | getExtrapolationLayer (int subdetector, int layer) const |
| Get extrapolation layer number (BKLM - from 1 to 15, EKLM - from 16 to 29). More... | |
| int | getMinimalPlaneNumber (int subdetector) const |
| Get minimal plane number. More... | |
| std::string | getSectorDAQName (int subdetector, int section, int sector) const |
| Get DAQ name for a given sector. More... | |
Static Public Member Functions | |
| static const KLMElementNumbers & | Instance () |
| Instantiation. | |
| static constexpr int | getMaximalExtrapolationLayer () |
| Get maximal extrapolation layer. | |
| static constexpr int | getTotalModuleNumber () |
| Get total number of modules. | |
| static constexpr int | getTotalChannelNumber () |
| Get total number of channels. | |
Private Member Functions | |
| KLMElementNumbers () | |
| Constructor. | |
| ~KLMElementNumbers () | |
| Destructor. | |
Private Attributes | |
| const EKLMElementNumbers * | m_eklmElementNumbers |
| EKLM element numbers. | |
Static Private Attributes | |
| static constexpr uint16_t | m_BKLMOffset = 0x8000 |
| BKLM offset. | |
KLM element numbers.
Definition at line 37 of file KLMElementNumbers.h.
| enum Subdetector |
Subdetector constants.
| Enumerator | |
|---|---|
| c_BKLM | BKLM. |
| c_EKLM | EKLM. |
Definition at line 44 of file KLMElementNumbers.h.
| uint16_t channelNumber | ( | int | subdetector, |
| int | section, | ||
| int | sector, | ||
| int | layer, | ||
| int | plane, | ||
| int | strip | ||
| ) | const |
Get channel number.
| [in] | subdetector | Sundetector. |
| [in] | section | Section. |
| [in] | sector | Sector. |
| [in] | layer | Layer. |
| [in] | plane | Plane. |
| [in] | strip | Strip. |
Definition at line 37 of file KLMElementNumbers.cc.
| uint16_t channelNumberBKLM | ( | int | bklmChannel | ) | const |
Get channel number for BKLM.
| [in] | bklmChannel | BKLM channel. |
Definition at line 59 of file KLMElementNumbers.cc.
| uint16_t channelNumberBKLM | ( | int | section, |
| int | sector, | ||
| int | layer, | ||
| int | plane, | ||
| int | strip | ||
| ) | const |
Get channel number for BKLM.
| [in] | section | Forward (1) or backward (0) BKLM. |
| [in] | sector | Sector (1-based). |
| [in] | layer | Layer (1-based). |
| [in] | plane | Plane (0-based). |
| [in] | strip | Strip (1-based). |
Definition at line 50 of file KLMElementNumbers.cc.
| uint16_t channelNumberEKLM | ( | int | eklmStrip | ) | const |
Get channel number for EKLM.
| [in] | eklmStrip | EKLM strip number. |
Definition at line 77 of file KLMElementNumbers.cc.
| uint16_t channelNumberEKLM | ( | int | section, |
| int | sector, | ||
| int | layer, | ||
| int | plane, | ||
| int | strip | ||
| ) | const |
Get channel number for EKLM.
| [in] | section | Section number. |
| [in] | sector | Sector number. |
| [in] | layer | Layer number. |
| [in] | plane | Plane number. |
| [in] | strip | Strip number. |
Definition at line 64 of file KLMElementNumbers.cc.
| void channelNumberToElementNumbers | ( | uint16_t | channel, |
| int * | subdetector, | ||
| int * | section, | ||
| int * | sector, | ||
| int * | layer, | ||
| int * | plane, | ||
| int * | strip | ||
| ) | const |
Get element numbers by channel number.
| [in] | channel | KLM channel number. |
| [out] | subdetector | Subdetector. |
| [out] | section | Section. |
| [out] | sector | Sector. |
| [out] | layer | Layer. |
| [out] | plane | Plane. |
| [out] | strip | Strip. |
Definition at line 106 of file KLMElementNumbers.cc.
| int getExtrapolationLayer | ( | int | subdetector, |
| int | layer | ||
| ) | const |
Get extrapolation layer number (BKLM - from 1 to 15, EKLM - from 16 to 29).
| [in] | subdetector | Subdetector. |
| [in] | layer | Layer. |
Definition at line 236 of file KLMElementNumbers.cc.
| int getMinimalPlaneNumber | ( | int | subdetector | ) | const |
Get minimal plane number.
| [in] | subdetector | Subdetector. |
Definition at line 244 of file KLMElementNumbers.cc.
| unsigned int getNChannelsModule | ( | uint16_t | module | ) | const |
Get number of channels in module.
| [in] | module | KLM module number. |
Definition at line 208 of file KLMElementNumbers.cc.
| std::string getSectorDAQName | ( | int | subdetector, |
| int | section, | ||
| int | sector | ||
| ) | const |
Get DAQ name for a given sector.
| [in] | subdetector | Subdetector. |
| [in] | section | Section. |
| [in] | sector | Sector. |
Definition at line 252 of file KLMElementNumbers.cc.
| bool isBKLMChannel | ( | uint16_t | channel | ) | const |
Determine whether a given channel is in BKLM.
This function also works for modules amd sectors.
| [in] | channel | KLM channel number. |
Definition at line 82 of file KLMElementNumbers.cc.
| bool isEKLMChannel | ( | uint16_t | channel | ) | const |
Determine whether a given channel is in EKLM.
This function also works for modules amd sectors.
| [in] | channel | KLM channel number. |
Definition at line 87 of file KLMElementNumbers.cc.
| int localChannelNumberBKLM | ( | uint16_t | channel | ) | const |
Get local BKLM channel number.
This function also works for modules amd sectors.
| [in] | channel | KLM channel number. |
Definition at line 92 of file KLMElementNumbers.cc.
| int localChannelNumberEKLM | ( | uint16_t | channel | ) | const |
Get local EKLM channel number.
This function also works for modules amd sectors.
| [in] | channel | KLM channel number. |
Definition at line 99 of file KLMElementNumbers.cc.
| uint16_t moduleNumber | ( | int | subdetector, |
| int | section, | ||
| int | sector, | ||
| int | layer | ||
| ) | const |
Get module number.
| [in] | subdetector | Subdetector. |
| [in] | section | Section. |
| [in] | sector | Sector (1-based). |
| [in] | layer | Layer (1-based). |
Definition at line 149 of file KLMElementNumbers.cc.
| uint16_t moduleNumberBKLM | ( | int | section, |
| int | sector, | ||
| int | layer | ||
| ) | const |
Get module number for BKLM.
| [in] | section | Forward (1) or backward (0) BKLM. |
| [in] | sector | Sector (1-based). |
| [in] | layer | Layer (1-based). |
Definition at line 158 of file KLMElementNumbers.cc.
| uint16_t moduleNumberByChannel | ( | uint16_t | channel | ) | const |
Get module number by channel number.
| [in] | channel | Channel. |
Definition at line 178 of file KLMElementNumbers.cc.
| uint16_t moduleNumberEKLM | ( | int | section, |
| int | sector, | ||
| int | layer | ||
| ) | const |
Get module number for EKLM.
| [in] | section | Section number. |
| [in] | sector | Sector number. |
| [in] | layer | Layer number. |
Definition at line 166 of file KLMElementNumbers.cc.
| void moduleNumberToElementNumbers | ( | uint16_t | module, |
| int * | subdetector, | ||
| int * | section, | ||
| int * | sector, | ||
| int * | layer | ||
| ) | const |
Get element numbers by module number.
| [in] | module | KLM module number. |
| [out] | subdetector | Subdetector. |
| [out] | section | Section. |
| [out] | sector | Sector. |
| [out] | layer | Layer. |
Definition at line 186 of file KLMElementNumbers.cc.
| uint16_t planeNumberBKLM | ( | int | section, |
| int | sector, | ||
| int | layer, | ||
| int | plane | ||
| ) | const |
Get plane number for BKLM.
| [in] | section | Forward (1) or backward (0) BKLM. |
| [in] | sector | Sector (1-based). |
| [in] | layer | Layer (1-based). |
| [in] | plane | Plane (0-based). |
Definition at line 128 of file KLMElementNumbers.cc.
| uint16_t planeNumberEKLM | ( | int | section, |
| int | sector, | ||
| int | layer, | ||
| int | plane | ||
| ) | const |
Get channel number for EKLM.
| [in] | section | Section number. |
| [in] | sector | Sector number. |
| [in] | layer | Layer number. |
| [in] | plane | Plane number. |
Definition at line 136 of file KLMElementNumbers.cc.
| uint16_t sectorNumberBKLM | ( | int | section, |
| int | sector | ||
| ) | const |
Get sector number for BKLM.
| [in] | section | Forward (1) or backward (0) BKLM. |
| [in] | sector | Sector (1-based). |
Definition at line 222 of file KLMElementNumbers.cc.
| uint16_t sectorNumberEKLM | ( | int | section, |
| int | sector | ||
| ) | const |
Get sector number for EKLM.
| [in] | section | Section number. |
| [in] | sector | Sector number. |
Definition at line 229 of file KLMElementNumbers.cc.