29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.)+1;
34 lastBX = ceil((
double)nBX/2.);
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 < 12 && 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);
69 res_->push_back(bx,jet);
BlockHeader header() const
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
std::vector< JetPair > getJets(HWW &hww, int, double, double, bool, bool)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override