![]() |
ATLAS Offline Software
|
#include <ITkStripOnlineId.h>
Public Types | |
| enum | { INVALID_FIBRE =255 , INVALID_ROD =16777215 , INVALID_ONLINE_ID =0xFFFFFFFF } |
Public Member Functions | |
| ITkStripOnlineId ()=default | |
| Default constructor produces an invalid serial number. | |
| ITkStripOnlineId (const std::uint32_t onlineId) | |
| Construct from uint32. | |
| ITkStripOnlineId (const std::uint32_t rodId, const std::uint32_t fibre) | |
| Construct from robId and fibre; a cursory check is made on validity of the input. | |
| std::uint32_t | rod () const |
| Return the rod/rob Id. | |
| std::uint32_t | fibre () const |
| Return the fibre. | |
| operator unsigned int () const | |
| Overload cast to uint. | |
| auto | operator<=> (const ITkStripOnlineId &other) const =default |
| Equality etc. | |
| bool | isValid () const |
Private Attributes | |
| std::uint32_t | m_onlineId {INVALID_ONLINE_ID} |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ITkStripOnlineId &id) |
| representation for debugging, messages | |
Definition at line 16 of file ITkStripOnlineId.h.
| anonymous enum |
| Enumerator | |
|---|---|
| INVALID_FIBRE | |
| INVALID_ROD | |
| INVALID_ONLINE_ID | |
Definition at line 37 of file ITkStripOnlineId.h.
|
default |
Default constructor produces an invalid serial number.
| ITkStripOnlineId::ITkStripOnlineId | ( | const std::uint32_t | onlineId | ) |
Construct from uint32.
Definition at line 9 of file ITkStripOnlineId.cxx.
Construct from robId and fibre; a cursory check is made on validity of the input.
Definition at line 14 of file ITkStripOnlineId.cxx.
| std::uint32_t ITkStripOnlineId::fibre | ( | ) | const |
Return the fibre.
Definition at line 25 of file ITkStripOnlineId.cxx.
| bool ITkStripOnlineId::isValid | ( | ) | const |
Definition at line 30 of file ITkStripOnlineId.cxx.
|
inlineexplicit |
|
default |
Equality etc.
| std::uint32_t ITkStripOnlineId::rod | ( | ) | const |
Return the rod/rob Id.
Definition at line 19 of file ITkStripOnlineId.cxx.
|
friend |
|
private |
Definition at line 41 of file ITkStripOnlineId.h.