29 int nBX, firstBX, lastBX;
34 res_->setBXRange(firstBX, lastBX);
36 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
42 for (
int bx=firstBX; bx<=lastBX; bx++){
43 uint32_t raw_data0 = block.
payload()[i++];
44 uint32_t raw_data1 = block.
payload()[i++];
49 candbit[0] = raw_data0 & 0xFFFF;
50 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
51 candbit[2] = raw_data1 & 0xFFFF;
52 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
54 int totet=candbit[0] & 0xFFF;
55 int overflowtotet=(candbit[0]>>12) & 0x1;
56 int etmiss=candbit[1] & 0xFFF;
57 int overflowetmiss=(candbit[1]>>12) & 0x1;
58 int totht=candbit[2] & 0xFFF;
59 int overflowtotht=(candbit[2]>>12) & 0x1;
60 int etmissphi=candbit[3] & 0x7F;
66 flagtotet|= overflowtotet;
68 LogDebug(
"L1T") <<
"ET: pT " << et.
hwPt()<<
"is overflow "<<overflowtotet<<std::endl;
69 res_->push_back(bx,et);
75 flagtotht|= overflowtotht;
77 LogDebug(
"L1T") <<
"HT: pT " << ht.
hwPt()<<
"is overflow "<<overflowtotht<<std::endl;
78 res_->push_back(bx,ht);
84 int flagetmiss=met.
hwQual();
85 flagetmiss|= overflowetmiss;
87 LogDebug(
"L1T") <<
"MET: pT " << met.
hwPt()<<
"is overflow "<<overflowetmiss<<std::endl;
88 res_->push_back(bx,met);
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
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)