13 event.getByToken(static_cast<const CaloTokens*>(toks)->getCaloTowerToken(),
towers);
18 for (
int phi = 1; phi <= 72; phi = phi + 2) {
20 unsigned int id = 2 * phi - 2;
21 std::vector<uint32_t>
load;
35 uint32_t word1 =
std::min(
t1.hwPt(), 0x1FF) | (
t1.hwEtRatio() & 0x7) << 9 | (
t1.hwQual() & 0xF) << 12;
37 word1 = word1 |
std::min(
t2.hwPt(), 0x1FF) << 16 | (
t2.hwEtRatio() & 0x7) << 25 | (
t2.hwQual() & 0xF) << 28;
39 load.push_back(word1);
43 uint32_t word2 =
std::min(
t3.hwPt(), 0x1FF) | (
t3.hwEtRatio() & 0x7) << 9 | (
t3.hwQual() & 0xF) << 12;
47 load.push_back(word2);
Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)