17 using namespace l1t::stage2::layer2;
24 int firstBX = -(ceil((
double)nBX/2.)-1);
27 lastBX = ceil((
double)nBX/2.);
29 lastBX = ceil((
double)nBX/2.)-1;
33 res_->setBXRange(firstBX, lastBX);
35 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
38 for (
int bx=firstBX; bx<=lastBX; bx++){
43 uint32_t raw_data = block.
payload().at(iFrame);
53 if (eg.
hwPt()==0)
continue;
55 int abs_eta = (raw_data >> 9) & 0x7F;
56 if ((raw_data >> 16) & 0x1) {
62 eg.
setHwPhi((raw_data >> 17) & 0xFF);
70 res_->push_back(bx,eg);
BlockHeader header() const
std::vector< uint32_t > payload() const
DEFINE_L1T_UNPACKER(l1t::stage2::MPUnpacker_0x10010033)
unsigned int nOutputFramePerBX
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
virtual bool unpack(const Block &block, UnpackerCollections *coll) override