18 int firstBX = -(ceil((
double)nBX/2.)-1);
21 lastBX = ceil((
double)nBX/2.)+1;
23 lastBX = ceil((
double)nBX/2.);
27 resHFBitCounts_->setBXRange(firstBX, lastBX);
30 resHFRingSums_->setBXRange(firstBX, lastBX);
33 reset_->setBXRange(firstBX, lastBX);
35 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
41 for (
int bx=firstBX; bx<lastBX; bx++){
42 uint32_t raw_data0 = block.
payload()[i++];
43 uint32_t raw_data1 = block.
payload()[i++];
48 candbit[0] = raw_data0 & 0xFFFF;
49 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
50 candbit[2] = raw_data1 & 0xFFFF;
51 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
53 int hfbitcount=candbit[0] & 0xFFF;
54 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
55 int htmissphi=candbit[1] & 0x1F;
56 int htmiss=(candbit[1]>>5) & 0x7F;
57 int overflowhtmiss=(candbit[1]>>12) & 0x1;
63 resHFBitCounts_->push_back(bx,hfbc);
69 resHFRingSums_->push_back(bx,hfrs);
75 int flaghtmiss=mht.
hwQual();
76 flaghtmiss|= overflowhtmiss;
78 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
79 reset_->push_back(bx,mht);
BlockHeader header() const
std::vector< uint32_t > payload() const
void setType(EtSumType type)
void setType(CaloSpareType type)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
DEFINE_L1T_UNPACKER(l1t::stage2::MPUnpacker_0x10010033)