ATLAS Offline Software
|
Represents the L1Topo module ID, with decoder and encoder. More...
#include <ModuleID.h>
Public Member Functions | |
ModuleID (unsigned int link, unsigned int module, unsigned int roiDaq) | |
Construct from constituent parts and encode word. More... | |
ModuleID (const uint16_t) | |
Construct from word and decode constituent parts. More... | |
uint16_t | link () const |
access method More... | |
uint16_t | module () const |
access method More... | |
uint16_t | roiDaq () const |
access method More... | |
uint16_t | id () const |
access method More... | |
bool | isDAQ () const |
True if this is a DAQ module. More... | |
bool | isROI () const |
True if this is a ROI module. More... | |
Protected Member Functions | |
void | decode () |
method used by constructor to decode word More... | |
void | encode () |
method used by constructor to encode word More... | |
Private Attributes | |
uint16_t | m_link |
uint16_t | m_module |
uint16_t | m_roiDaq |
uint16_t | m_id |
Represents the L1Topo module ID, with decoder and encoder.
Used to decode/encode the 16-bit module ID of L1Topo modules which makes up the first 16 bits of the 32-bit source ID that uniquely identifies a ROS and ROB fragment. Numbering scheme for the lower 8 bits is: rmmmssss, where ssss is the S-link fibre number (four bits allowing values 0-15) mmm is the L1Topo module number (three bits allowing values 0-7) r is a one bit flag distingushing RoI fibres (1) from DAQ fibres (0). Valid combinations according to the convention described by experts are: module 0 link 0 DAQ 0 000 0000 = 0x0000 module 0 link 1 RoI 0 000 0001 = 0x0081 module 1 link 0 DAQ 1 001 0000 = 0x0010 module 1 link 1 RoI 0 001 0001 = 0x0091 Link 2 may be used for the new RoIB. A third module may be a later upgrade.
Definition at line 28 of file ModuleID.h.
L1Topo::ModuleID::ModuleID | ( | unsigned int | link, |
unsigned int | module, | ||
unsigned int | roiDaq | ||
) |
L1Topo::ModuleID::ModuleID | ( | const uint16_t | id | ) |
|
protected |
|
protected |
uint16_t L1Topo::ModuleID::id | ( | ) | const |
bool L1Topo::ModuleID::isDAQ | ( | ) | const |
True if this is a DAQ module.
Definition at line 25 of file ModuleID.cxx.
bool L1Topo::ModuleID::isROI | ( | ) | const |
True if this is a ROI module.
Definition at line 29 of file ModuleID.cxx.
uint16_t L1Topo::ModuleID::link | ( | ) | const |
uint16_t L1Topo::ModuleID::module | ( | ) | const |
uint16_t L1Topo::ModuleID::roiDaq | ( | ) | const |
|
private |
Definition at line 55 of file ModuleID.h.
|
private |
Definition at line 52 of file ModuleID.h.
|
private |
Definition at line 53 of file ModuleID.h.
|
private |
Definition at line 54 of file ModuleID.h.