ATLAS Offline Software
|
The JetCMXData object contains the data transferred from the CPM to one of the Jet CMX in the crate. More...
#include <JetCMXData.h>
Public Member Functions | |
JetCMXData () | |
Constructors. More... | |
JetCMXData (int crate, int module, const std::vector< unsigned int > &tobWords) | |
JetCMXData (int crate, int module, const DataVector< JEMTobRoI > *tobs) | |
virtual | ~JetCMXData () |
Destructor. More... | |
int | crate () const |
Data accessors. More... | |
int | module () const |
module number More... | |
unsigned int | presenceMap () const |
8 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 4 TOBs. More... | |
std::vector< unsigned int > | TOBWords () const |
Data words (2b LC + 9b Small ET + 10b Large ET) for up to 4 TOBs. More... | |
std::vector< unsigned int > | TopoTOBs () const |
L1Topo TOB words (1bRO + 4b JEM + 3b Frame + 2b LC + 9b Small ET + 10b Large ET) for up to 4 TOBs. More... | |
Private Attributes | |
int | m_crate |
Internal data. More... | |
int | m_module |
std::vector< unsigned int > | m_DataWords |
The JetCMXData object contains the data transferred from the CPM to one of the Jet CMX in the crate.
This is a transient class, describing backplane data
Definition at line 25 of file JetCMXData.h.
LVL1::JetCMXData::JetCMXData | ( | ) |
Constructors.
Definition at line 10 of file JetCMXData.cxx.
LVL1::JetCMXData::JetCMXData | ( | int | crate, |
int | module, | ||
const std::vector< unsigned int > & | tobWords | ||
) |
Definition at line 17 of file JetCMXData.cxx.
LVL1::JetCMXData::JetCMXData | ( | int | crate, |
int | module, | ||
const DataVector< JEMTobRoI > * | 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 26 of file JetCMXData.cxx.
|
virtual |
int LVL1::JetCMXData::crate | ( | ) | const |
std::vector< unsigned int > LVL1::JetCMXData::DataWords | ( | ) | const |
the 4 raw backplane data words
Definition at line 153 of file JetCMXData.cxx.
int LVL1::JetCMXData::module | ( | ) | const |
bool LVL1::JetCMXData::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 131 of file JetCMXData.cxx.
unsigned int LVL1::JetCMXData::presenceMap | ( | ) | const |
8 bit presence map
Definition at line 125 of file JetCMXData.cxx.
std::vector< unsigned int > LVL1::JetCMXData::TOBPresenceBits | ( | ) | const |
std::vector< unsigned int > LVL1::JetCMXData::TOBWords | ( | ) | const |
Data words (2b LC + 9b Small ET + 10b Large ET) for up to 4 TOBs.
If PresenceMap empty just return
Otherwise decode data words
Definition at line 179 of file JetCMXData.cxx.
std::vector< unsigned int > LVL1::JetCMXData::TopoTOBs | ( | ) | const |
L1Topo TOB words (1bRO + 4b JEM + 3b Frame + 2b LC + 9b Small ET + 10b Large ET) for up to 4 TOBs.
If PresenceMap empty just return
Otherwise decode data words
Definition at line 236 of file JetCMXData.cxx.
|
private |
Internal data.
Definition at line 50 of file JetCMXData.h.
|
private |
Definition at line 52 of file JetCMXData.h.
|
private |
Definition at line 51 of file JetCMXData.h.