18 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
41 uint32_t raw_data =
block.payload().at(iFrame);
48 tau.setHwPt(raw_data & 0x1FF);
53 int abs_eta = (raw_data >> 9) & 0x7F;
54 if ((raw_data >> 16) & 0x1) {
55 tau.setHwEta(-1 * (128 - abs_eta));
57 tau.setHwEta(abs_eta);
60 tau.setHwPhi((raw_data >> 17) & 0xFF);
61 tau.setHwIso((raw_data >> 25) & 0x3);
62 tau.setHwQual((raw_data >> 27) & 0x7);
65 LogDebug(
"L1T") <<
"Tau: eta " <<
tau.hwEta() <<
" phi " <<
tau.hwPhi() <<
" pT " <<
tau.hwPt() <<
" iso " 66 <<
tau.hwIso() <<
" qual " <<
tau.hwQual();
70 res_->push_back(
bx,
tau);
constexpr int32_t ceil(float num)
bool unpack(const Block &block, UnpackerCollections *coll) override
const unsigned int nOutputFramePerBX
const unsigned int nTauPerLink
#define DEFINE_L1T_UNPACKER(type)