29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.);
34 lastBX = ceil((
double)nBX/2.)-1;
38 res_->setBXRange(firstBX, lastBX);
40 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
46 for (
int bx=firstBX; bx<=lastBX; bx++){
48 for (
unsigned nTau=0; nTau < 8 && nTau < block.
header().
getSize(); nTau++){
50 uint32_t raw_data = block.
payload()[i++];
59 int abs_eta = (raw_data >> 9) & 0x7F;
60 if ((raw_data >> 16) & 0x1) {
66 tau.
setHwPhi((raw_data >> 17) & 0xFF);
67 tau.
setHwIso((raw_data >> 25) & 0x1);
72 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)