Belle II Software development
|
KLM element numbers. More...
#include <KLMElementNumbers.h>
Public Types | |
enum | Subdetector { c_BKLM = 1 , c_EKLM = 2 } |
Subdetector constants. More... | |
Public Member Functions | |
KLMChannelNumber | channelNumber (int subdetector, int section, int sector, int layer, int plane, int strip) const |
Get channel number. | |
KLMChannelNumber | channelNumberBKLM (int section, int sector, int layer, int plane, int strip) const |
Get channel number for BKLM. | |
KLMChannelNumber | channelNumberBKLM (int bklmChannel) const |
Get channel number for BKLM. | |
KLMChannelNumber | channelNumberEKLM (int section, int sector, int layer, int plane, int strip) const |
Get channel number for EKLM. | |
KLMChannelNumber | channelNumberEKLM (int eklmStrip) const |
Get channel number for EKLM. | |
bool | isBKLMChannel (KLMChannelNumber channel) const |
Determine whether a given channel is in BKLM. | |
bool | isEKLMChannel (KLMChannelNumber channel) const |
Determine whether a given channel is in EKLM. | |
int | localChannelNumberBKLM (KLMChannelNumber channel) const |
Get local BKLM channel number. | |
int | localChannelNumberEKLM (KLMChannelNumber channel) const |
Get local EKLM channel number. | |
void | channelNumberToElementNumbers (KLMChannelNumber channel, int *subdetector, int *section, int *sector, int *layer, int *plane, int *strip) const |
Get element numbers by channel number. | |
KLMPlaneNumber | planeNumber (int subdetector, int section, int sector, int layer, int plane) const |
Get plane number. | |
KLMPlaneNumber | planeNumberBKLM (int section, int sector, int layer, int plane) const |
Get plane number for BKLM. | |
KLMPlaneNumber | planeNumberEKLM (int section, int sector, int layer, int plane) const |
Get channel number for EKLM. | |
KLMModuleNumber | moduleNumber (int subdetector, int section, int sector, int layer) const |
Get module number. | |
KLMModuleNumber | moduleNumberBKLM (int section, int sector, int layer) const |
Get module number for BKLM. | |
KLMModuleNumber | moduleNumberEKLM (int section, int sector, int layer) const |
Get module number for EKLM. | |
KLMModuleNumber | moduleNumberByChannel (KLMChannelNumber channel) const |
Get module number by channel number. | |
void | moduleNumberToElementNumbers (KLMModuleNumber module, int *subdetector, int *section, int *sector, int *layer) const |
Get element numbers by module number. | |
unsigned int | getNChannelsModule (KLMModuleNumber module) const |
Get number of channels in module. | |
KLMSectorNumber | sectorNumberBKLM (int section, int sector) const |
Get sector number for BKLM. | |
KLMSectorNumber | sectorNumberEKLM (int section, int sector) const |
Get sector number for EKLM. | |
int | getExtrapolationLayer (int subdetector, int layer) const |
Get extrapolation layer number (BKLM - from 1 to 15, EKLM - from 16 to 29). | |
int | getMinimalPlaneNumber (int subdetector) const |
Get minimal plane number. | |
std::string | getSectorDAQName (int subdetector, int section, int sector) const |
Get DAQ name for a given sector. | |
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 | getMaximalPlaneNumber () |
Get maximal plane number. | |
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 28 of file KLMElementNumbers.h.
enum Subdetector |
Subdetector constants.
Enumerator | |
---|---|
c_BKLM | BKLM. |
c_EKLM | EKLM. |
Definition at line 35 of file KLMElementNumbers.h.
|
private |
Constructor.
Definition at line 20 of file KLMElementNumbers.cc.
|
private |
KLMChannelNumber 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 35 of file KLMElementNumbers.cc.
KLMChannelNumber channelNumberBKLM | ( | int | bklmChannel | ) | const |
Get channel number for BKLM.
[in] | bklmChannel | BKLM channel. |
Definition at line 57 of file KLMElementNumbers.cc.
KLMChannelNumber 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 48 of file KLMElementNumbers.cc.
KLMChannelNumber channelNumberEKLM | ( | int | eklmStrip | ) | const |
Get channel number for EKLM.
[in] | eklmStrip | EKLM strip number. |
Definition at line 75 of file KLMElementNumbers.cc.
KLMChannelNumber 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 62 of file KLMElementNumbers.cc.
void channelNumberToElementNumbers | ( | KLMChannelNumber | 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 104 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 246 of file KLMElementNumbers.cc.
|
inlinestaticconstexpr |
Get maximal extrapolation layer.
Definition at line 244 of file KLMElementNumbers.h.
|
inlinestaticconstexpr |
Get maximal plane number.
Definition at line 268 of file KLMElementNumbers.h.
int getMinimalPlaneNumber | ( | int | subdetector | ) | const |
Get minimal plane number.
[in] | subdetector | Subdetector. |
Definition at line 254 of file KLMElementNumbers.cc.
unsigned int getNChannelsModule | ( | KLMModuleNumber | module | ) | const |
Get number of channels in module.
[in] | module | KLM module number. |
Definition at line 216 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 262 of file KLMElementNumbers.cc.
|
inlinestaticconstexpr |
Get total number of channels.
Definition at line 286 of file KLMElementNumbers.h.
|
inlinestaticconstexpr |
Get total number of modules.
Definition at line 253 of file KLMElementNumbers.h.
|
static |
Instantiation.
Definition at line 29 of file KLMElementNumbers.cc.
bool isBKLMChannel | ( | KLMChannelNumber | 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 80 of file KLMElementNumbers.cc.
bool isEKLMChannel | ( | KLMChannelNumber | 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 85 of file KLMElementNumbers.cc.
int localChannelNumberBKLM | ( | KLMChannelNumber | channel | ) | const |
Get local BKLM channel number.
This function also works for modules amd sectors.
[in] | channel | KLM channel number. |
Definition at line 90 of file KLMElementNumbers.cc.
int localChannelNumberEKLM | ( | KLMChannelNumber | channel | ) | const |
Get local EKLM channel number.
This function also works for modules amd sectors.
[in] | channel | KLM channel number. |
Definition at line 97 of file KLMElementNumbers.cc.
KLMModuleNumber 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 156 of file KLMElementNumbers.cc.
KLMModuleNumber 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 165 of file KLMElementNumbers.cc.
KLMModuleNumber moduleNumberByChannel | ( | KLMChannelNumber | channel | ) | const |
Get module number by channel number.
[in] | channel | Channel. |
Definition at line 185 of file KLMElementNumbers.cc.
KLMModuleNumber 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 173 of file KLMElementNumbers.cc.
void moduleNumberToElementNumbers | ( | KLMModuleNumber | 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 194 of file KLMElementNumbers.cc.
KLMPlaneNumber planeNumber | ( | int | subdetector, |
int | section, | ||
int | sector, | ||
int | layer, | ||
int | plane | ||
) | const |
Get plane number.
[in] | subdetector | Subdetector. |
[in] | section | Section. |
[in] | sector | Sector. |
[in] | layer | Layer. |
[in] | plane | Plane. |
Definition at line 126 of file KLMElementNumbers.cc.
KLMPlaneNumber 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 135 of file KLMElementNumbers.cc.
KLMPlaneNumber 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 143 of file KLMElementNumbers.cc.
KLMSectorNumber 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 230 of file KLMElementNumbers.cc.
KLMSectorNumber sectorNumberEKLM | ( | int | section, |
int | sector | ||
) | const |
Get sector number for EKLM.
[in] | section | Section number. |
[in] | sector | Sector number. |
Definition at line 238 of file KLMElementNumbers.cc.
|
staticconstexprprivate |
BKLM offset.
Definition at line 305 of file KLMElementNumbers.h.
|
private |
EKLM element numbers.
Definition at line 308 of file KLMElementNumbers.h.