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++){
48 uint32_t raw_data = block.
payload().at(iFrame);
57 if (tau.
hwPt()==0)
continue;
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) & 0x3);
75 res_->push_back(bx, tau);
const std::vector< uint32_t > & payload() const
bool unpack(const Block &block, UnpackerCollections *coll) override
const unsigned int nOutputFramePerBX
BlockHeader header() const
const unsigned int nTauPerLink
#define DEFINE_L1T_UNPACKER(type)
void setP4(const LorentzVector &p4) final
set 4-momentum