24 int firstBX = -(ceil((
double)nBX/2.)-1);
27 lastBX = ceil((
double)nBX/2.);
29 lastBX = ceil((
double)nBX/2.)-1;
33 res_->setBXRange(firstBX, lastBX);
35 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
38 for (
int bx=firstBX; bx<=lastBX; bx++){
42 uint32_t raw_data = block.
payload().at(iFrame);
51 if (jet.
hwPt()==0)
continue;
53 int abs_eta = (raw_data >> 11) & 0x7F;
54 if ((raw_data >> 18) & 0x1) {
60 jet.
setHwPhi((raw_data >> 19) & 0xFF);
63 LogDebug(
"L1T") <<
"Jet: eta " << jet.
hwEta() <<
" phi " << jet.
hwPhi() <<
" pT " << jet.
hwPt() <<
" qual " << jet.
hwQual() <<
" bx " << bx;
67 res_->push_back(bx, jet);
const std::vector< uint32_t > & payload() const
BlockHeader header() const
bool unpack(const Block &block, UnpackerCollections *coll) override
unsigned int nOutputFramePerBX
#define DEFINE_L1T_UNPACKER(type)
void setP4(const LorentzVector &p4) final
set 4-momentum