13 event.getByToken(static_cast<const CommonTokens*>(toks)->getJetToken(), jets);
15 std::vector<uint32_t> load1, load2;
19 for (
int i = jets->getFirstBX();
i <= jets->getLastBX(); ++
i) {
21 for (
auto j = jets->begin(
i);
j != jets->end(
i); ++
j) {
22 uint32_t packed_eta =
abs(
j->hwEta()) & 0x7F;
24 packed_eta = (128 - packed_eta) | 1 << 7;
28 std::min(
j->hwPt(), 0x7FF) | packed_eta << 11 | (
j->hwPhi() & 0xFF) << 19 | (
j->hwQual() & 0x7) << 27;
32 load1.push_back(word);
34 load2.push_back(word);
const unsigned int nJetPerLink
Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
Abs< T >::type abs(const T &t)
const unsigned int nOutputFramePerBX
#define DEFINE_L1T_PACKER(type)