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++){
55 uint32_t raw_data = block.
payload().at(iFrame);
64 int abs_eta = (raw_data >> 9) & 0x7F;
65 if ((raw_data >> 16) & 0x1) {
71 tau.
setHwPhi((raw_data >> 17) & 0xFF);
72 tau.
setHwIso((raw_data >> 25) & 0x1);
79 res_->push_back(bx, tau);
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
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