52 bool checkSection(
int section,
bool fatalError =
true)
const;
60 bool checkLayer(
int layer,
bool fatalError =
true)
const;
71 bool fatalError =
true)
const;
79 bool checkSector(
int sector,
bool fatalError =
true)
const;
87 bool checkPlane(
int plane,
bool fatalError =
true)
const;
95 bool checkSegment(
int segment,
bool fatalError =
true)
const;
103 bool checkStrip(
int strip,
bool fatalError =
true)
const;
122 int layerGlobal,
int* section,
int* layer)
const;
133 int sectorNumber(
int section,
int layer,
int sector)
const;
153 int sectorGlobal,
int* section,
int* layer,
int* sector)
const;
165 int planeNumber(
int section,
int layer,
int sector,
int plane)
const;
176 int planeGlobal,
int* section,
int* layer,
int* sector,
int* plane)
190 int segmentNumber(
int section,
int layer,
int sector,
int plane,
203 int segmentGlobal,
int* section,
int* layer,
int* sector,
int* plane,
217 int stripNumber(
int section,
int layer,
int sector,
int plane,
230 int stripGlobal,
int* section,
int* layer,
int* sector,
int* plane,
268 static std::string
getHSLBName(
int copper,
int slot);
static constexpr int getNStripsSector()
Get number of strips in a sector.
static constexpr int m_MaximalStripNumber
Maximal strip number.
bool checkLayer(int layer, bool fatalError=true) const
Check if layer number is correct.
ClassDef(EKLMElementNumbers, 3)
Class version.
static constexpr int getMaximalLayerGlobalNumber()
Get maximal detector layer global number.
void planeNumberToElementNumbers(int planeGlobal, int *section, int *layer, int *sector, int *plane) const
Get element numbers by plane global number.
int getMaximalDetectorLayerNumber(int section) const
Get maximal detector layer number.
static const EKLMElementNumbers & Instance()
Instantiation.
int sectorNumber(int section, int layer, int sector) const
Get sector number.
~EKLMElementNumbers()
Destructor.
void sectorNumberToElementNumbers(int sectorGlobal, int *section, int *layer, int *sector) const
Get element numbers by sector global number.
static constexpr int m_MaximalPlaneNumber
Maximal plane number.
static constexpr int m_MaximalSectionNumber
Maximal section number.
static constexpr int getMaximalStripNumber()
Get maximal strip number.
static constexpr int m_MaximalDetectorLayerNumber[2]
Maximal detector layer number.
int getPlaneByGlobalStrip(int stripGlobal)
Get plane number by global strip number.
bool checkPlane(int plane, bool fatalError=true) const
Check if plane number is correct (fatal error if not).
bool checkDetectorLayer(int section, int layer, bool fatalError=true) const
Check if detector layer number is correct (fatal error if not).
int getStripByGlobalStrip(int stripGlobal)
Get strip number by global strip number.
static constexpr int getTotalChannelNumber()
Get total number of channels.
int getSectorByGlobalStrip(int stripGlobal)
Get sector number by global strip number.
bool checkStrip(int strip, bool fatalError=true) const
Check if strip number is correct (fatal error if not).
static constexpr int getNStripsLayer()
Get number of strips in a layer.
void layerNumberToElementNumbers(int layerGlobal, int *section, int *layer) const
Get element numbers by detector layer global number.
int detectorLayerNumber(int section, int layer) const
Get detector layer number.
bool checkSegment(int segment, bool fatalError=true) const
Check if segment number is correct (fatal error if not).
int stripNumber(int section, int layer, int sector, int plane, int strip) const
Get strip number.
int sectorNumberKLMOrder(int section, int sector) const
Get sector number (KLM order of elements: section, sector, layer).
static constexpr int m_NStripsSegment
Number of strips in a segment.
void stripNumberToElementNumbers(int stripGlobal, int *section, int *layer, int *sector, int *plane, int *strip) const
Get element numbers by strip global number.
EKLMElementNumbers()
Constructor.
static constexpr int getMaximalLayerNumber()
Get maximal layer 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).
static constexpr int getMaximalStripGlobalNumber()
Get maximal strip global number.
Section
Constants for section numbers.
@ c_ForwardSection
Forward.
@ c_BackwardSection
Backward.
static std::string getHSLBName(int copper, int slot)
Get HSLB name.
static constexpr int getMaximalSectorNumber()
Get maximal sector number.
static constexpr int getNStripsSegment()
Get number of strips in a segment.
static constexpr int m_MaximalSectorNumber
Maximal sector number.
static constexpr int getMaximalSegmentGlobalNumber()
Get maximal segment global number.
int getSectionByGlobalStrip(int stripGlobal)
Get section number by global strip number.
static constexpr int getMaximalSectionNumber()
Get maximal section number.
int segmentNumber(int section, int layer, int sector, int plane, int segment) const
Get segment number.
static constexpr int m_MaximalLayerNumber
Maximal layer number.
static constexpr int m_TotalChannelNumber
Total number of channels.
int getLayerByGlobalStrip(int stripGlobal)
Get layer number by global strip number.
static constexpr int getMaximalSectorGlobalNumber()
Get maximal sector global number.
bool checkSection(int section, bool fatalError=true) const
Check if section number is correct.
int planeNumber(int section, int layer, int sector, int plane) const
Get plane number.
static constexpr int m_MaximalSegmentNumber
Maximal segment number.
static constexpr int getMaximalPlaneNumber()
Get maximal plane number.
static constexpr int getMaximalSectorGlobalNumberKLMOrder()
Get maximal sector global number with KLM ordering (section, sector).
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 getMaximalSegmentNumber()
Get maximal segment number.
Abstract base class for different kinds of events.