17 resHFBitCounts_->setBXRange(firstBX, lastBX);
20 resHFRingSums_->setBXRange(firstBX, lastBX);
22 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " <<
lastBX;
29 uint32_t raw_data0 = block.
payload()[i++];
30 uint32_t raw_data1 = block.
payload()[i++];
35 candbit[0] = raw_data0 & 0xFFFF;
36 candbit[1] = raw_data1 & 0xFFFF;
38 int hfbitcount = candbit[0] & 0xFFF;
39 int hfringsum = ((candbit[0] >> 12) & 0x7) | ((candbit[1] & 0x1FF) << 3);
45 resHFBitCounts_->push_back(
bx, hfbc);
51 resHFRingSums_->push_back(
bx, hfrs);
const std::vector< uint32_t > & payload() const
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
constexpr int32_t ceil(float num)
void setType(CaloSpareType type)
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)