#include <L1TcsWord.h>
Public Member Functions | |
const cms_uint32_t | assignedPartitions () const |
get/set assigned partition: bit "i" correspond to detector partition "i" More... | |
const cms_uint16_t | boardId () const |
get/set board ID More... | |
const cms_uint16_t | bxNr () const |
get/set bunch cross number as counted in the TCS chip More... | |
const cms_uint16_t | daqNr () const |
get/set number of DAQ partition to which the L1A has been sent More... | |
const cms_uint32_t | eventNr () const |
get/set event number since last L1 reset generated in TCS chip More... | |
const unsigned int | getSize () const |
get the size of the TCS block in GT EVM record (in multiple of 8 bits) More... | |
L1TcsWord () | |
constructors More... | |
L1TcsWord (cms_uint16_t boardIdValue, cms_uint16_t bxNrValue, cms_uint16_t daqNrValue, cms_uint16_t triggerTypeValue, cms_uint16_t statusValue, cms_uint16_t luminositySegmentNrValue, cms_uint32_t partRunNrValue, cms_uint32_t assignedPartitionsValue, cms_uint32_t partTrigNrValue, cms_uint32_t eventNrValue, cms_uint64_t orbitNrValue) | |
constructor from unpacked values; More... | |
const cms_uint16_t | luminositySegmentNr () const |
get/set luminosity segment number More... | |
bool | operator!= (const L1TcsWord &) const |
unequal operator More... | |
bool | operator== (const L1TcsWord &) const |
equal operator More... | |
const cms_uint64_t | orbitNr () const |
get/set orbit number since start of run More... | |
const cms_uint32_t | partRunNr () const |
get/set partition run number More... | |
const cms_uint32_t | partTrigNr () const |
get/set total number of L1A sent since start of the run to this DAQ partition More... | |
void | print (std::ostream &myCout) const |
pretty print the content of a L1TcsWord More... | |
void | reset () |
reset the content of a L1TcsWord More... | |
void | setAssignedPartitions (const cms_uint32_t assignedPartitionsValue) |
void | setAssignedPartitions (const cms_uint64_t &word64) |
set the AssignedPartitions value from a 64-bits word More... | |
void | setAssignedPartitionsWord64 (cms_uint64_t &word64, int iWord) |
void | setBoardId (const 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 | setBxNr (const cms_uint16_t bxNrValue) |
void | setBxNr (const cms_uint64_t &word64) |
set the BxNr value from a 64-bits word More... | |
void | setBxNrWord64 (cms_uint64_t &word64, int iWord) |
void | setDaqNr (const cms_uint16_t daqNrValue) |
void | setDaqNr (const cms_uint64_t &word64) |
set the DaqNr value from a 64-bits word More... | |
void | setDaqNrWord64 (cms_uint64_t &word64, int iWord) |
void | setEventNr (const cms_uint32_t eventNrValue) |
void | setEventNr (const cms_uint64_t &word64) |
set the EventNr value from a 64-bits word More... | |
void | setEventNrWord64 (cms_uint64_t &word64, int iWord) |
void | setLuminositySegmentNr (const cms_uint16_t luminositySegmentNrValue) |
void | setLuminositySegmentNr (const cms_uint64_t &word64) |
set the luminosity segment number value from a 64-bits word More... | |
void | setLuminositySegmentNrWord64 (cms_uint64_t &word64, int iWord) |
void | setOrbitNr (const cms_uint64_t orbitNrValue) |
void | setOrbitNrFrom (const cms_uint64_t &word64) |
set the OrbitNr value from a 64-bits word More... | |
void | setOrbitNrWord64 (cms_uint64_t &word64, int iWord) |
void | setPartRunNr (const cms_uint32_t partRunNrValue) |
void | setPartRunNr (const cms_uint64_t &word64) |
set the PartRunNr value from a 64-bits word More... | |
void | setPartRunNrWord64 (cms_uint64_t &word64, int iWord) |
void | setPartTrigNr (const cms_uint32_t partTrigNrValue) |
void | setPartTrigNr (const cms_uint64_t &word64) |
set the PartTrigNr value from a 64-bits word More... | |
void | setPartTrigNrWord64 (cms_uint64_t &word64, int iWord) |
void | setStatus (const cms_uint16_t statusValue) |
void | setStatus (const cms_uint64_t &word64) |
set the Status value from a 64-bits word More... | |
void | setStatusWord64 (cms_uint64_t &word64, int iWord) |
void | setTriggerType (const cms_uint16_t triggerTypeValue) |
void | setTriggerType (const cms_uint64_t &word64) |
set the TriggerType value from a 64-bits word More... | |
void | setTriggerTypeWord64 (cms_uint64_t &word64, int iWord) |
const cms_uint16_t | status () const |
get/set status: 0000 = normal rate; 1000 = low rate = warning More... | |
const cms_uint16_t | triggerType () const |
get/set trigger type, identical with event type in CMS header More... | |
void | unpack (const unsigned char *tcsPtr) |
virtual | ~L1TcsWord () |
destructor More... | |
Private Attributes | |
cms_uint32_t | m_assignedPartitions |
cms_uint16_t | m_boardId |
board identifier More... | |
cms_uint16_t | m_bxNr |
bunch cross number as counted in the TCS chip More... | |
cms_uint16_t | m_daqNr |
number of DAQ partition to which the L1A has been sent More... | |
cms_uint32_t | m_eventNr |
event number since last L1 reset generated in TCS chip More... | |
cms_uint16_t | m_luminositySegmentNr |
luminosity segment number More... | |
cms_uint64_t | m_orbitNr |
orbit number since start of run (48 bits, in fact) More... | |
cms_uint32_t | m_partRunNr |
partition run number More... | |
cms_uint32_t | m_partTrigNr |
cms_uint16_t | m_status |
0000 = normal rate; 1000 = low rate = warning More... | |
cms_uint16_t | m_triggerType |
trigger type, identical with event type in CMS header (event type) More... | |
Static Private Attributes | |
static const cms_uint64_t | AssignedPartitionsMask = 0x00000000FFFFFFFFULL |
static const int | AssignedPartitionsShift = 0 |
static const int | AssignedPartitionsWord = 1 |
static const int | BlockSize = 5 |
static const cms_uint64_t | BoardIdMask = 0xFFFF000000000000ULL |
static const int | BoardIdShift = 48 |
static const int | BoardIdWord = 0 |
static const cms_uint64_t | BxNrMask = 0x00000FFF00000000ULL |
static const int | BxNrShift = 32 |
static const int | BxNrWord = 0 |
static const cms_uint64_t | DaqNrMask = 0x000000000F000000ULL |
static const int | DaqNrShift = 24 |
static const int | DaqNrWord = 0 |
static const cms_uint64_t | EventNrMask = 0x00000000FFFFFFFFULL |
static const int | EventNrShift = 0 |
static const int | EventNrWord = 2 |
static const cms_uint64_t | LuminositySegmentNrMask = 0x000000000000FFFFULL |
static const int | LuminositySegmentNrShift = 0 |
static const int | LuminositySegmentNrWord = 0 |
static const cms_uint64_t | OrbitNrMask = 0x0000FFFFFFFFFFFFULL |
static const int | OrbitNrShift = 0 |
static const int | OrbitNrWord = 3 |
static const cms_uint64_t | PartRunNrMask = 0xFFFFFFFF00000000ULL |
static const int | PartRunNrShift = 32 |
static const int | PartRunNrWord = 1 |
static const cms_uint64_t | PartTrigNrMask = 0xFFFFFFFF00000000ULL |
static const int | PartTrigNrShift = 32 |
static const int | PartTrigNrWord = 2 |
static const cms_uint64_t | StatusMask = 0x00000000000F0000ULL |
static const int | StatusShift = 16 |
static const int | StatusWord = 0 |
static const cms_uint64_t | TriggerTypeMask = 0x0000000000F00000ULL |
static const int | TriggerTypeShift = 20 |
static const int | TriggerTypeWord = 0 |
Description: L1 Global Trigger - TCS words in the readout record.
Implementation: <TODO: enter implementation details>
Description: see header file.
Implementation: <TODO: enter implementation details>
Definition at line 29 of file L1TcsWord.h.
L1TcsWord::L1TcsWord | ( | ) |
constructors
Definition at line 30 of file L1TcsWord.cc.
L1TcsWord::L1TcsWord | ( | cms_uint16_t | boardIdValue, |
cms_uint16_t | bxNrValue, | ||
cms_uint16_t | daqNrValue, | ||
cms_uint16_t | triggerTypeValue, | ||
cms_uint16_t | statusValue, | ||
cms_uint16_t | luminositySegmentNrValue, | ||
cms_uint32_t | partRunNrValue, | ||
cms_uint32_t | assignedPartitionsValue, | ||
cms_uint32_t | partTrigNrValue, | ||
cms_uint32_t | eventNrValue, | ||
cms_uint64_t | orbitNrValue | ||
) |
constructor from unpacked values;
Definition at line 48 of file L1TcsWord.cc.
|
virtual |
destructor
Definition at line 77 of file L1TcsWord.cc.
|
inline |
get/set assigned partition: bit "i" correspond to detector partition "i"
Definition at line 206 of file L1TcsWord.h.
|
inline |
|
inline |
get/set bunch cross number as counted in the TCS chip
Definition at line 87 of file L1TcsWord.h.
|
inline |
get/set number of DAQ partition to which the L1A has been sent
Definition at line 107 of file L1TcsWord.h.
|
inline |
get/set event number since last L1 reset generated in TCS chip
Definition at line 246 of file L1TcsWord.h.
|
inline |
get the size of the TCS block in GT EVM record (in multiple of 8 bits)
Definition at line 285 of file L1TcsWord.h.
|
inline |
get/set luminosity segment number
Definition at line 166 of file L1TcsWord.h.
bool L1TcsWord::operator!= | ( | const L1TcsWord & | result | ) | const |
unequal operator
Definition at line 138 of file L1TcsWord.cc.
bool L1TcsWord::operator== | ( | const L1TcsWord & | result | ) | const |
equal operator
Definition at line 85 of file L1TcsWord.cc.
|
inline |
get/set orbit number since start of run
Definition at line 266 of file L1TcsWord.h.
|
inline |
get/set partition run number
Definition at line 186 of file L1TcsWord.h.
|
inline |
get/set total number of L1A sent since start of the run to this DAQ partition
Definition at line 226 of file L1TcsWord.h.
void L1TcsWord::print | ( | std::ostream & | myCout | ) | const |
pretty print the content of a L1TcsWord
Definition at line 403 of file L1TcsWord.cc.
void L1TcsWord::reset | ( | void | ) |
reset the content of a L1TcsWord
Definition at line 383 of file L1TcsWord.cc.
|
inline |
Definition at line 211 of file L1TcsWord.h.
void L1TcsWord::setAssignedPartitions | ( | const cms_uint64_t & | word64 | ) |
set the AssignedPartitions value from a 64-bits word
Definition at line 295 of file L1TcsWord.cc.
void L1TcsWord::setAssignedPartitionsWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the AssignedPartitions value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 305 of file L1TcsWord.cc.
|
inline |
set BoardId from a BoardId value
Definition at line 72 of file L1TcsWord.h.
void L1TcsWord::setBoardId | ( | const cms_uint64_t & | word64 | ) |
set the BoardId value from a 64-bits word
Definition at line 148 of file L1TcsWord.cc.
void L1TcsWord::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 156 of file L1TcsWord.cc.
|
inline |
Definition at line 92 of file L1TcsWord.h.
void L1TcsWord::setBxNr | ( | const cms_uint64_t & | word64 | ) |
set the BxNr value from a 64-bits word
Definition at line 167 of file L1TcsWord.cc.
void L1TcsWord::setBxNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the BxNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 176 of file L1TcsWord.cc.
|
inline |
Definition at line 112 of file L1TcsWord.h.
void L1TcsWord::setDaqNr | ( | const cms_uint64_t & | word64 | ) |
set the DaqNr value from a 64-bits word
Definition at line 188 of file L1TcsWord.cc.
void L1TcsWord::setDaqNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the DaqNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 197 of file L1TcsWord.cc.
|
inline |
Definition at line 251 of file L1TcsWord.h.
void L1TcsWord::setEventNr | ( | const cms_uint64_t & | word64 | ) |
set the EventNr value from a 64-bits word
Definition at line 341 of file L1TcsWord.cc.
void L1TcsWord::setEventNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the EventNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 350 of file L1TcsWord.cc.
|
inline |
Definition at line 171 of file L1TcsWord.h.
void L1TcsWord::setLuminositySegmentNr | ( | const cms_uint64_t & | word64 | ) |
set the luminosity segment number value from a 64-bits word
Definition at line 250 of file L1TcsWord.cc.
void L1TcsWord::setLuminositySegmentNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the luminosity segment number value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 260 of file L1TcsWord.cc.
|
inline |
Definition at line 271 of file L1TcsWord.h.
void L1TcsWord::setOrbitNrFrom | ( | const cms_uint64_t & | word64 | ) |
set the OrbitNr value from a 64-bits word
Definition at line 363 of file L1TcsWord.cc.
void L1TcsWord::setOrbitNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the OrbitNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 372 of file L1TcsWord.cc.
|
inline |
Definition at line 191 of file L1TcsWord.h.
void L1TcsWord::setPartRunNr | ( | const cms_uint64_t & | word64 | ) |
set the PartRunNr value from a 64-bits word
Definition at line 273 of file L1TcsWord.cc.
void L1TcsWord::setPartRunNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the PartRunNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 282 of file L1TcsWord.cc.
|
inline |
Definition at line 231 of file L1TcsWord.h.
void L1TcsWord::setPartTrigNr | ( | const cms_uint64_t & | word64 | ) |
set the PartTrigNr value from a 64-bits word
Definition at line 319 of file L1TcsWord.cc.
void L1TcsWord::setPartTrigNrWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the PartTrigNr value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 328 of file L1TcsWord.cc.
|
inline |
Definition at line 152 of file L1TcsWord.h.
void L1TcsWord::setStatus | ( | const cms_uint64_t & | word64 | ) |
set the Status value from a 64-bits word
Definition at line 229 of file L1TcsWord.cc.
void L1TcsWord::setStatusWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the Status value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 238 of file L1TcsWord.cc.
|
inline |
Definition at line 132 of file L1TcsWord.h.
void L1TcsWord::setTriggerType | ( | const cms_uint64_t & | word64 | ) |
set the TriggerType value from a 64-bits word
Definition at line 208 of file L1TcsWord.cc.
void L1TcsWord::setTriggerTypeWord64 | ( | cms_uint64_t & | word64, |
int | iWord | ||
) |
set the TriggerType value in a 64-bits word, having the index iWord in the GTFE EVM raw record
Definition at line 217 of file L1TcsWord.cc.
|
inline |
get/set status: 0000 = normal rate; 1000 = low rate = warning
Definition at line 147 of file L1TcsWord.h.
|
inline |
get/set trigger type, identical with event type in CMS header
Definition at line 127 of file L1TcsWord.h.
void L1TcsWord::unpack | ( | const unsigned char * | tcsPtr | ) |
unpack TCS tcsPtr pointer to the beginning of the TCS block in the raw data
Definition at line 500 of file L1TcsWord.cc.
|
staticprivate |
Definition at line 345 of file L1TcsWord.h.
|
staticprivate |
Definition at line 348 of file L1TcsWord.h.
|
staticprivate |
Definition at line 342 of file L1TcsWord.h.
|
staticprivate |
Definition at line 311 of file L1TcsWord.h.
|
staticprivate |
Definition at line 324 of file L1TcsWord.h.
|
staticprivate |
Definition at line 332 of file L1TcsWord.h.
|
staticprivate |
Definition at line 316 of file L1TcsWord.h.
|
staticprivate |
Definition at line 325 of file L1TcsWord.h.
|
staticprivate |
Definition at line 333 of file L1TcsWord.h.
|
staticprivate |
Definition at line 317 of file L1TcsWord.h.
|
staticprivate |
Definition at line 326 of file L1TcsWord.h.
|
staticprivate |
Definition at line 334 of file L1TcsWord.h.
|
staticprivate |
Definition at line 318 of file L1TcsWord.h.
|
staticprivate |
Definition at line 356 of file L1TcsWord.h.
|
staticprivate |
Definition at line 359 of file L1TcsWord.h.
|
staticprivate |
Definition at line 353 of file L1TcsWord.h.
|
staticprivate |
Definition at line 329 of file L1TcsWord.h.
|
staticprivate |
Definition at line 337 of file L1TcsWord.h.
|
staticprivate |
Definition at line 321 of file L1TcsWord.h.
|
private |
bit "i" correspond to detector partition "i" if bit = 1, detection partition connected to actual DAQ partition
Definition at line 404 of file L1TcsWord.h.
|
private |
board identifier
Definition at line 379 of file L1TcsWord.h.
|
private |
bunch cross number as counted in the TCS chip
Definition at line 382 of file L1TcsWord.h.
|
private |
number of DAQ partition to which the L1A has been sent
Definition at line 385 of file L1TcsWord.h.
|
private |
event number since last L1 reset generated in TCS chip
Definition at line 413 of file L1TcsWord.h.
|
private |
luminosity segment number
Definition at line 394 of file L1TcsWord.h.
|
private |
orbit number since start of run (48 bits, in fact)
Definition at line 418 of file L1TcsWord.h.
|
private |
partition run number
Definition at line 399 of file L1TcsWord.h.
|
private |
total number of L1A sent since start of the run to this DAQ partition
Definition at line 410 of file L1TcsWord.h.
|
private |
0000 = normal rate; 1000 = low rate = warning
Definition at line 391 of file L1TcsWord.h.
|
private |
trigger type, identical with event type in CMS header (event type)
Definition at line 388 of file L1TcsWord.h.
|
staticprivate |
Definition at line 365 of file L1TcsWord.h.
|
staticprivate |
Definition at line 367 of file L1TcsWord.h.
|
staticprivate |
Definition at line 363 of file L1TcsWord.h.
|
staticprivate |
Definition at line 344 of file L1TcsWord.h.
|
staticprivate |
Definition at line 347 of file L1TcsWord.h.
|
staticprivate |
Definition at line 341 of file L1TcsWord.h.
|
staticprivate |
Definition at line 355 of file L1TcsWord.h.
|
staticprivate |
Definition at line 358 of file L1TcsWord.h.
|
staticprivate |
Definition at line 352 of file L1TcsWord.h.
|
staticprivate |
Definition at line 328 of file L1TcsWord.h.
|
staticprivate |
Definition at line 336 of file L1TcsWord.h.
|
staticprivate |
Definition at line 320 of file L1TcsWord.h.
|
staticprivate |
Definition at line 327 of file L1TcsWord.h.
|
staticprivate |
Definition at line 335 of file L1TcsWord.h.
|
staticprivate |
Definition at line 319 of file L1TcsWord.h.