18 res_->setBXRange(firstBX, lastBX);
20 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " <<
lastBX;
27 uint32_t raw_data0 = block.
payload()[i++];
28 uint32_t raw_data1 = block.
payload()[i++];
33 candbit[0] = raw_data0 & 0xFFFF;
34 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
35 candbit[2] = raw_data1 & 0xFFFF;
36 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
38 int totet = candbit[0] & 0xFFF;
39 int overflowtotet = (candbit[0] >> 12) & 0
x1;
40 int etmiss = candbit[1] & 0xFFF;
41 int overflowetmiss = (candbit[1] >> 12) & 0
x1;
42 int totht = candbit[2] & 0xFFF;
43 int overflowtotht = (candbit[2] >> 12) & 0
x1;
44 int etmissphi = candbit[3] & 0x7F;
49 int flagtotet = et.
hwQual();
50 flagtotet |= overflowtotet;
52 LogDebug(
"L1T") <<
"ET: pT " << et.
hwPt() <<
"is overflow " << overflowtotet << std::endl;
53 res_->push_back(
bx, et);
58 int flagtotht = ht.
hwQual();
59 flagtotht |= overflowtotht;
61 LogDebug(
"L1T") <<
"HT: pT " << ht.
hwPt() <<
"is overflow " << overflowtotht << std::endl;
62 res_->push_back(
bx, ht);
68 int flagetmiss = met.
hwQual();
69 flagetmiss |= overflowetmiss;
71 LogDebug(
"L1T") <<
"MET: pT " << met.
hwPt() <<
"is overflow " << overflowetmiss << std::endl;
72 res_->push_back(
bx, met);
bool unpack(const Block &block, UnpackerCollections *coll) override
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)
#define DEFINE_L1T_UNPACKER(type)