11 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
17 auto resHFBitCounts_ =
static_cast<CaloCollections*
>(coll)->getCaloSpareHFBitCounts();
20 auto resHFRingSums_ =
static_cast<CaloCollections*
>(coll)->getCaloSpareHFRingSums();
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);
64 mht.setHwPhi(htmissphi);
65 int flaghtmiss = mht.hwQual();
66 flaghtmiss |= overflowhtmiss;
67 mht.setHwQual(flaghtmiss);
68 LogDebug(
"L1T") <<
"MHT: pT " << mht.hwPt() <<
"is overflow " << overflowhtmiss << std::endl;
69 reset_->push_back(
bx, mht);
constexpr int32_t ceil(float num)
void getBXRange(int nbx, int &first, int &last)
void setType(CaloSpareType type)
#define DEFINE_L1T_UNPACKER(type)
bool unpack(const Block &block, UnpackerCollections *coll) override