Belle II Software
release-08-01-10
|
KLM channel index. More...
#include <KLMChannelIndex.h>
Public Types | |
enum | IndexLevel { c_IndexLevelSubdetector = 1 , c_IndexLevelSection = 2 , c_IndexLevelSector = 3 , c_IndexLevelLayer = 4 , c_IndexLevelPlane = 5 , c_IndexLevelStrip = 6 } |
Index level (loop over KLM elements at the specified level). More... | |
Public Member Functions | |
KLMChannelIndex (enum IndexLevel indexLevel=c_IndexLevelStrip) | |
Constructor. More... | |
KLMChannelIndex (int subdetector, int section, int sector, int layer, int plane, int strip, enum IndexLevel indexLevel=c_IndexLevelStrip) | |
Constructor. More... | |
~KLMChannelIndex () | |
Destructor. | |
void | setIndexLevel (enum IndexLevel indexLevel) |
Set index level. More... | |
void | useEKLMSegments (bool useSegments=true) |
Iterate over EKLM segments instead of strips. More... | |
void | setKLMModule (KLMModuleNumber module) |
Set KLM module. More... | |
void | setEKLMSegment (int segment) |
Set EKLM segment. More... | |
int | getSubdetector () const |
Get subdetector. | |
int | getSection () const |
Get section. | |
int | getSector () const |
Get sector. | |
int | getLayer () const |
Get layer. | |
int | getPlane () const |
Get plane. | |
int | getStrip () const |
Get strip. | |
KLMChannelNumber | getKLMChannelNumber () const |
Get KLM channel number. | |
KLMPlaneNumber | getKLMPlaneNumber () const |
Get KLM plane number. | |
KLMModuleNumber | getKLMModuleNumber () const |
Get KLM module number. | |
KLMSectorNumber | getKLMSectorNumber () const |
Get KLM sector number. | |
int | getEKLMSegmentNumber () const |
Get EKLM segment number. | |
KLMChannelIndex | beginBKLM () |
First channel for BKLM. | |
KLMChannelIndex & | endBKLM () |
Last channel for BKLM. | |
KLMChannelIndex | beginEKLM () |
First channel for EKLM. | |
KLMChannelIndex & | endEKLM () |
Last channel for EKLM. | |
KLMChannelIndex | begin () |
First channel. | |
KLMChannelIndex & | end () |
Last channel. | |
KLMChannelIndex & | operator++ () |
Operator ++. | |
KLMChannelIndex & | increment () |
Increment (to use in Python). | |
bool | operator== (const KLMChannelIndex &index) const |
Operator ==. | |
bool | operator!= (const KLMChannelIndex &index) const |
Operator !=. | |
KLMChannelIndex & | operator* () |
Operator *. | |
Protected Member Functions | |
void | setNStripsPlane () |
Set number of strips in the current plane. | |
void | increment (enum IndexLevel indexLevel) |
Increment the index. | |
Protected Attributes | |
enum IndexLevel | m_IndexLevel |
Index level. | |
int | m_Subdetector |
Subdetector. | |
int | m_Section |
Section. | |
int | m_Sector |
Sector. | |
int | m_Layer |
Layer. | |
int | m_Plane |
Plane. | |
int | m_Strip |
Strip. | |
bool | m_UseEKLMSegments = false |
Iterate over EKLM segments instead of strips. | |
int | m_NStripsPlane |
Number of strips in current plane. | |
const KLMElementNumbers * | m_ElementNumbers |
KLM element numbers. | |
const EKLMElementNumbers * | m_eklmElementNumbers |
EKLM element numbers. | |
KLM channel index.
Definition at line 23 of file KLMChannelIndex.h.
enum IndexLevel |
Index level (loop over KLM elements at the specified level).
Enumerator | |
---|---|
c_IndexLevelSubdetector | Subdetector (BKLM or EKLM). |
c_IndexLevelSection | Section. |
c_IndexLevelSector | |
c_IndexLevelLayer | Layer. |
c_IndexLevelPlane | |
c_IndexLevelStrip | Strip. |
Definition at line 30 of file KLMChannelIndex.h.
|
explicit |
Constructor.
[in] | indexLevel | Index level. |
Definition at line 18 of file KLMChannelIndex.cc.
KLMChannelIndex | ( | int | subdetector, |
int | section, | ||
int | sector, | ||
int | layer, | ||
int | plane, | ||
int | strip, | ||
enum IndexLevel | indexLevel = c_IndexLevelStrip |
||
) |
Constructor.
[in] | subdetector | Subdetector. |
[in] | section | Section. |
[in] | sector | Sector. |
[in] | layer | Layer. |
[in] | plane | Plane. |
[in] | strip | Strip. |
[in] | indexLevel | Index level. |
Definition at line 32 of file KLMChannelIndex.cc.
void setEKLMSegment | ( | int | segment | ) |
void setIndexLevel | ( | enum IndexLevel | indexLevel | ) |
Set index level.
If the index level is increased, then the index is set to the first element of the higher-order level.
Definition at line 65 of file KLMChannelIndex.cc.
void setKLMModule | ( | KLMModuleNumber | module | ) |
void useEKLMSegments | ( | bool | useSegments = true | ) |
Iterate over EKLM segments instead of strips.
Turning this on does not make sense for BKLM, in this case the iteration would still be performed over BKLM strips. Make sure that the iteration is performed for EKLM only, e. g. by using beginEKLM() and endEKLM().
Definition at line 115 of file KLMChannelIndex.cc.