18 uint32_t zdc_mask = 0x3FF;
19 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
25 int firstBX = (nBX / 2) - nBX + 1;
38 uint32_t raw_data =
block.payload().at(iFrame + 1);
41 zdcm.setHwPt(raw_data & zdc_mask);
44 LogDebug(
"L1T") <<
"ZDC -: pT " << zdcm.hwPt() <<
" bx " <<
bx;
46 res_->push_back(
bx, zdcm);
49 raw_data =
block.payload().at(iFrame + 2);
52 zdcp.setHwPt(raw_data & zdc_mask);
55 LogDebug(
"L1T") <<
"ZDC +: pT " << zdcp.hwPt() <<
" bx " <<
bx;
57 res_->push_back(
bx, zdcp);
constexpr int32_t ceil(float num)
bool unpack(const Block &block, UnpackerCollections *coll) override
const unsigned int nOutputFramePerBX
unsigned int EtSumZDCCopy_
#define DEFINE_L1T_UNPACKER(type)