26 int nBX, firstBX, lastBX;
31 resHFBitCounts_->setBXRange(firstBX, lastBX);
34 resHFRingSums_->setBXRange(firstBX, lastBX);
36 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
42 for (
int bx=firstBX; bx<=lastBX; bx++){
43 uint32_t raw_data0 = block.
payload()[i++];
44 uint32_t raw_data1 = block.
payload()[i++];
49 candbit[0] = raw_data0 & 0xFFFF;
50 candbit[1] = raw_data1 & 0xFFFF;
52 int hfbitcount=candbit[0] & 0xFFF;
53 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[1] & 0x1FF) << 3);
59 resHFBitCounts_->push_back(bx,hfbc);
65 resHFRingSums_->push_back(bx,hfrs);
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
void setType(CaloSpareType type)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override