18 resHFBitCounts_->setBXRange(firstBX, lastBX);
21 resHFRingSums_->setBXRange(firstBX, lastBX);
24 reset_->setBXRange(firstBX, lastBX);
26 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " <<
lastBX;
33 uint32_t raw_data0 = block.
payload()[i++];
34 uint32_t raw_data1 = block.
payload()[i++];
39 candbit[0] = raw_data0 & 0xFFFF;
40 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
41 candbit[2] = raw_data1 & 0xFFFF;
42 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
44 int hfbitcount = candbit[0] & 0xFFF;
45 int hfringsum = ((candbit[0] >> 12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
46 int htmissphi = candbit[1] & 0x1F;
47 int htmiss = (candbit[1] >> 5) & 0x7F;
48 int overflowhtmiss = (candbit[1] >> 12) & 0
x1;
54 resHFBitCounts_->push_back(
bx, hfbc);
60 resHFRingSums_->push_back(
bx, hfrs);
66 int flaghtmiss = mht.
hwQual();
67 flaghtmiss |= overflowhtmiss;
69 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt() <<
"is overflow " << overflowhtmiss << std::endl;
70 reset_->push_back(
bx, mht);
const std::vector< uint32_t > & payload() const
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
void setType(EtSumType type)
constexpr int32_t ceil(float num)
void setType(CaloSpareType type)
#define DEFINE_L1T_UNPACKER(type)
bool unpack(const Block &block, UnpackerCollections *coll) override