127 return !( result == *
this);
163 m_bxInEvent = (hexBxInEvent + baseValue/2)%baseValue - baseValue/2;
175 int hexBxInEvent = (
m_bxInEvent + baseValue)%baseValue;
176 word64 = word64 | (
static_cast<cms_uint64_t> (hexBxInEvent)
233 <<
"\nError: index for A_DATA array out of range. Allowed range: [0, " 234 << NumberAData <<
") " << std::endl;
247 <<
"\nError: index for A_DATA array out of range. Allowed range: [0, " 248 << NumberAData <<
") " << std::endl;
261 int sizeW64 =
sizeof(word64)*8;
266 for (
int i = 0;
i < nSubWords; ++
i) {
268 m_aData[
i] = (word64 & (DataCHMask << dataShift)) >> dataShift;
279 for (
int i = 0;
i < nSubWords; ++
i) {
281 m_aData[
i + nSubWords] = (word64 & (DataCHMask << dataShift)) >> dataShift;
298 int sizeW64 =
sizeof(word64)*8;
303 for (
int i = 0;
i < nSubWords; ++
i) {
311 for (
int i = 0;
i < nSubWords; ++
i) {
328 <<
"\nError: index for B_DATA array out of range. Allowed range: [0, " 329 << NumberBData <<
") " << std::endl;
342 <<
"\nError: index for B_DATA array out of range. Allowed range: [0, " 343 << NumberBData <<
") " << std::endl;
356 int sizeW64 =
sizeof(word64)*8;
361 for (
int i = 0;
i < nSubWords; ++
i) {
363 m_bData[
i] = (word64 & (DataCHMask << dataShift)) >> dataShift;
368 for (
int i = 0;
i < nSubWords; ++
i) {
370 m_bData[
i + nSubWords] = (word64 & (DataCHMask << dataShift)) >> dataShift;
382 int sizeW64 =
sizeof(word64)*8;
387 for (
int i = 0;
i < nSubWords; ++
i) {
395 for (
int i = 0;
i < nSubWords; ++
i) {
456 myCout <<
"\n L1GtPsbWord::print \n" << std::endl;
458 myCout <<
" Board Id: " 459 << std::hex <<
" hex: " << std::setw(4) << std::setfill(
'0') <<
m_boardId 465 int hexBxInEvent = (
m_bxInEvent + baseValue)%baseValue;
467 myCout <<
" BxInEvent: " 468 << std::hex <<
" hex: " <<
" " << std::setw(1) << hexBxInEvent
473 << std::hex <<
" hex: " <<
" " << std::setw(3) << std::setfill(
'0') <<
m_bxNr 479 myCout <<
" EventNr: " 480 << std::hex <<
" hex: " <<
" " << std::setw(6) << std::setfill(
'0') <<
m_eventNr 492 <<
"A_Data_CH0 " <<
"\n" 493 << std::hex <<
" hex: " << std::setfill(
'0');
495 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
497 int iCh = dataBlocksPerLine - (
i + 1);
498 myCout << std::setw(4) <<
m_aData[iCh] <<
" ";
505 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
507 int iCh = dataBlocksPerLine - (
i + 1);
508 myCout << std::setw(5) <<
m_aData[iCh] <<
" ";
516 <<
"A_Data_CH4 " <<
"\n" 517 << std::hex <<
" hex: " << std::setfill(
'0');
519 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
521 int iCh = dataBlocksPerLine - (
i + 1);
522 myCout << std::setw(4) <<
m_aData[iCh + dataBlocksPerLine] <<
" ";
527 << std::dec <<
" dec: ";
529 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
531 int iCh = dataBlocksPerLine - (
i + 1);
532 myCout << std::setw(5) <<
m_aData[iCh + dataBlocksPerLine] <<
" ";
542 <<
"B_Data_CH0 " <<
"\n" 543 << std::hex <<
" hex: " << std::setfill(
'0');
545 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
547 int iCh = dataBlocksPerLine - (
i + 1);
548 myCout << std::setw(4) <<
m_bData[iCh] <<
" ";
553 << std::dec <<
" dec: ";
555 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
557 int iCh = dataBlocksPerLine - (
i + 1);
558 myCout << std::setw(5) <<
m_bData[iCh] <<
" ";
566 <<
"B_Data_CH4 " <<
"\n" 567 << std::hex <<
" hex: " << std::setfill(
'0');
569 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
571 int iCh = dataBlocksPerLine - (
i + 1);
572 myCout << std::setw(4) <<
m_bData[iCh + dataBlocksPerLine] <<
" ";
577 << std::dec <<
" dec: ";
579 for (
int i = 0;
i < dataBlocksPerLine; ++
i) {
581 int iCh = dataBlocksPerLine - (
i + 1);
582 myCout << std::setw(5) <<
m_bData[iCh + dataBlocksPerLine] <<
" ";
586 myCout <<
"\n" << std::endl;
588 myCout <<
" LocalBxNr: " 589 << std::hex <<
" hex: " <<
" " << std::setw(3) << std::setfill(
'0') <<
m_localBxNr const cms_uint16_t bData(int iB) const
get/set B_DATA_CH_IB
static const int LocalBxNrWord
static const int BoardIdShift
void setEventNrWord64(cms_uint64_t &word64, int iWord)
void reset()
reset the content of a L1GtPsbWord
static const int BDataCH0Word
static const cms_uint64_t BoardIdMask
static const int EventNrWord
void setBData(cms_uint16_t bDataVal, int iB)
static const cms_uint64_t LocalBxNrMask
void setBxNrWord64(cms_uint64_t &word64, int iWord)
static const int BoardIdWord
static const cms_uint64_t BxInEventMask
cms_uint16_t m_bData[NumberBData]
static const int BxInEventShift
void setBxInEventWord64(cms_uint64_t &word64, int iWord)
void setEventNr(cms_uint32_t eventNrValue)
static const int DataCHSize
void setBxNr(cms_uint16_t bxNrValue)
void setADataWord64(cms_uint64_t &word64, int iWord)
const cms_uint16_t aData(int iA) const
get/set A_DATA_CH_IA
void setBoardId(cms_uint16_t boardIdValue)
bool operator==(const L1GtPsbWord &) const
equal operator
void setLocalBxNrWord64(cms_uint64_t &word64, int iWord)
void setBxInEvent(int bxInEventValue)
virtual ~L1GtPsbWord()
destructor
unsigned short cms_uint16_t
void setBDataWord64(cms_uint64_t &word64, int iWord)
unsigned int cms_uint32_t
L1GtPsbWord()
constructors
void print(std::ostream &myCout) const
pretty print
static const int LocalBxNrShift
static const int BxInEventWord
static const int NumberBData
static const cms_uint64_t EventNrMask
static const int ADataCH0Word
static const int EventNrShift
static const int BDataCH4Word
static const int BxNrWord
static const int NumberAData
bool operator!=(const L1GtPsbWord &) const
unequal operator
void setLocalBxNr(cms_uint16_t localBxNrValue)
static const cms_uint64_t BxNrMask
unsigned long long cms_uint64_t
cms_uint16_t m_aData[NumberAData]
void setAData(cms_uint16_t aDataVal, int iA)
void setBoardIdWord64(cms_uint64_t &word64, int iWord)
static const int ADataCH4Word
static const int BxNrShift