![]() |
ATLAS Offline Software
|
#include <ITkPixelOnlineId.h>
Public Types | |
| enum | { INVALID_FIBRE =255 , INVALID_ROD =16777215 , INVALID_ONLINE_ID =0xFFFFFFFF } |
Public Member Functions | |
| ITkPixelOnlineId ()=default | |
| Default constructor produces an invalid serial number. | |
| ITkPixelOnlineId (const std::uint32_t onlineId) | |
| Construct from uint32. | |
| ITkPixelOnlineId (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 ITkPixelOnlineId &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 ITkPixelOnlineId &id) |
| representation for debugging, messages | |
Definition at line 18 of file ITkPixelOnlineId.h.
| anonymous enum |
| Enumerator | |
|---|---|
| INVALID_FIBRE | |
| INVALID_ROD | |
| INVALID_ONLINE_ID | |
Definition at line 39 of file ITkPixelOnlineId.h.
|
default |
Default constructor produces an invalid serial number.
| ITkPixelOnlineId::ITkPixelOnlineId | ( | const std::uint32_t | onlineId | ) |
Construct from uint32.
Definition at line 9 of file ITkPixelOnlineId.cxx.
Construct from robId and fibre; a cursory check is made on validity of the input.
Definition at line 14 of file ITkPixelOnlineId.cxx.
| std::uint32_t ITkPixelOnlineId::fibre | ( | ) | const |
Return the fibre.
Definition at line 25 of file ITkPixelOnlineId.cxx.
| bool ITkPixelOnlineId::isValid | ( | ) | const |
Definition at line 30 of file ITkPixelOnlineId.cxx.
|
inlineexplicit |
|
default |
Equality etc.
| std::uint32_t ITkPixelOnlineId::rod | ( | ) | const |
Return the rod/rob Id.
Definition at line 19 of file ITkPixelOnlineId.cxx.
|
friend |
|
private |
Definition at line 43 of file ITkPixelOnlineId.h.