Belle II Software development
|
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. | |
KLMChannelIndex (int subdetector, int section, int sector, int layer, int plane, int strip, enum IndexLevel indexLevel=c_IndexLevelStrip) | |
Constructor. | |
~KLMChannelIndex () | |
Destructor. | |
void | setIndexLevel (enum IndexLevel indexLevel) |
Set index level. | |
void | useEKLMSegments (bool useSegments=true) |
Iterate over EKLM segments instead of strips. | |
void | setKLMModule (KLMModuleNumber module) |
Set KLM module. | |
void | setEKLMSegment (int segment) |
Set EKLM segment. | |
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.
~KLMChannelIndex | ( | ) |
|
inline |
First channel.
Definition at line 199 of file KLMChannelIndex.h.
KLMChannelIndex beginBKLM | ( | ) |
First channel for BKLM.
Definition at line 187 of file KLMChannelIndex.cc.
KLMChannelIndex beginEKLM | ( | ) |
First channel for EKLM.
Definition at line 203 of file KLMChannelIndex.cc.
|
inline |
Last channel.
Definition at line 207 of file KLMChannelIndex.h.
KLMChannelIndex & endBKLM | ( | ) |
Last channel for BKLM.
Definition at line 193 of file KLMChannelIndex.cc.
KLMChannelIndex & endEKLM | ( | ) |
Last channel for EKLM.
Definition at line 209 of file KLMChannelIndex.cc.
int getEKLMSegmentNumber | ( | ) | const |
Get EKLM segment number.
Definition at line 181 of file KLMChannelIndex.cc.
KLMChannelNumber getKLMChannelNumber | ( | ) | const |
Get KLM channel number.
Definition at line 143 of file KLMChannelIndex.cc.
KLMModuleNumber getKLMModuleNumber | ( | ) | const |
Get KLM module number.
Definition at line 165 of file KLMChannelIndex.cc.
KLMPlaneNumber getKLMPlaneNumber | ( | ) | const |
Get KLM plane number.
Definition at line 154 of file KLMChannelIndex.cc.
KLMSectorNumber getKLMSectorNumber | ( | ) | const |
Get KLM sector number.
Definition at line 173 of file KLMChannelIndex.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get subdetector.
Definition at line 106 of file KLMChannelIndex.h.
KLMChannelIndex & increment | ( | ) |
Increment (to use in Python).
Definition at line 314 of file KLMChannelIndex.cc.
|
protected |
Increment the index.
Definition at line 219 of file KLMChannelIndex.cc.
bool operator!= | ( | const KLMChannelIndex & | index | ) | const |
Operator !=.
Definition at line 350 of file KLMChannelIndex.cc.
KLMChannelIndex & operator* | ( | ) |
KLMChannelIndex & operator++ | ( | ) |
Operator ++.
Definition at line 308 of file KLMChannelIndex.cc.
bool operator== | ( | const KLMChannelIndex & | index | ) | const |
Operator ==.
Definition at line 320 of file KLMChannelIndex.cc.
void setEKLMSegment | ( | int | segment | ) |
Set EKLM segment.
[in] | segment | Segment. |
Definition at line 134 of file KLMChannelIndex.cc.
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 | ) |
Set KLM module.
[in] | module | Module. |
Definition at line 121 of file KLMChannelIndex.cc.
|
protected |
Set number of strips in the current plane.
Definition at line 52 of file KLMChannelIndex.cc.
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.
|
protected |
EKLM element numbers.
Definition at line 280 of file KLMChannelIndex.h.
|
protected |
KLM element numbers.
Definition at line 277 of file KLMChannelIndex.h.
|
protected |
Index level.
Definition at line 250 of file KLMChannelIndex.h.
|
protected |
Layer.
Definition at line 262 of file KLMChannelIndex.h.
|
protected |
Number of strips in current plane.
Definition at line 274 of file KLMChannelIndex.h.
|
protected |
Definition at line 265 of file KLMChannelIndex.h.
|
protected |
Section.
Definition at line 256 of file KLMChannelIndex.h.
|
protected |
Definition at line 259 of file KLMChannelIndex.h.
|
protected |
Strip.
Definition at line 268 of file KLMChannelIndex.h.
|
protected |
Subdetector.
Definition at line 253 of file KLMChannelIndex.h.
|
protected |
Iterate over EKLM segments instead of strips.
Definition at line 271 of file KLMChannelIndex.h.