Definition at line 9 of file TauUnpacker.cc.
Implements l1t::Unpacker.
Definition at line 21 of file TauUnpacker.cc.
References coll, l1t::BlockHeader::getID(), l1t::BlockHeader::getSize(), l1t::Block::header(), l1t::L1Candidate::hwEta(), l1t::L1Candidate::hwIso(), l1t::L1Candidate::hwPhi(), l1t::L1Candidate::hwPt(), l1t::L1Candidate::hwQual(), i, LogDebug, l1t::Block::payload(), l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwIso(), l1t::L1Candidate::setHwPhi(), l1t::L1Candidate::setHwPt(), l1t::L1Candidate::setHwQual(), and metsig::tau.
24 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
26 int nBX = int(ceil(
block.header().getSize() / 8.));
29 int firstBX = -(ceil((
double)nBX/2.)-1);
32 lastBX = ceil((
double)nBX/2.);
34 lastBX = ceil((
double)nBX/2.)-1;
37 auto res_ =
static_cast<L1TObjectCollections*
>(
coll)->getTaus();
38 res_->setBXRange(firstBX, lastBX);
40 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " << lastBX;
46 for (
int bx=firstBX; bx<=lastBX; bx++){
48 for (
unsigned nTau=0; nTau < 8 && nTau <
block.header().getSize(); nTau++){
50 uint32_t raw_data =
block.payload()[i++];
59 int abs_eta = (raw_data >> 9) & 0x7F;
60 if ((raw_data >> 16) & 0x1) {
66 tau.
setHwPhi((raw_data >> 17) & 0xFF);
67 tau.
setHwIso((raw_data >> 25) & 0x1);
72 res_->push_back(bx,tau);