Definition at line 8 of file PhysCandUnpacker.cc.
References groupFilesInBlocks::block, simKBmtfDigis_cfi::bx, reco::ceil(), RPCBxOrConfig_cff::firstBX, l1t::getBXRange(), mps_fire::i, createfilelist::int, RPCBxOrConfig_cff::lastBX, LogDebug, BXVector< T >::resize(), BXVector< T >::set(), BXVector< T >::setBXRange(), and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by l1t::stage1::IsoEGammaUnpackerLeft::unpack(), l1t::stage1::NonIsoEGammaUnpackerLeft::unpack(), l1t::stage1::CentralJetUnpackerLeft::unpack(), l1t::stage1::ForwardJetUnpackerLeft::unpack(), l1t::stage1::TauUnpackerLeft::unpack(), l1t::stage1::IsoTauUnpackerLeft::unpack(), l1t::stage1::IsoEGammaUnpackerRight::unpack(), l1t::stage1::NonIsoEGammaUnpackerRight::unpack(), l1t::stage1::CentralJetUnpackerRight::unpack(), l1t::stage1::ForwardJetUnpackerRight::unpack(), l1t::stage1::TauUnpackerRight::unpack(), and l1t::stage1::IsoTauUnpackerRight::unpack().
9 LogDebug(
"L1T") <<
"Block ID = " <<
block.header().getID() <<
" size = " <<
block.header().getSize();
29 uint32_t raw_data0 =
block.payload()[
i++];
30 uint32_t raw_data1 =
block.payload()[
i++];
33 candbit[0] = raw_data0 & 0xFFFF;
34 candbit[1] = raw_data1 & 0xFFFF;
36 for (
int icand = 0; icand < 2; icand++) {
37 int candPt = candbit[icand] & 0x3F;
38 int candEta = (candbit[icand] >> 6) & 0x7;
39 int candEtasign = (candbit[icand] >> 9) & 0
x1;
40 int candPhi = (candbit[icand] >> 10) & 0x1F;
44 cand.setHwEta((candEtasign << 3) | candEta);
45 cand.setHwPhi(candPhi);
57 coll->
set(
bx, 2 * icand + 1, modify(
cand));
59 }
else if (!isfirst) {
61 coll->
set(
bx, 2 * icand + 4, modify(
cand));
63 coll->
set(
bx, 2 * icand + 5, modify(
cand));
constexpr int32_t ceil(float num)
void getBXRange(int nbx, int &first, int &last)
void set(int bx, unsigned i, const T &object)
void resize(int bx, unsigned size)
void setBXRange(int bxFirst, int bxLast)