Go to the source code of this file.
template<typename T , typename F >
Definition at line 9 of file PhysCandPacker.cc.
References funct::abs(), BXVector< T >::begin(), BXVector< T >::end(), ALCARECOTkAlBeamHalo_cff::filter, BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), mps_fire::i, svgfig::load(), min(), gen::n, and globals_cff::x1.
Referenced by l1t::stage1::IsoEGammaPacker::pack(), l1t::stage1::NonIsoEGammaPacker::pack(), l1t::stage1::CentralJetPacker::pack(), l1t::stage1::ForwardJetPacker::pack(), l1t::stage1::TauPacker::pack(), and l1t::stage1::IsoTauPacker::pack().
11 std::vector<uint32_t>
load[2];
14 uint16_t jetbit[4] = {0, 0, 0, 0};
16 for (
auto j = coll.
begin(
i); j != coll.
end(
i) && n < 4; ++j) {
20 jetbit[n++] =
std::min(j->hwPt(), 0x3F) |
21 (
abs(j->hwEta()) & 0x7) << 6 |
22 ((j->hwEta() >> 3) & 0
x1) << 9 |
23 (j->hwPhi() & 0x1F) << 10;
25 uint32_t word0=(jetbit[0] & 0xFFFF);
26 uint32_t word1=(jetbit[1] & 0xFFFF);
27 uint32_t word2=(jetbit[2] & 0xFFFF);
28 uint32_t word3=(jetbit[3] & 0xFFFF);
30 load[0].push_back(word0);
31 load[0].push_back(word2);
33 load[1].push_back(word1);
34 load[1].push_back(word3);
const_iterator end(int bx) const
Abs< T >::type abs(const T &t)
const_iterator begin(int bx) const