10 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
23 auto resHFBitCounts_ =
static_cast<CaloCollections*
>(coll)->getCaloSpareHFBitCounts();
26 auto resHFRingSums_ =
static_cast<CaloCollections*
>(coll)->getCaloSpareHFRingSums();
39 uint32_t raw_data0 =
block.payload()[
i++];
40 uint32_t raw_data1 =
block.payload()[
i++];
45 candbit[0] = raw_data0 & 0xFFFF;
46 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
47 candbit[2] = raw_data1 & 0xFFFF;
48 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
50 int hfbitcount = candbit[0] & 0xFFF;
51 int hfringsum = ((candbit[0] >> 12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
52 int htmissphi = candbit[1] & 0x1F;
53 int htmiss = (candbit[1] >> 5) & 0x7F;
54 int overflowhtmiss = (candbit[1] >> 12) & 0x1;
60 resHFBitCounts_->push_back(
bx, hfbc);
66 resHFRingSums_->push_back(
bx, hfrs);
70 mht.setHwPhi(htmissphi);
71 int flaghtmiss = mht.hwQual();
72 flaghtmiss |= overflowhtmiss;
73 mht.setHwQual(flaghtmiss);
74 LogDebug(
"L1T") <<
"MHT: pT " << mht.hwPt() <<
"is overflow " << overflowhtmiss << std::endl;
75 reset_->push_back(
bx, mht);
constexpr int32_t ceil(float num)
void setType(CaloSpareType type)
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)