29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.)+1;
34 lastBX = ceil((
double)nBX/2.);
38 resHFBitCounts_->setBXRange(firstBX, lastBX);
41 resHFRingSums_->setBXRange(firstBX, lastBX);
44 reset_->setBXRange(firstBX, lastBX);
46 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
52 for (
int bx=firstBX; bx<lastBX; bx++){
53 uint32_t raw_data0 = block.
payload()[i++];
54 uint32_t raw_data1 = block.
payload()[i++];
59 candbit[0] = raw_data0 & 0xFFFF;
60 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
61 candbit[2] = raw_data1 & 0xFFFF;
62 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
64 int hfbitcount=candbit[0] & 0xFFF;
65 int hfringsum=((candbit[0]>>12) & 0x7) | ((candbit[2] & 0x1FF) << 3);
66 int htmissphi=candbit[1] & 0x1F;
67 int htmiss=(candbit[1]>>5) & 0x7F;
68 int overflowhtmiss=(candbit[1]>>12) & 0x1;
74 resHFBitCounts_->push_back(bx,hfbc);
80 resHFRingSums_->push_back(bx,hfrs);
86 int flaghtmiss=mht.
hwQual();
87 flaghtmiss|= overflowhtmiss;
89 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
90 reset_->push_back(bx,mht);
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