51 boost::uint16_t boardIdValue,
52 boost::uint16_t bxNrValue,
53 boost::uint16_t daqNrValue,
54 boost::uint16_t triggerTypeValue,
55 boost::uint16_t statusValue,
56 boost::uint16_t luminositySegmentNrValue,
57 boost::uint32_t partRunNrValue,
58 boost::uint32_t assignedPartitionsValue,
59 boost::uint32_t partTrigNrValue,
60 boost::uint32_t eventNrValue,
143 return !( result == *
this);
408 myCout <<
"\n L1TcsWord::print \n" << std::endl;
412 myCout <<
"\n Word " << iWord << std::endl;
414 myCout <<
" Board Id: "
415 << std::hex <<
" hex: " <<
" "<< std::setw(4) << std::setfill(
'0') <<
m_boardId
422 << std::hex <<
" hex: " <<
" " << std::setw(3) << std::setfill(
'0') <<
m_bxNr
424 << std::dec <<
" dec: " <<
m_bxNr
429 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_daqNr
430 << std::dec <<
" dec: " <<
m_daqNr
433 myCout <<
" TriggerType: "
434 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_triggerType
438 myCout <<
" Status: "
439 << std::hex <<
" hex: " <<
" " << std::setw(1) <<
m_status
443 myCout <<
" LuminositySegmentNr: "
450 myCout <<
"\n Word " << iWord << std::endl;
452 myCout <<
" PartRunNr: "
453 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_partRunNr
458 myCout <<
" AssignedPartitions: "
459 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0')
467 myCout <<
"\n Word " << iWord << std::endl;
469 myCout <<
" PartTrigNr: "
470 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_partTrigNr
476 myCout <<
" EventNr: "
477 << std::hex <<
" hex: " <<
" " << std::setw(8) << std::setfill(
'0') <<
m_eventNr
483 myCout <<
"\n Word " << iWord << std::endl;
485 myCout <<
" OrbitNr: "
486 << std::hex <<
" hex: " <<
"" << std::setw(12) << std::setfill(
'0') <<
m_orbitNr
492 myCout <<
"\n Word " << iWord << std::endl;
494 myCout <<
" Empty word "
505 <<
"\nUnpacking TCS block.\n"
509 reinterpret_cast<boost::uint64_t*
>(
const_cast<unsigned char*
>(tcsPtr));
528 for (
int iWord = 0; iWord <
BlockSize; ++iWord) {
530 << std::setw(4) << iWord <<
" "
531 << std::hex << std::setfill(
'0')
532 << std::setw(16) << payload[iWord]
533 << std::dec << std::setfill(
' ')
void setTriggerType(const boost::uint16_t triggerTypeValue)
static const int OrbitNrWord
void setBxNr(const boost::uint16_t bxNrValue)
void setTriggerTypeWord64(boost::uint64_t &word64, int iWord)
static const int PartRunNrShift
boost::uint16_t m_bxNr
bunch cross number as counted in the TCS chip
boost::uint16_t m_triggerType
trigger type, identical with event type in CMS header (event type)
void setStatusWord64(boost::uint64_t &word64, int iWord)
void reset()
reset the content of a L1TcsWord
void setLuminositySegmentNrWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t PartRunNrMask
boost::uint32_t m_assignedPartitions
static const int OrbitNrShift
static const int BxNrShift
void setDaqNrWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t TriggerTypeMask
static const boost::uint64_t AssignedPartitionsMask
static const int EventNrWord
boost::uint16_t m_status
0000 = normal rate; 1000 = low rate = warning
void setStatus(const boost::uint16_t statusValue)
void setAssignedPartitions(const boost::uint32_t assignedPartitionsValue)
static const int PartRunNrWord
void print(std::ostream &myCout) const
pretty print the content of a L1TcsWord
void setPartRunNrWord64(boost::uint64_t &word64, int iWord)
boost::uint32_t m_eventNr
event number since last L1 reset generated in TCS chip
static const boost::uint64_t BxNrMask
boost::uint16_t m_daqNr
number of DAQ partition to which the L1A has been sent
static const int LuminositySegmentNrWord
static const boost::uint64_t EventNrMask
static const int DaqNrShift
void setBoardId(const boost::uint16_t boardIdValue)
set BoardId from a BoardId value
bool operator!=(const L1TcsWord &) const
unequal operator
static const int PartTrigNrWord
static const int BxNrWord
static const int LuminositySegmentNrShift
static const int PartTrigNrShift
void setEventNr(const boost::uint32_t eventNrValue)
static const int StatusWord
static const int AssignedPartitionsWord
boost::uint64_t m_orbitNr
orbit number since start of run (48 bits, in fact)
static const int BoardIdShift
static const int BoardIdWord
boost::uint16_t m_luminositySegmentNr
luminosity segment number
void setPartRunNr(const boost::uint32_t partRunNrValue)
void setBoardIdWord64(boost::uint64_t &word64, int iWord)
static const int DaqNrWord
unsigned long long uint64_t
static const boost::uint64_t PartTrigNrMask
static const int StatusShift
void setPartTrigNr(const boost::uint32_t partTrigNrValue)
void setBxNrWord64(boost::uint64_t &word64, int iWord)
static const int BlockSize
void unpack(const unsigned char *tcsPtr)
static const int EventNrShift
static const boost::uint64_t BoardIdMask
static const int TriggerTypeShift
static const boost::uint64_t OrbitNrMask
void setPartTrigNrWord64(boost::uint64_t &word64, int iWord)
void setOrbitNrWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t DaqNrMask
boost::uint16_t m_boardId
board identifier
static const boost::uint64_t StatusMask
void setDaqNr(const boost::uint16_t daqNrValue)
boost::uint32_t m_partTrigNr
boost::uint32_t m_partRunNr
partition run number
void setOrbitNrFrom(const boost::uint64_t &word64)
set the OrbitNr value from a 64-bits word
static const int TriggerTypeWord
void setAssignedPartitionsWord64(boost::uint64_t &word64, int iWord)
void setEventNrWord64(boost::uint64_t &word64, int iWord)
static const boost::uint64_t LuminositySegmentNrMask
void setLuminositySegmentNr(const boost::uint16_t luminositySegmentNrValue)
bool operator==(const L1TcsWord &) const
equal operator
static const int AssignedPartitionsShift
virtual ~L1TcsWord()
destructor