#include <L1GtfeWord.h>
Public Member Functions | |
const cms_uint16_t | activeBoards () const |
get/set boards contributing to EVM respectively DAQ record More... | |
const cms_uint16_t | altNrBxBoard () const |
get/set alternative for number of BX per board More... | |
const cms_uint16_t | boardId () const |
get/set board ID More... | |
const int | bstFlag () const |
get / set BST flag: 0 or 1 - via setup version (no private member) More... | |
const cms_uint16_t | bxNr () const |
get/set bunch cross number as counted in the GTFE board More... | |
const unsigned int | getSize () const |
get the size of the GTFE block in GT DAQ record (in multiple of 8 bits) More... | |
L1GtfeWord () | |
constructors More... | |
L1GtfeWord (cms_uint16_t boardIdValue, cms_uint16_t recordLength1Value, cms_uint16_t recordLengthValue, cms_uint16_t bxNrValue, cms_uint32_t setupVersionValue, cms_uint16_t activeBoardsValue, cms_uint16_t altNrBxBoardValue, cms_uint32_t totalTriggerNrValue) | |
constructor from unpacked values; More... | |
bool | operator!= (const L1GtfeWord &) const |
unequal operator More... | |
bool | operator== (const L1GtfeWord &) const |
equal operator More... | |
virtual void | print (std::ostream &myCout) const |
pretty print the content of a L1GtfeWord More... | |
const cms_uint16_t | recordLength () const |
get/set record length for alternative 0 More... | |
const cms_uint16_t | recordLength1 () const |
get/set record length for alternative 1 More... | |
virtual void | reset () |
reset the content of a L1GtfeWord More... | |
void | setActiveBoards (cms_uint16_t activeBoardsValue) |
void | setActiveBoards (const cms_uint64_t &word64) |
void | setActiveBoardsWord64 (cms_uint64_t &word64, int iWord) |
void | setActiveBoardsWord64 (cms_uint64_t &word64, int iWord, cms_int16_t activeBoardsValue) |
void | setAltNrBxBoard (cms_uint16_t altNrBxBoardValue) |
void | setAltNrBxBoard (const cms_uint64_t &word64) |
void | setAltNrBxBoardWord64 (cms_uint64_t &word64, int iWord) |
void | setAltNrBxBoardWord64 (cms_uint64_t &word64, int iWord, cms_int16_t altNrBxBoardValue) |
void | setBoardId (cms_uint16_t boardIdValue) |
set BoardId from a BoardId value More... | |
void | setBoardId (const cms_uint64_t &word64) |
set the BoardId value from a 64-bits word More... | |
void | setBoardIdWord64 (cms_uint64_t &word64, int iWord) |
void | setBstFlag (const int) |
void | setBxNr (cms_uint16_t bxNrValue) |
void | setBxNr (const cms_uint64_t &word64) |
void | setBxNrWord64 (cms_uint64_t &word64, int iWord) |
void | setRecordLength (cms_uint16_t recordLengthValue) |
void | setRecordLength (const cms_uint64_t &word64) |
void | setRecordLength1 (cms_uint16_t recordLengthValue) |
void | setRecordLength1 (const cms_uint64_t &word64) |
void | setRecordLength1Word64 (cms_uint64_t &word64, int iWord) |
void | setRecordLengthWord64 (cms_uint64_t &word64, int iWord) |
void | setSetupVersion (cms_uint32_t setupVersionValue) |
void | setSetupVersion (const cms_uint64_t &word64) |
void | setSetupVersionWord64 (cms_uint64_t &word64, int iWord) |
void | setTotalTriggerNr (cms_uint32_t totalTriggerNrValue) |
void | setTotalTriggerNr (const cms_uint64_t &word64) |
void | setTotalTriggerNrWord64 (cms_uint64_t &word64, int iWord) |
const cms_uint32_t | setupVersion () const |
get/set setup version More... | |
const cms_uint32_t | totalTriggerNr () const |
get/set total number of L1A sent since start of run More... | |
virtual void | unpack (const unsigned char *gtfePtr) |
virtual | ~L1GtfeWord () |
destructor More... | |
Private Attributes | |
cms_uint16_t | m_activeBoards |
active boards contributing to EVM respectively DAQ record More... | |
cms_uint16_t | m_altNrBxBoard |
cms_uint16_t | m_boardId |
board identifier More... | |
cms_uint16_t | m_bxNr |
bunch cross number as counted in the GTFE board More... | |
cms_uint16_t | m_recordLength |
record length for alternative 0 More... | |
cms_uint16_t | m_recordLength1 |
record length for alternative 1 More... | |
cms_uint32_t | m_setupVersion |
cms_uint32_t | m_totalTriggerNr |
total number of L1A sent since start of run More... | |
Static Private Attributes | |
static const cms_uint64_t | ActiveBoardsMask = 0xFFFF000000000000ULL |
static const int | ActiveBoardsShift = 48 |
static const int | ActiveBoardsWord = 1 |
static const cms_uint64_t | AltNrBxBoardMask = 0x0000FFFF00000000ULL |
static const int | AltNrBxBoardShift = 32 |
static const int | AltNrBxBoardWord = 1 |
static const int | BlockSize = 2 |
static const cms_uint64_t | BoardIdMask = 0xFF00000000000000ULL |
static const int | BoardIdShift = 56 |
static const int | BoardIdWord = 0 |
static const cms_uint32_t | BstFlagMask = 0x0001 |
static const cms_uint64_t | BxNrMask = 0x00000FFF00000000ULL |
static const int | BxNrShift = 32 |
static const int | BxNrWord = 0 |
static const cms_uint64_t | RecordLength1Mask = 0x00F0000000000000ULL |
static const int | RecordLength1Shift = 52 |
static const int | RecordLength1Word = 0 |
static const cms_uint64_t | RecordLengthMask = 0x000F000000000000ULL |
static const int | RecordLengthShift = 48 |
static const int | RecordLengthWord = 0 |
static const cms_uint64_t | SetupVersionMask = 0x00000000FFFFFFFFULL |
static const int | SetupVersionShift = 0 |
static const int | SetupVersionWord = 0 |
static const cms_uint64_t | TotalTriggerNrMask = 0x00000000FFFFFFFFULL |
static const int | TotalTriggerNrShift = 0 |
static const int | TotalTriggerNrWord = 1 |
Description: L1 Global Trigger - GTFE words in the readout record.
Implementation: <TODO: enter implementation details>
Definition at line 30 of file L1GtfeWord.h.
L1GtfeWord::L1GtfeWord | ( | ) |
constructors
Definition at line 29 of file L1GtfeWord.cc.
L1GtfeWord::L1GtfeWord | ( | cms_uint16_t | boardIdValue, |
cms_uint16_t | recordLength1Value, | ||
cms_uint16_t | recordLengthValue, | ||
cms_uint16_t | bxNrValue, | ||
cms_uint32_t | setupVersionValue, | ||
cms_uint16_t | activeBoardsValue, | ||
cms_uint16_t | altNrBxBoardValue, | ||
cms_uint32_t | totalTriggerNrValue | ||
) |
constructor from unpacked values;
Definition at line 38 of file L1GtfeWord.cc.
|
virtual |
destructor
Definition at line 54 of file L1GtfeWord.cc.
|
inline |
get/set boards contributing to EVM respectively DAQ record
Definition at line 163 of file L1GtfeWord.h.
|
inline |
get/set alternative for number of BX per board
Definition at line 187 of file L1GtfeWord.h.
|
inline |
const int L1GtfeWord::bstFlag | ( | ) | const |
get / set BST flag: 0 or 1 - via setup version (no private member)
Definition at line 206 of file L1GtfeWord.cc.
|
inline |
get/set bunch cross number as counted in the GTFE board
Definition at line 122 of file L1GtfeWord.h.
|
inline |
get the size of the GTFE block in GT DAQ record (in multiple of 8 bits)
Definition at line 229 of file L1GtfeWord.h.
bool L1GtfeWord::operator!= | ( | const L1GtfeWord & | result | ) | const |
unequal operator
Definition at line 103 of file L1GtfeWord.cc.
bool L1GtfeWord::operator== | ( | const L1GtfeWord & | result | ) | const |
equal operator
Definition at line 62 of file L1GtfeWord.cc.
|
virtual |
pretty print the content of a L1GtfeWord
Reimplemented in L1GtfeExtWord.
Definition at line 321 of file L1GtfeWord.cc.
|
inline |
get/set record length for alternative 0
Definition at line 104 of file L1GtfeWord.h.
|
inline |
get/set record length for alternative 1
Definition at line 85 of file L1GtfeWord.h.
|
virtual |
reset the content of a L1GtfeWord
Reimplemented in L1GtfeExtWord.
Definition at line 306 of file L1GtfeWord.cc.
|
inline |
Definition at line 168 of file L1GtfeWord.h.
void L1GtfeWord::setActiveBoards | ( | const cms_uint64_t & | word64 | ) |
Definition at line 224 of file L1GtfeWord.cc.
void L1GtfeWord::setActiveBoardsWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the ActiveBoards value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 231 of file L1GtfeWord.cc.
void L1GtfeWord::setActiveBoardsWord64 | ( | cms_uint64_t & | word64, |
int | iWord, | ||
cms_int16_t | activeBoardsValue | ||
) |
set the ActiveBoards value in a 64-bits word, having the index iWord in the GTFE raw record from the value activeBoardsValue
Definition at line 243 of file L1GtfeWord.cc.
|
inline |
Definition at line 192 of file L1GtfeWord.h.
void L1GtfeWord::setAltNrBxBoard | ( | const cms_uint64_t & | word64 | ) |
Definition at line 256 of file L1GtfeWord.cc.
void L1GtfeWord::setAltNrBxBoardWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the AltNrBxBoard value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 263 of file L1GtfeWord.cc.
void L1GtfeWord::setAltNrBxBoardWord64 | ( | cms_uint64_t & | word64, |
int | iWord, | ||
cms_int16_t | altNrBxBoardValue | ||
) |
set the AltNrBxBoard value in a 64-bits word, having the index iWord in the GTFE raw record from the value altNrBxBoardValue
Definition at line 275 of file L1GtfeWord.cc.
|
inline |
set BoardId from a BoardId value
Definition at line 71 of file L1GtfeWord.h.
void L1GtfeWord::setBoardId | ( | const cms_uint64_t & | word64 | ) |
set the BoardId value from a 64-bits word
Definition at line 113 of file L1GtfeWord.cc.
void L1GtfeWord::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 120 of file L1GtfeWord.cc.
void L1GtfeWord::setBstFlag | ( | const int | bstFlagValue | ) |
Definition at line 215 of file L1GtfeWord.cc.
|
inline |
Definition at line 127 of file L1GtfeWord.h.
void L1GtfeWord::setBxNr | ( | const cms_uint64_t & | word64 | ) |
Definition at line 169 of file L1GtfeWord.cc.
void L1GtfeWord::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 176 of file L1GtfeWord.cc.
|
inline |
Definition at line 109 of file L1GtfeWord.h.
void L1GtfeWord::setRecordLength | ( | const cms_uint64_t & | word64 | ) |
Definition at line 150 of file L1GtfeWord.cc.
|
inline |
Definition at line 90 of file L1GtfeWord.h.
void L1GtfeWord::setRecordLength1 | ( | const cms_uint64_t & | word64 | ) |
Definition at line 131 of file L1GtfeWord.cc.
void L1GtfeWord::setRecordLength1Word64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the RecordLength value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 138 of file L1GtfeWord.cc.
void L1GtfeWord::setRecordLengthWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the RecordLength value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 157 of file L1GtfeWord.cc.
|
inline |
Definition at line 145 of file L1GtfeWord.h.
void L1GtfeWord::setSetupVersion | ( | const cms_uint64_t & | word64 | ) |
Definition at line 187 of file L1GtfeWord.cc.
void L1GtfeWord::setSetupVersionWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the SetupVersion value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 194 of file L1GtfeWord.cc.
|
inline |
Definition at line 216 of file L1GtfeWord.h.
void L1GtfeWord::setTotalTriggerNr | ( | const cms_uint64_t & | word64 | ) |
Definition at line 286 of file L1GtfeWord.cc.
void L1GtfeWord::setTotalTriggerNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the TotalTriggerNr value in a 64-bits word, having the index iWord in the GTFE raw record
Definition at line 293 of file L1GtfeWord.cc.
|
inline |
get/set setup version
Definition at line 140 of file L1GtfeWord.h.
|
inline |
get/set total number of L1A sent since start of run
Definition at line 211 of file L1GtfeWord.h.
|
virtual |
unpack GTFE gtfePtr pointer to the beginning of the GTFE block in the raw data
Reimplemented in L1GtfeExtWord.
Definition at line 380 of file L1GtfeWord.cc.
|
staticprivate |
Definition at line 281 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 285 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 277 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 282 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 286 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 278 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 253 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 261 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 270 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 255 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 267 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 264 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 273 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 258 of file L1GtfeWord.h.
|
private |
active boards contributing to EVM respectively DAQ record
Definition at line 306 of file L1GtfeWord.h.
|
private |
alternative for number of BX per board correlated with active boards bit value is 0: take alternative 0 bit value is 1: take alternative 1
Definition at line 312 of file L1GtfeWord.h.
|
private |
board identifier
Definition at line 293 of file L1GtfeWord.h.
|
private |
bunch cross number as counted in the GTFE board
Definition at line 302 of file L1GtfeWord.h.
|
private |
record length for alternative 0
Definition at line 299 of file L1GtfeWord.h.
|
private |
record length for alternative 1
Definition at line 296 of file L1GtfeWord.h.
|
private |
Definition at line 303 of file L1GtfeWord.h.
|
private |
total number of L1A sent since start of run
Definition at line 315 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 262 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 271 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 256 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 263 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 272 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 257 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 265 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 274 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 259 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 283 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 287 of file L1GtfeWord.h.
|
staticprivate |
Definition at line 279 of file L1GtfeWord.h.