ATLAS Offline Software
|
#include <CPCMXTopoData.h>
Public Member Functions | |
CPCMXTopoData (int crate, int cmx, bool overflow, const std::vector< uint32_t > &tobWords) | |
Constructor with Crate, CMX numbers, overflow flag and vector of TOB words. More... | |
CPCMXTopoData (int crate, int cmx, bool overflow, const std::vector< CPTopoTOB > &tobs) | |
Constructor with Crate, CMX numbers, overflow flag and TOB vector. More... | |
CPCMXTopoData (int crate, int cmx, const std::vector< uint32_t > &roiWords) | |
Constructor for HLT: Crate, CMX numbers and vector of RoI words. More... | |
CPCMXTopoData (int crate, int cmx) | |
Constructor with Crate, CMX numbers only. More... | |
CPCMXTopoData () | |
Default constructor. More... | |
~CPCMXTopoData () | |
Destructor. More... | |
int | crate () const |
Return crate number (0-3) More... | |
int | cmx () const |
Return CMX number (0 = EM, 1 = TAU) More... | |
bool | overflow () const |
Return overflow flag. More... | |
void | tobs (std::vector< CPTopoTOB > &tobs) const |
Fill a vector of TOBs. More... | |
const std::vector< uint32_t > & | tobWords () const |
Return vector of TOB words. More... | |
void | addTOB (const CPTopoTOB tob) |
Add TOB to record. More... | |
void | addTOB (uint32_t tobWord) |
Add another TOB to the collection. More... | |
void | addRoI (uint32_t roiWord) |
Add TOB from RoI word. More... | |
void | setOverflow (bool overflow) |
Set overflow flag. More... | |
CPCMXTopoData & | checkCpmOverflow () |
count whether any transmission CPM -> CMX had too many TOBs More... | |
Private Attributes | |
int | m_crate |
Data members. More... | |
int | m_cmx |
bool | m_overflow |
overflow on CMX -> L1Topo transmission More... | |
bool | m_cpm_overflow |
overflow on CPM -> CMX transmission More... | |
std::vector< uint32_t > | m_tobWords |
Static Private Attributes | |
static const unsigned int | s_maxTOBsPerLink = 30 |
Static constants. More... | |
static const unsigned int | s_maxTOBsPerCpm = 5 |
as specified in BackplaneFormats_v3.xlsx More... | |
Definition at line 22 of file CPCMXTopoData.h.
LVL1::CPCMXTopoData::CPCMXTopoData | ( | int | crate, |
int | cmx, | ||
bool | overflow, | ||
const std::vector< uint32_t > & | tobWords | ||
) |
Constructor with Crate, CMX numbers, overflow flag and vector of TOB words.
Load complete object in one go.
Definition at line 34 of file CPCMXTopoData.cxx.
LVL1::CPCMXTopoData::CPCMXTopoData | ( | int | crate, |
int | cmx, | ||
bool | overflow, | ||
const std::vector< CPTopoTOB > & | tobs | ||
) |
Constructor with Crate, CMX numbers, overflow flag and TOB vector.
Constructors.
Load complete object in one go
Definition at line 19 of file CPCMXTopoData.cxx.
LVL1::CPCMXTopoData::CPCMXTopoData | ( | int | crate, |
int | cmx, | ||
const std::vector< uint32_t > & | roiWords | ||
) |
Constructor for HLT: Crate, CMX numbers and vector of RoI words.
Load complete object in one go.
Definition at line 49 of file CPCMXTopoData.cxx.
LVL1::CPCMXTopoData::CPCMXTopoData | ( | int | crate, |
int | cmx | ||
) |
Constructor with Crate, CMX numbers only.
Create empty object for specified crate and module.
Definition at line 66 of file CPCMXTopoData.cxx.
LVL1::CPCMXTopoData::CPCMXTopoData | ( | ) |
LVL1::CPCMXTopoData::~CPCMXTopoData | ( | ) |
void LVL1::CPCMXTopoData::addRoI | ( | uint32_t | roiWord | ) |
Add TOB from RoI word.
Add another TOB word to the collection.
Note: overflows ignored in this method
Definition at line 104 of file CPCMXTopoData.cxx.
Add TOB to record.
Add another TOB word to the collection.
Definition at line 96 of file CPCMXTopoData.cxx.
void LVL1::CPCMXTopoData::addTOB | ( | uint32_t | tobWord | ) |
CPCMXTopoData & LVL1::CPCMXTopoData::checkCpmOverflow | ( | ) |
count whether any transmission CPM -> CMX had too many TOBs
In which case toggle m_cpm_overflow
Definition at line 153 of file CPCMXTopoData.cxx.
int LVL1::CPCMXTopoData::cmx | ( | ) | const |
Return CMX number (0 = EM, 1 = TAU)
Definition at line 125 of file CPCMXTopoData.cxx.
int LVL1::CPCMXTopoData::crate | ( | ) | const |
bool LVL1::CPCMXTopoData::overflow | ( | ) | const |
void LVL1::CPCMXTopoData::setOverflow | ( | bool | overflow | ) |
Set overflow flag.
Definition at line 114 of file CPCMXTopoData.cxx.
void LVL1::CPCMXTopoData::tobs | ( | std::vector< CPTopoTOB > & | tobs | ) | const |
const std::vector< uint32_t > & LVL1::CPCMXTopoData::tobWords | ( | ) | const |
Return vector of TOB words.
Definition at line 138 of file CPCMXTopoData.cxx.
|
private |
Definition at line 66 of file CPCMXTopoData.h.
|
private |
overflow on CPM -> CMX transmission
Definition at line 68 of file CPCMXTopoData.h.
|
private |
Data members.
Definition at line 65 of file CPCMXTopoData.h.
|
private |
overflow on CMX -> L1Topo transmission
Definition at line 67 of file CPCMXTopoData.h.
|
private |
Definition at line 69 of file CPCMXTopoData.h.
|
staticprivate |
as specified in BackplaneFormats_v3.xlsx
Definition at line 72 of file CPCMXTopoData.h.
|
staticprivate |
Static constants.
Definition at line 71 of file CPCMXTopoData.h.