28 using namespace l1t::stage2::layer2;
35 int firstBX = -(ceil((
double)nBX/2.)-1);
38 lastBX = ceil((
double)nBX/2.);
40 lastBX = ceil((
double)nBX/2.)-1;
44 res_->setBXRange(firstBX, lastBX);
46 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
49 for (
int bx=firstBX; bx<=lastBX; bx++){
54 uint32_t raw_data = block.
payload().at(iFrame);
64 int abs_eta = (raw_data >> 9) & 0x7F;
65 if ((raw_data >> 16) & 0x1) {
71 eg.
setHwPhi((raw_data >> 17) & 0xFF);
79 res_->push_back(bx,eg);
BlockHeader header() const
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
unsigned int nOutputFramePerBX
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
virtual bool unpack(const Block &block, UnpackerCollections *coll) override