Definition at line 9 of file LegacyPhysCandUnpacker.cc.
References l1GtPatternGenerator_cfi::bx, hgcaltilesconstants::ceil(), RPCBxOrConfig_cff::firstBX, l1t::getBXRange(), l1t::BlockHeader::getID(), l1t::BlockHeader::getSize(), l1t::Block::header(), mps_fire::i, createfilelist::int, RPCBxOrConfig_cff::lastBX, LogDebug, l1t::Block::payload(), BXVector< T >::push_back(), BXVector< T >::setBXRange(), and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by l1t::stage1::legacy::IsoEGammaUnpacker::unpack(), l1t::stage1::legacy::NonIsoEGammaUnpacker::unpack(), l1t::stage1::legacy::CentralJetUnpacker::unpack(), l1t::stage1::legacy::ForwardJetUnpacker::unpack(), l1t::stage1::legacy::TauUnpacker::unpack(), and l1t::stage1::legacy::IsoTauUnpacker::unpack().
18 LogDebug(
"L1T") <<
"nBX = " << nBX <<
" first BX = " << firstBX <<
" lastBX = " <<
lastBX;
25 uint32_t raw_data0 = block.
payload()[i++];
26 uint32_t raw_data1 = block.
payload()[i++];
29 candbit[0] = raw_data0 & 0xFFFF;
30 candbit[1] = (raw_data0 >> 16) & 0xFFFF;
31 candbit[2] = raw_data1 & 0xFFFF;
32 candbit[3] = (raw_data1 >> 16) & 0xFFFF;
34 for (
int icand = 0; icand < 4; icand++) {
35 int candPt = candbit[icand] & 0x3F;
36 int candEta = (candbit[icand] >> 6) & 0x7;
37 int candEtasign = (candbit[icand] >> 9) & 0
x1;
38 int candPhi = (candbit[icand] >> 10) & 0x1F;
42 cand.setHwEta((candEtasign << 3) | candEta);
43 cand.setHwPhi(candPhi);
const std::vector< uint32_t > & payload() const
void getBXRange(int nbx, int &first, int &last)
BlockHeader header() const
constexpr int32_t ceil(float num)
void setBXRange(int bxFirst, int bxLast)
void push_back(int bx, T object)