Definition at line 9 of file MissHtUnpacker.cc.
Implements l1t::Unpacker.
Definition at line 21 of file MissHtUnpacker.cc.
References coll, l1t::getBXRange(), l1t::BlockHeader::getID(), l1t::BlockHeader::getSize(), l1t::Block::header(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), i, l1t::EtSum::kMissingHt, LogDebug, l1t::Block::payload(), l1t::L1Candidate::setHwPhi(), l1t::L1Candidate::setHwPt(), l1t::L1Candidate::setHwQual(), and l1t::EtSum::setType().
24 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
26 int nBX, firstBX, lastBX;
27 nBX = int(ceil(
block.header().getSize() / 2.));
30 auto reset_ =
static_cast<CaloCollections*
>(
coll)->getEtSums();
31 reset_->setBXRange(firstBX, lastBX);
33 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
39 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_data1 & 0xFFFF;
52 int htmissphi=candbit[0] & 0x1F;
53 int htmiss=(candbit[0]>>5) & 0x7F;
54 int overflowhtmiss=(candbit[0]>>12) & 0x1;
60 int flaghtmiss=mht.
hwQual();
61 flaghtmiss|= overflowhtmiss;
63 LogDebug(
"L1T") <<
"MHT: pT " << mht.
hwPt()<<
"is overflow "<<overflowhtmiss<<std::endl;
64 reset_->set(bx, 1,mht);
void getBXRange(int nbx, int &first, int &last)
void setType(EtSumType type)