#include <L1GtPsbWord.h>
Public Member Functions | |
const cms_uint16_t | aData (int iA) const |
get/set A_DATA_CH_IA More... | |
const cms_uint16_t | bData (int iB) const |
get/set B_DATA_CH_IB More... | |
const cms_uint16_t | boardId () const |
get/set board ID More... | |
const int | bxInEvent () const |
get/set bunch cross in the GT event record More... | |
const cms_uint16_t | bxNr () const |
get/set bunch cross number of the actual bx More... | |
const cms_uint32_t | eventNr () const |
get/set event number since last L1 reset generated in PSB More... | |
const unsigned int | getSize () const |
get the size of the PSB block in GT DAQ record (in multiple of 8 bits) More... | |
L1GtPsbWord () | |
constructors More... | |
L1GtPsbWord (cms_uint16_t boardIdValue, int bxInEventValue, cms_uint16_t bxNrValue, cms_uint32_t eventNrValue, cms_uint16_t aDataValue[NumberAData], cms_uint16_t bDataValue[NumberBData], cms_uint16_t localBxNrValue) | |
constructor from unpacked values; More... | |
const cms_uint16_t | localBxNr () const |
get/set local bunch cross number of the actual bx More... | |
bool | operator!= (const L1GtPsbWord &) const |
unequal operator More... | |
bool | operator== (const L1GtPsbWord &) const |
equal operator More... | |
void | print (std::ostream &myCout) const |
pretty print More... | |
void | reset () |
reset the content of a L1GtPsbWord More... | |
void | setAData (cms_uint16_t aDataVal, int iA) |
void | setAData (const cms_uint64_t &word64, int iWord) |
void | setADataWord64 (cms_uint64_t &word64, int iWord) |
void | setBData (cms_uint16_t bDataVal, int iB) |
void | setBData (const cms_uint64_t &word64, int iWord) |
void | setBDataWord64 (cms_uint64_t &word64, int iWord) |
void | setBoardId (cms_uint16_t boardIdValue) |
void | setBoardId (const cms_uint64_t &word64, int iWord) |
void | setBoardIdWord64 (cms_uint64_t &word64, int iWord) |
void | setBxInEvent (int bxInEventValue) |
void | setBxInEvent (const cms_uint64_t &word64, int iWord) |
void | setBxInEventWord64 (cms_uint64_t &word64, int iWord) |
void | setBxNr (cms_uint16_t bxNrValue) |
void | setBxNr (const cms_uint64_t &word64, int iWord) |
void | setBxNrWord64 (cms_uint64_t &word64, int iWord) |
void | setEventNr (cms_uint32_t eventNrValue) |
void | setEventNr (const cms_uint64_t &word64, int iWord) |
void | setEventNrWord64 (cms_uint64_t &word64, int iWord) |
void | setLocalBxNr (cms_uint16_t localBxNrValue) |
void | setLocalBxNr (const cms_uint64_t &word64, int iWord) |
void | setLocalBxNrWord64 (cms_uint64_t &word64, int iWord) |
virtual | ~L1GtPsbWord () |
destructor More... | |
Static Public Attributes | |
static const int | NumberAData = 8 |
static const int | NumberBData = 8 |
Private Attributes | |
cms_uint16_t | m_aData [NumberAData] |
cms_uint16_t | m_bData [NumberBData] |
cms_uint16_t | m_boardId |
int | m_bxInEvent |
cms_uint16_t | m_bxNr |
cms_uint32_t | m_eventNr |
cms_uint16_t | m_localBxNr |
Static Private Attributes | |
static const int | ADataCH0Word = 1 |
static const int | ADataCH4Word = 2 |
static const int | BDataCH0Word = 3 |
static const int | BDataCH4Word = 4 |
static const int | BlockSize = 6 |
static const cms_uint64_t | BoardIdMask = 0xFFFF000000000000ULL |
static const int | BoardIdShift = 48 |
static const int | BoardIdWord = 0 |
static const cms_uint64_t | BxInEventMask = 0x0000F00000000000ULL |
static const int | BxInEventShift = 44 |
static const int | BxInEventWord = 0 |
static const cms_uint64_t | BxNrMask = 0x00000FFF00000000ULL |
static const int | BxNrShift = 32 |
static const int | BxNrWord = 0 |
static const cms_uint64_t | DataCHMask = 0x000000000000FFFFULL |
static const int | DataCHSize = 16 |
static const cms_uint64_t | EventNrMask = 0x0000000000FFFFFFULL |
static const int | EventNrShift = 0 |
static const int | EventNrWord = 0 |
static const cms_uint64_t | LocalBxNrMask = 0x0000000000000FFFULL |
static const int | LocalBxNrShift = 0 |
static const int | LocalBxNrWord = 5 |
Description: PSB block in the L1 GT readout record.
Implementation: <TODO: enter implementation details>
Definition at line 29 of file L1GtPsbWord.h.
L1GtPsbWord::L1GtPsbWord | ( | ) |
constructors
Definition at line 28 of file L1GtPsbWord.cc.
References m_aData, m_bData, m_boardId, m_bxInEvent, m_bxNr, m_eventNr, m_localBxNr, NumberAData, and NumberBData.
L1GtPsbWord::L1GtPsbWord | ( | cms_uint16_t | boardIdValue, |
int | bxInEventValue, | ||
cms_uint16_t | bxNrValue, | ||
cms_uint32_t | eventNrValue, | ||
cms_uint16_t | aDataValue[NumberAData], | ||
cms_uint16_t | bDataValue[NumberBData], | ||
cms_uint16_t | localBxNrValue | ||
) |
constructor from unpacked values;
Definition at line 49 of file L1GtPsbWord.cc.
References m_aData, m_bData, m_boardId, m_bxInEvent, m_bxNr, m_eventNr, m_localBxNr, NumberAData, and NumberBData.
|
virtual |
const cms_uint16_t L1GtPsbWord::aData | ( | int | iA | ) | const |
get/set A_DATA_CH_IA
Definition at line 228 of file L1GtPsbWord.cc.
References Exception, m_aData, and NumberAData.
Referenced by ecaldqm::ClusterTask::beginEvent(), L1GtDataEmulAnalyzer::comparePSB(), L1GtHwValidation::comparePSB(), EcalCosmicsHists::determineTriggers(), EcalExclusiveTrigFilter::filter(), and L1Analysis::L1AnalysisGT::Set().
const cms_uint16_t L1GtPsbWord::bData | ( | int | iB | ) | const |
get/set B_DATA_CH_IB
Definition at line 323 of file L1GtPsbWord.cc.
References Exception, m_bData, and NumberBData.
Referenced by ecaldqm::ClusterTask::beginEvent(), L1GtDataEmulAnalyzer::comparePSB(), L1GtHwValidation::comparePSB(), EcalCosmicsHists::determineTriggers(), EcalExclusiveTrigFilter::filter(), and L1Analysis::L1AnalysisGT::Set().
|
inline |
get/set board ID
Definition at line 66 of file L1GtPsbWord.h.
References m_boardId.
Referenced by L1GtPackUnpackAnalyzer::analyzeGT(), L1GtDataEmulAnalyzer::compareDaqRecord(), L1GtHwValidation::compareDaqRecord(), L1GtDataEmulAnalyzer::comparePSB(), and L1GtHwValidation::comparePSB().
|
inline |
get/set bunch cross in the GT event record
Definition at line 87 of file L1GtPsbWord.h.
References m_bxInEvent.
Referenced by L1GtPackUnpackAnalyzer::analyzeGT(), L1GtDataEmulAnalyzer::compareDaqRecord(), L1GtHwValidation::compareDaqRecord(), L1GtDataEmulAnalyzer::comparePSB(), and L1GtHwValidation::comparePSB().
|
inline |
get/set bunch cross number of the actual bx
Definition at line 108 of file L1GtPsbWord.h.
References m_bxNr.
Referenced by L1TGT::analyze(), L1GtDataEmulAnalyzer::comparePSB(), and L1GtHwValidation::comparePSB().
|
inline |
get/set event number since last L1 reset generated in PSB
Definition at line 129 of file L1GtPsbWord.h.
References m_eventNr.
Referenced by L1GtDataEmulAnalyzer::comparePSB(), and L1GtHwValidation::comparePSB().
|
inline |
get the size of the PSB block in GT DAQ record (in multiple of 8 bits)
Definition at line 198 of file L1GtPsbWord.h.
References BlockSize, and L1GlobalTriggerReadoutSetup::UnitLength.
Referenced by L1GTDigiToRaw::packPSB(), L1GTDigiToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), and L1GlobalTriggerRawToDigi::unpackPSB().
|
inline |
get/set local bunch cross number of the actual bx
Definition at line 178 of file L1GtPsbWord.h.
References m_localBxNr.
Referenced by L1TGT::analyze(), L1GtDataEmulAnalyzer::comparePSB(), and L1GtHwValidation::comparePSB().
bool L1GtPsbWord::operator!= | ( | const L1GtPsbWord & | result | ) | const |
unequal operator
Definition at line 124 of file L1GtPsbWord.cc.
bool L1GtPsbWord::operator== | ( | const L1GtPsbWord & | result | ) | const |
equal operator
Definition at line 86 of file L1GtPsbWord.cc.
References m_aData, m_bData, m_boardId, m_bxInEvent, m_bxNr, m_eventNr, m_localBxNr, NumberAData, and NumberBData.
void L1GtPsbWord::print | ( | std::ostream & | myCout | ) | const |
pretty print
Definition at line 453 of file L1GtPsbWord.cc.
References DataCHSize, TauDecayModes::dec, i, m_aData, m_bData, m_boardId, m_bxInEvent, m_bxNr, m_eventNr, and m_localBxNr.
Referenced by L1GtPackUnpackAnalyzer::analyzeGT(), L1GtDataEmulAnalyzer::comparePSB(), L1GtHwValidation::comparePSB(), L1GTDigiToRaw::produce(), and L1GlobalTriggerRawToDigi::produce().
void L1GtPsbWord::reset | ( | void | ) |
reset the content of a L1GtPsbWord
Definition at line 432 of file L1GtPsbWord.cc.
References m_aData, m_bData, m_boardId, m_bxInEvent, m_bxNr, m_eventNr, m_localBxNr, NumberAData, and NumberBData.
Referenced by L1GlobalTriggerRawToDigi::produce().
void L1GtPsbWord::setAData | ( | cms_uint16_t | aDataVal, |
int | iA | ||
) |
Definition at line 242 of file L1GtPsbWord.cc.
References Exception, m_aData, and NumberAData.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setAData | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the AData value from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 258 of file L1GtPsbWord.cc.
References ADataCH0Word, ADataCH4Word, DataCHSize, i, and m_aData.
void L1GtPsbWord::setADataWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the AData value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 295 of file L1GtPsbWord.cc.
References ADataCH0Word, ADataCH4Word, DataCHSize, i, and m_aData.
Referenced by L1GTDigiToRaw::packPSB().
void L1GtPsbWord::setBData | ( | cms_uint16_t | bDataVal, |
int | iB | ||
) |
Definition at line 337 of file L1GtPsbWord.cc.
References Exception, m_bData, and NumberBData.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setBData | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BData value from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 353 of file L1GtPsbWord.cc.
References BDataCH0Word, BDataCH4Word, DataCHSize, i, and m_bData.
void L1GtPsbWord::setBDataWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BData value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 379 of file L1GtPsbWord.cc.
References BDataCH0Word, BDataCH4Word, DataCHSize, i, and m_bData.
Referenced by L1GTDigiToRaw::packPSB().
|
inline |
Definition at line 71 of file L1GtPsbWord.h.
References m_boardId.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setBoardId | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BoardId value from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 136 of file L1GtPsbWord.cc.
References BoardIdMask, BoardIdShift, BoardIdWord, and m_boardId.
void L1GtPsbWord::setBoardIdWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BoardId value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 146 of file L1GtPsbWord.cc.
References BoardIdShift, BoardIdWord, and m_boardId.
Referenced by L1GTDigiToRaw::packPSB().
|
inline |
Definition at line 92 of file L1GtPsbWord.h.
References m_bxInEvent.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setBxInEvent | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BxInEvent value from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 158 of file L1GtPsbWord.cc.
References BxInEventMask, BxInEventShift, BxInEventWord, and m_bxInEvent.
void L1GtPsbWord::setBxInEventWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BxInEvent value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 170 of file L1GtPsbWord.cc.
References BxInEventShift, BxInEventWord, and m_bxInEvent.
Referenced by L1GTDigiToRaw::packPSB().
|
inline |
Definition at line 113 of file L1GtPsbWord.h.
References m_bxNr.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setBxNr | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
void L1GtPsbWord::setBxNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BxNr value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 195 of file L1GtPsbWord.cc.
References BxNrShift, BxNrWord, and m_bxNr.
Referenced by L1GTDigiToRaw::packPSB().
|
inline |
Definition at line 134 of file L1GtPsbWord.h.
References m_eventNr.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setEventNr | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the EventNr value from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 206 of file L1GtPsbWord.cc.
References EventNrMask, EventNrShift, EventNrWord, and m_eventNr.
void L1GtPsbWord::setEventNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the EventNr value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 216 of file L1GtPsbWord.cc.
References EventNrShift, EventNrWord, and m_eventNr.
Referenced by L1GTDigiToRaw::packPSB().
|
inline |
Definition at line 183 of file L1GtPsbWord.h.
References m_localBxNr.
Referenced by L1GlobalTriggerPSB::fillPsbBlock(), and L1GlobalTriggerRawToDigi::unpackPSB().
void L1GtPsbWord::setLocalBxNr | ( | const cms_uint64_t & | word64, |
int | iWord | ||
) |
set the local bunch cross number bits from a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 408 of file L1GtPsbWord.cc.
References LocalBxNrMask, LocalBxNrShift, LocalBxNrWord, and m_localBxNr.
void L1GtPsbWord::setLocalBxNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the local bunch cross number bits in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 418 of file L1GtPsbWord.cc.
References LocalBxNrShift, LocalBxNrWord, and m_localBxNr.
Referenced by L1GTDigiToRaw::packPSB().
|
staticprivate |
Definition at line 246 of file L1GtPsbWord.h.
Referenced by setAData(), and setADataWord64().
|
staticprivate |
Definition at line 249 of file L1GtPsbWord.h.
Referenced by setAData(), and setADataWord64().
|
staticprivate |
Definition at line 252 of file L1GtPsbWord.h.
Referenced by setBData(), and setBDataWord64().
|
staticprivate |
Definition at line 255 of file L1GtPsbWord.h.
Referenced by setBData(), and setBDataWord64().
|
staticprivate |
Definition at line 219 of file L1GtPsbWord.h.
Referenced by getSize().
|
staticprivate |
Definition at line 230 of file L1GtPsbWord.h.
Referenced by setBoardId().
|
staticprivate |
Definition at line 236 of file L1GtPsbWord.h.
Referenced by setBoardId(), and setBoardIdWord64().
|
staticprivate |
Definition at line 224 of file L1GtPsbWord.h.
Referenced by setBoardId(), and setBoardIdWord64().
|
staticprivate |
Definition at line 231 of file L1GtPsbWord.h.
Referenced by setBxInEvent().
|
staticprivate |
Definition at line 237 of file L1GtPsbWord.h.
Referenced by setBxInEvent(), and setBxInEventWord64().
|
staticprivate |
Definition at line 225 of file L1GtPsbWord.h.
Referenced by setBxInEvent(), and setBxInEventWord64().
|
staticprivate |
Definition at line 232 of file L1GtPsbWord.h.
Referenced by setBxNr().
|
staticprivate |
Definition at line 238 of file L1GtPsbWord.h.
Referenced by setBxNr(), and setBxNrWord64().
|
staticprivate |
Definition at line 226 of file L1GtPsbWord.h.
Referenced by setBxNr(), and setBxNrWord64().
|
staticprivate |
Definition at line 243 of file L1GtPsbWord.h.
|
staticprivate |
Definition at line 242 of file L1GtPsbWord.h.
Referenced by print(), setAData(), setADataWord64(), setBData(), and setBDataWord64().
|
staticprivate |
Definition at line 233 of file L1GtPsbWord.h.
Referenced by setEventNr().
|
staticprivate |
Definition at line 239 of file L1GtPsbWord.h.
Referenced by setEventNr(), and setEventNrWord64().
|
staticprivate |
Definition at line 227 of file L1GtPsbWord.h.
Referenced by setEventNr(), and setEventNrWord64().
|
staticprivate |
Definition at line 259 of file L1GtPsbWord.h.
Referenced by setLocalBxNr().
|
staticprivate |
Definition at line 260 of file L1GtPsbWord.h.
Referenced by setLocalBxNr(), and setLocalBxNrWord64().
|
staticprivate |
Definition at line 258 of file L1GtPsbWord.h.
Referenced by setLocalBxNr(), and setLocalBxNrWord64().
|
private |
Definition at line 279 of file L1GtPsbWord.h.
Referenced by aData(), L1GtPsbWord(), operator==(), print(), reset(), setAData(), and setADataWord64().
|
private |
Definition at line 281 of file L1GtPsbWord.h.
Referenced by bData(), L1GtPsbWord(), operator==(), print(), reset(), setBData(), and setBDataWord64().
|
private |
Definition at line 270 of file L1GtPsbWord.h.
Referenced by boardId(), L1GtPsbWord(), operator==(), print(), reset(), setBoardId(), and setBoardIdWord64().
|
private |
Definition at line 272 of file L1GtPsbWord.h.
Referenced by bxInEvent(), L1GtPsbWord(), operator==(), print(), reset(), setBxInEvent(), and setBxInEventWord64().
|
private |
Definition at line 276 of file L1GtPsbWord.h.
Referenced by bxNr(), L1GtPsbWord(), operator==(), print(), reset(), setBxNr(), and setBxNrWord64().
|
private |
Definition at line 277 of file L1GtPsbWord.h.
Referenced by eventNr(), L1GtPsbWord(), operator==(), print(), reset(), setEventNr(), and setEventNrWord64().
|
private |
Definition at line 283 of file L1GtPsbWord.h.
Referenced by L1GtPsbWord(), localBxNr(), operator==(), print(), reset(), setLocalBxNr(), and setLocalBxNrWord64().
|
static |
Definition at line 34 of file L1GtPsbWord.h.
Referenced by aData(), L1GtDataEmulAnalyzer::comparePSB(), L1GtHwValidation::comparePSB(), L1GtPsbWord(), operator==(), reset(), and setAData().
|
static |
Definition at line 35 of file L1GtPsbWord.h.
Referenced by bData(), L1GtDataEmulAnalyzer::comparePSB(), L1GtHwValidation::comparePSB(), L1GtPsbWord(), operator==(), reset(), and setBData().