28 int firstBX = -(ceil((
double)nBX/2.)-1);
31 lastBX = ceil((
double)nBX/2.);
33 lastBX = ceil((
double)nBX/2.)-1;
37 res_->setBXRange(firstBX, lastBX);
39 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
42 for (
int bx=firstBX; bx<=lastBX; bx++){
47 uint32_t raw_data = block.
payload().at(iFrame);
57 if (eg.
hwPt()==0)
continue;
59 int abs_eta = (raw_data >> 9) & 0x7F;
60 if ((raw_data >> 16) & 0x1) {
66 eg.
setHwPhi((raw_data >> 17) & 0xFF);
74 res_->push_back(bx,eg);
const std::vector< uint32_t > & payload() const
const unsigned int nOutputFramePerBX
BlockHeader header() const
const unsigned int nEGPerLink
#define DEFINE_L1T_UNPACKER(type)
void setP4(const LorentzVector &p4) final
set 4-momentum
bool unpack(const Block &block, UnpackerCollections *coll) override