ATLAS Offline Software
|
The CPMCMXData object contains the data transferred from the CPM to one of the CMXes (EM or Tau) in the crate. More...
#include <CPMCMXData.h>
Public Member Functions | |
CPMCMXData () | |
Constructors. More... | |
CPMCMXData (int crate, int module, int type, const std::vector< unsigned int > &tobWords) | |
CPMCMXData (int crate, int module, int type, const DataVector< CPMTobRoI > *tobs) | |
virtual | ~CPMCMXData () |
Destructor. More... | |
int | crate () const |
Data accessors. More... | |
int | module () const |
module number More... | |
int | type () const |
TOB type (EM/Tau) More... | |
unsigned int | presenceMap () const |
16 bit presence map More... | |
bool | overflow () const |
Report whether TOB overflow occurred. More... | |
std::vector< unsigned int > | DataWords () const |
the 4 raw backplane data words More... | |
std::vector< unsigned int > | TOBPresenceBits () const |
Locations in Presence Map for up to 5 TOBs. More... | |
std::vector< unsigned int > | TOBWords () const |
Data words (2b LC + 5b Isol + 8b ET) for up to 5 TOBs. More... | |
std::vector< unsigned int > | TopoTOBs () const |
L1Topo TOB words (1bRO + 4b CPM + 3b Chip + 3b LC + 5b Isol + 8b ET) for up to 5 TOBs. More... | |
Private Attributes | |
int | m_crate |
Internal data. More... | |
int | m_module |
int | m_type |
std::vector< unsigned int > | m_DataWords |
The CPMCMXData object contains the data transferred from the CPM to one of the CMXes (EM or Tau) in the crate.
This is a transient class, describing backplane data
Definition at line 25 of file CPMCMXData.h.
LVL1::CPMCMXData::CPMCMXData | ( | ) |
Constructors.
Definition at line 10 of file CPMCMXData.cxx.
LVL1::CPMCMXData::CPMCMXData | ( | int | crate, |
int | module, | ||
int | type, | ||
const std::vector< unsigned int > & | tobWords | ||
) |
Definition at line 17 of file CPMCMXData.cxx.
LVL1::CPMCMXData::CPMCMXData | ( | int | crate, |
int | module, | ||
int | type, | ||
const DataVector< CPMTobRoI > * | tobs | ||
) |
Step through vector of RoIs. Find those whose crate, module, type match To make backplane data words we need to geographically sort TOBs
Now step though identified TOBs in correct geographical order and fill backplane words
Definition at line 27 of file CPMCMXData.cxx.
|
virtual |
int LVL1::CPMCMXData::crate | ( | ) | const |
std::vector< unsigned int > LVL1::CPMCMXData::DataWords | ( | ) | const |
the 4 raw backplane data words
Definition at line 142 of file CPMCMXData.cxx.
int LVL1::CPMCMXData::module | ( | ) | const |
bool LVL1::CPMCMXData::overflow | ( | ) | const |
Report whether TOB overflow occurred.
Don't waste time if PresenceMap empty
Otherwise count non-zero bits in presence map
Definition at line 295 of file CPMCMXData.cxx.
unsigned int LVL1::CPMCMXData::presenceMap | ( | ) | const |
16 bit presence map
Definition at line 136 of file CPMCMXData.cxx.
std::vector< unsigned int > LVL1::CPMCMXData::TOBPresenceBits | ( | ) | const |
std::vector< unsigned int > LVL1::CPMCMXData::TOBWords | ( | ) | const |
Data words (2b LC + 5b Isol + 8b ET) for up to 5 TOBs.
If PresenceMap empty just return
Otherwise decode data words
Definition at line 169 of file CPMCMXData.cxx.
std::vector< unsigned int > LVL1::CPMCMXData::TopoTOBs | ( | ) | const |
L1Topo TOB words (1bRO + 4b CPM + 3b Chip + 3b LC + 5b Isol + 8b ET) for up to 5 TOBs.
If PresenceMap empty just return
Otherwise decode data words
Definition at line 230 of file CPMCMXData.cxx.
int LVL1::CPMCMXData::type | ( | ) | const |
|
private |
Internal data.
Definition at line 51 of file CPMCMXData.h.
|
private |
Definition at line 54 of file CPMCMXData.h.
|
private |
Definition at line 52 of file CPMCMXData.h.
|
private |
Definition at line 53 of file CPMCMXData.h.