16 int nBX, firstBX, lastBX;
21 resHFBitCounts_->setBXRange(firstBX, lastBX);
24 resHFRingSums_->setBXRange(firstBX, lastBX);
27 reset_->setBXRange(firstBX, lastBX);
29 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
35 for (
int bx=firstBX; bx<=lastBX; bx++){
36 uint32_t raw_data0 = block.
payload()[i++];
37 uint32_t raw_data1 = block.
payload()[i++];
42 candbit[0] = raw_data0 & 0xFFFF;
43 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
44 candbit[2] = raw_data1 & 0xFFFF;
45 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
47 int hfbitcount=candbit[0] & 0xFFF;
48 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
49 int htmissphi=candbit[1] & 0x1F;
50 int htmiss=(candbit[1]>>5) & 0x7F;
51 int overflowhtmiss=(candbit[1]>>12) & 0
x1;
57 resHFBitCounts_->push_back(bx,hfbc);
63 resHFRingSums_->push_back(bx,hfrs);
69 int flaghtmiss=mht.
hwQual();
70 flaghtmiss|= overflowhtmiss;
72 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
73 reset_->push_back(bx,mht);
const std::vector< uint32_t > & payload() const
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
void setType(EtSumType type)
void setType(CaloSpareType type)
#define DEFINE_L1T_UNPACKER(type)
bool unpack(const Block &block, UnpackerCollections *coll) override