29 int nBX, firstBX, lastBX;
34 resHFBitCounts_->setBXRange(firstBX, lastBX);
37 resHFRingSums_->setBXRange(firstBX, lastBX);
40 reset_->setBXRange(firstBX, lastBX);
42 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
48 for (
int bx=firstBX; bx<=lastBX; bx++){
49 uint32_t raw_data0 = block.
payload()[i++];
50 uint32_t raw_data1 = block.
payload()[i++];
55 candbit[0] = raw_data0 & 0xFFFF;
56 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
57 candbit[2] = raw_data1 & 0xFFFF;
58 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
60 int hfbitcount=candbit[0] & 0xFFF;
61 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
62 int htmissphi=candbit[1] & 0x1F;
63 int htmiss=(candbit[1]>>5) & 0x7F;
64 int overflowhtmiss=(candbit[1]>>12) & 0x1;
70 resHFBitCounts_->push_back(bx,hfbc);
76 resHFRingSums_->push_back(bx,hfrs);
82 int flaghtmiss=mht.
hwQual();
83 flaghtmiss|= overflowhtmiss;
85 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
86 reset_->push_back(bx,mht);
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
std::vector< uint32_t > payload() const
void setType(EtSumType type)
#define DEFINE_L1T_UNPACKER(type)
void setType(CaloSpareType type)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override