 |
Belle II Software
release-05-02-19
|
26 class EKLMElementNumbers :
public TObject {
54 bool checkSection(
int section,
bool fatalError =
true)
const;
62 bool checkLayer(
int layer,
bool fatalError =
true)
const;
73 bool fatalError =
true)
const;
81 bool checkSector(
int sector,
bool fatalError =
true)
const;
89 bool checkPlane(
int plane,
bool fatalError =
true)
const;
97 bool checkSegment(
int segment,
bool fatalError =
true)
const;
105 bool checkStrip(
int strip,
bool fatalError =
true)
const;
124 int layerGlobal,
int* section,
int* layer)
const;
135 int sectorNumber(
int section,
int layer,
int sector)
const;
155 int sectorGlobal,
int* section,
int* layer,
int* sector)
const;
167 int planeNumber(
int section,
int layer,
int sector,
int plane)
const;
178 int planeGlobal,
int* section,
int* layer,
int* sector,
int* plane)
192 int segmentNumber(
int section,
int layer,
int sector,
int plane,
205 int segmentGlobal,
int* section,
int* layer,
int* sector,
int* plane,
219 int stripNumber(
int section,
int layer,
int sector,
int plane,
232 int stripGlobal,
int* section,
int* layer,
int* sector,
int* plane,
270 static std::string
getHSLBName(
int copper,
int slot);
EKLMElementNumbers()
Constructor.
static constexpr int getMaximalSectorGlobalNumberKLMOrder()
Get maximal sector global number with KLM ordering (section, sector).
static constexpr int m_MaximalPlaneNumber
Maximal plane number.
static constexpr int getMaximalSegmentNumber()
Get maximal segment number.
static constexpr int getNStripsSector()
Get number of strips in a sector.
int getSectorByGlobalStrip(int stripGlobal)
Get sector number by global strip number.
void segmentNumberToElementNumbers(int segmentGlobal, int *section, int *layer, int *sector, int *plane, int *segment) const
Get element numbers by segment global number.
static constexpr int getNStripsLayer()
Get number of strips in a layer.
static constexpr int m_MaximalSectionNumber
Maximal section number.
static constexpr int getMaximalSectionNumber()
Get maximal section number.
void stripNumberToElementNumbers(int stripGlobal, int *section, int *layer, int *sector, int *plane, int *strip) const
Get element numbers by strip global number.
bool checkStrip(int strip, bool fatalError=true) const
Check if strip number is correct (fatal error if not).
static std::string getHSLBName(int copper, int slot)
Get HSLB name.
int planeNumber(int section, int layer, int sector, int plane) const
Get plane number.
static constexpr int m_MaximalStripNumber
Maximal strip number.
int getPlaneByGlobalStrip(int stripGlobal)
Get plane number by global strip number.
int sectorNumberKLMOrder(int section, int sector) const
Get sector number (KLM order of elements: section, sector, layer).
int getSectionByGlobalStrip(int stripGlobal)
Get section number by global strip number.
@ c_BackwardSection
Backward.
int getLayerByGlobalStrip(int stripGlobal)
Get layer number by global strip number.
static constexpr int getMaximalLayerGlobalNumber()
Get maximal detector layer global number.
int detectorLayerNumber(int section, int layer) const
Get detector layer number.
static constexpr int getMaximalLayerNumber()
Get maximal layer number.
int sectorNumber(int section, int layer, int sector) const
Get sector number.
static constexpr int getMaximalStripGlobalNumber()
Get maximal strip global number.
static constexpr int getMaximalSectorNumber()
Get maximal sector number.
static constexpr int m_MaximalSectorNumber
Maximal sector number.
static constexpr int m_TotalChannelNumber
Total number of channels.
ClassDef(EKLMElementNumbers, 3)
Class version.
void planeNumberToElementNumbers(int planeGlobal, int *section, int *layer, int *sector, int *plane) const
Get element numbers by plane global number.
static constexpr int m_MaximalDetectorLayerNumber[2]
Maximal detector layer number.
static constexpr int getMaximalStripNumber()
Get maximal strip number.
void layerNumberToElementNumbers(int layerGlobal, int *section, int *layer) const
Get element numbers by detector layer global number.
Abstract base class for different kinds of events.
bool checkDetectorLayer(int section, int layer, bool fatalError=true) const
Check if detector layer number is correct (fatal error if not).
void sectorNumberToElementNumbers(int sectorGlobal, int *section, int *layer, int *sector) const
Get element numbers by sector global number.
bool checkSection(int section, bool fatalError=true) const
Check if section number is correct.
bool checkPlane(int plane, bool fatalError=true) const
Check if plane number is correct (fatal error if not).
int segmentNumber(int section, int layer, int sector, int plane, int segment) const
Get segment number.
static constexpr int m_NStripsSegment
Number of strips in a segment.
static constexpr int getMaximalSegmentGlobalNumber()
Get maximal segment global number.
static const EKLMElementNumbers & Instance()
Instantiation.
int stripNumber(int section, int layer, int sector, int plane, int strip) const
Get strip number.
bool checkSegment(int segment, bool fatalError=true) const
Check if segment number is correct (fatal error if not).
static constexpr int getMaximalPlaneNumber()
Get maximal plane number.
static constexpr int m_MaximalLayerNumber
Maximal layer number.
static constexpr int getNStripsSegment()
Get number of strips in a segment.
static constexpr int getMaximalSectorGlobalNumber()
Get maximal sector global number.
int getStripByGlobalStrip(int stripGlobal)
Get strip number by global strip number.
~EKLMElementNumbers()
Destructor.
@ c_ForwardSection
Forward.
Section
Constants for section numbers.
bool checkLayer(int layer, bool fatalError=true) const
Check if layer number is correct.
static constexpr int getTotalChannelNumber()
Get total number of channels.
static constexpr int m_MaximalSegmentNumber
Maximal segment number.
static constexpr int getMaximalPlaneGlobalNumber()
Get maximal plane global number.
bool checkSector(int sector, bool fatalError=true) const
Check if sector number is correct (fatal error if not).
int getMaximalDetectorLayerNumber(int section) const
Get maximal detector layer number.