141 return !( result == *
this);
406 myCout <<
"\n L1TcsWord::print \n" << std::endl;
410 myCout <<
"\n Word " << iWord << std::endl;
412 myCout <<
" Board Id: "
413 << std::hex <<
" hex: " <<
" "<< std::setw(4) << std::setfill(
'0') <<
m_boardId
420 << std::hex <<
" hex: " <<
" " << std::setw(3) << std::setfill(
'0') <<
m_bxNr
427 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_daqNr
431 myCout <<
" TriggerType: "
432 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_triggerType
436 myCout <<
" Status: "
437 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_status
441 myCout <<
" LuminositySegmentNr: "
448 myCout <<
"\n Word " << iWord << std::endl;
450 myCout <<
" PartRunNr: "
451 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_partRunNr
456 myCout <<
" AssignedPartitions: "
457 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0')
465 myCout <<
"\n Word " << iWord << std::endl;
467 myCout <<
" PartTrigNr: "
468 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_partTrigNr
474 myCout <<
" EventNr: "
475 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_eventNr
481 myCout <<
"\n Word " << iWord << std::endl;
483 myCout <<
" OrbitNr: "
484 << std::hex <<
" hex: " <<
"" << std::setw(12) << std::setfill(
'0') <<
m_orbitNr
490 myCout <<
"\n Word " << iWord << std::endl;
492 myCout <<
" Empty word "
503 <<
"\nUnpacking TCS block.\n"
507 reinterpret_cast<cms_uint64_t*
>(
const_cast<unsigned char*
>(tcsPtr));
526 for (
int iWord = 0; iWord <
BlockSize; ++iWord) {
528 << std::setw(4) << iWord <<
" "
529 << std::hex << std::setfill(
'0')
530 << std::setw(16) << payload[iWord]
cms_uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
static const int OrbitNrWord
cms_uint32_t m_partRunNr
partition run number
void setBoardIdWord64(cms_uint64_t &word64, int iWord)
static const int PartRunNrShift
void setBxNrWord64(cms_uint64_t &word64, int iWord)
void reset()
reset the content of a L1TcsWord
void setBxNr(const cms_uint16_t bxNrValue)
static const int OrbitNrShift
cms_uint32_t m_partTrigNr
void setAssignedPartitions(const cms_uint32_t assignedPartitionsValue)
cms_uint16_t m_bxNr
bunch cross number as counted in the TCS chip
static const int BxNrShift
void setOrbitNrFrom(const cms_uint64_t &word64)
set the OrbitNr value from a 64-bits word
static const cms_uint64_t OrbitNrMask
static const cms_uint64_t LuminositySegmentNrMask
cms_uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
void setLuminositySegmentNr(const cms_uint16_t luminositySegmentNrValue)
void setAssignedPartitionsWord64(cms_uint64_t &word64, int iWord)
static const cms_uint64_t BxNrMask
void setOrbitNrWord64(cms_uint64_t &word64, int iWord)
static const cms_uint64_t PartTrigNrMask
static const int EventNrWord
void setStatus(const cms_uint16_t statusValue)
void setTriggerTypeWord64(cms_uint64_t &word64, int iWord)
static const int PartRunNrWord
void setPartRunNr(const cms_uint32_t partRunNrValue)
void print(std::ostream &myCout) const
pretty print the content of a L1TcsWord
static const cms_uint64_t StatusMask
static const int LuminositySegmentNrWord
void setPartTrigNr(const cms_uint32_t partTrigNrValue)
static const int DaqNrShift
bool operator!=(const L1TcsWord &) const
unequal operator
cms_uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
cms_uint16_t m_boardId
board identifier
static const cms_uint64_t DaqNrMask
static const int PartTrigNrWord
unsigned short cms_uint16_t
static const cms_uint64_t BoardIdMask
static const int BxNrWord
static const cms_uint64_t EventNrMask
cms_uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
static const int LuminositySegmentNrShift
static const int PartTrigNrShift
void setLuminositySegmentNrWord64(cms_uint64_t &word64, int iWord)
cms_uint16_t m_luminositySegmentNr
luminosity segment number
unsigned int cms_uint32_t
static const int StatusWord
static const int AssignedPartitionsWord
static const int BoardIdShift
void setBoardId(const cms_uint16_t boardIdValue)
set BoardId from a BoardId value
static const int BoardIdWord
static const int DaqNrWord
static const cms_uint64_t PartRunNrMask
cms_uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
static const int StatusShift
static const cms_uint64_t TriggerTypeMask
static const int BlockSize
void setEventNrWord64(cms_uint64_t &word64, int iWord)
void unpack(const unsigned char *tcsPtr)
void setPartRunNrWord64(cms_uint64_t &word64, int iWord)
static const int EventNrShift
static const int TriggerTypeShift
cms_uint32_t m_assignedPartitions
void setPartTrigNrWord64(cms_uint64_t &word64, int iWord)
void setTriggerType(const cms_uint16_t triggerTypeValue)
unsigned long long cms_uint64_t
void setEventNr(const cms_uint32_t eventNrValue)
void setDaqNrWord64(cms_uint64_t &word64, int iWord)
static const int TriggerTypeWord
void setDaqNr(const cms_uint16_t daqNrValue)
static const cms_uint64_t AssignedPartitionsMask
bool operator==(const L1TcsWord &) const
equal operator
static const int AssignedPartitionsShift
virtual ~L1TcsWord()
destructor
void setStatusWord64(cms_uint64_t &word64, int iWord)