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++){
47 for (
unsigned nJet=0; nJet < 6 && nJet < block.
header().
getSize(); nJet++){
48 uint32_t raw_data = block.
payload()[i++];
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;
69 res_->push_back(bx,jet);
BlockHeader header() const
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override