23 const unsigned int nWords = 6;
24 int nBX, firstBX, lastBX;
29 unsigned int linkId = (block.
header().
getID() - 1) / 2;
30 unsigned int coll1Cnt = 0;
88 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
94 for (
int bx = firstBX; bx <= lastBX; ++bx) {
95 unsigned int muonCnt = 0;
96 for (
unsigned nWord = 0; nWord < nWords && i < block.
header().
getSize(); nWord += 2, ++muonCnt) {
97 uint32_t raw_data_00_31 =
payload[i++];
98 uint32_t raw_data_32_63 =
payload[i++];
99 LogDebug(
"L1T") <<
"raw_data_00_31 = 0x" << hex << raw_data_00_31 <<
" raw_data_32_63 = 0x" << raw_data_32_63;
102 LogDebug(
"L1T") <<
"Muon hwPt zero. Skip.";
114 if (muonCnt < coll1Cnt) {
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
payload
payload postfix for testing
static const unsigned ptShift_
void setBXRange(int bxFirst, int bxLast)
#define DEFINE_L1T_UNPACKER(type)
int hwChargeValid() const
void push_back(int bx, T object)
static const unsigned ptMask_
static void fillMuon(Muon &, uint32_t, uint32_t, int, unsigned int)