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++){
46 uint32_t raw_data = block.
payload().at(iFrame);
55 if (jet.
hwPt()==0)
continue;
57 int abs_eta = (raw_data >> 11) & 0x7F;
58 if ((raw_data >> 18) & 0x1) {
64 jet.
setHwPhi((raw_data >> 19) & 0xFF);
67 LogDebug(
"L1T") <<
"Jet: eta " << jet.
hwEta() <<
" phi " << jet.
hwPhi() <<
" pT " << jet.
hwPt() <<
" qual " << jet.
hwQual() <<
" bx " << bx;
71 res_->push_back(bx, jet);
const unsigned int nJetPerLink
const std::vector< uint32_t > & payload() const
const unsigned int nOutputFramePerBX
BlockHeader header() const
bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
void setP4(const LorentzVector &p4) final
set 4-momentum