7 template<
typename T,
typename F>
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) & 0x1) << 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);
47 event.getByToken(static_cast<const CaloTokens*>(toks)->getEGammaToken(), egammas);
56 event.getByToken(static_cast<const CaloTokens*>(toks)->getEGammaToken(), egammas);
65 event.getByToken(static_cast<const CaloTokens*>(toks)->getJetToken(), jets);
74 event.getByToken(static_cast<const CaloTokens*>(toks)->getJetToken(), jets);
83 event.getByToken(static_cast<const CaloTokens*>(toks)->getTauToken(), taus);
92 event.getByToken(static_cast<const CaloTokens*>(toks)->getIsoTauToken(), taus);
const_iterator end(int bx) const
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
Abs< T >::type abs(const T &t)
#define DEFINE_L1T_PACKER(type)
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
l1t::Blocks process(unsigned int id1, unsigned int id2, const BXVector< T > &coll, F filter)
const_iterator begin(int bx) const
virtual Blocks pack(const edm::Event &, const PackerTokens *) override