7 template <
typename T,
typename F>
9 std::vector<uint32_t>
load[2];
12 uint16_t jetbit[4] = {0, 0, 0, 0};
18 jetbit[
n++] =
std::min(
j->hwPt(), 0x3F) | (
abs(
j->hwEta()) & 0x7) << 6 | ((
j->hwEta() >> 3) & 0
x1) << 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);
Blocks pack(const edm::Event &, const PackerTokens *) override
const_iterator begin(int bx) const
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
const_iterator end(int bx) const
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)
Blocks pack(const edm::Event &, const PackerTokens *) override