7 template <
typename T,
typename F>
9 std::vector<uint32_t>
load[2];
12 uint16_t jetbit[4] = {0, 0, 0, 0};
14 for (
auto j = coll.
begin(
i);
j != coll.
end(
i) && n < 4; ++
j) {
18 jetbit[n++] =
std::min(
j->hwPt(), 0x3F) | (
abs(
j->hwEta()) & 0x7) << 6 | ((
j->hwEta() >> 3) & 0x1) << 9 |
19 (
j->hwPhi() & 0x1F) << 10;
21 uint32_t word0 = (jetbit[0] & 0xFFFF);
22 uint32_t word1 = (jetbit[1] & 0xFFFF);
23 uint32_t word2 = (jetbit[2] & 0xFFFF);
24 uint32_t word3 = (jetbit[3] & 0xFFFF);
26 load[0].push_back(word0);
27 load[0].push_back(word2);
29 load[1].push_back(word1);
30 load[1].push_back(word3);
40 event.getByToken(static_cast<const CaloTokens*>(toks)->getEGammaToken(), egammas);
47 event.getByToken(static_cast<const CaloTokens*>(toks)->getEGammaToken(), egammas);
54 event.getByToken(static_cast<const CaloTokens*>(toks)->getJetToken(), jets);
61 event.getByToken(static_cast<const CaloTokens*>(toks)->getJetToken(), jets);
68 event.getByToken(static_cast<const CaloTokens*>(toks)->getTauToken(), taus);
75 event.getByToken(static_cast<const CaloTokens*>(toks)->getIsoTauToken(), taus);
const_iterator end(int bx) const
Blocks pack(const edm::Event &, const PackerTokens *) override
Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
Blocks pack(const edm::Event &, const PackerTokens *) override
Abs< T >::type abs(const T &t)
#define DEFINE_L1T_PACKER(type)
Blocks pack(const edm::Event &, const PackerTokens *) override
Blocks pack(const edm::Event &, const PackerTokens *) override
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
const_iterator begin(int bx) const
Blocks pack(const edm::Event &, const PackerTokens *) override