13 event.getByToken(static_cast<const CaloTokens*>(toks)->getEtSumToken(), etSums);
15 std::vector<uint32_t>
load;
17 for (
int i = etSums->getFirstBX();
i <= etSums->getLastBX(); ++
i) {
25 for (
auto j = etSums->begin(
i);
j != etSums->end(
i) &&
n < 4; ++
j, ++
n) {
27 flaghtmiss =
j->hwQual() & 0x1;
33 uint16_t
object[2] = {0, 0};
35 object[0] = htmissphi | ((htmiss & 0x7F) << 5) | (flaghtmiss << 12) | (0
x1 << 14);
36 object[1] = 0x1 | (0x1 << 2) | (0
x1 << 4) | (0x1 << 6) | (0
x1 << 8) | (0x1 << 10) | (0
x1 << 12) | (0x1 << 14);
38 uint32_t word0 = (
object[0] & 0xFFFF);
39 uint32_t word1 = (
object[1] & 0xFFFF);
42 word1 |= ((
i == 0) << 15);
44 load.push_back(word0);
45 load.push_back(word1);
Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)