15 event.getByToken(static_cast<const CommonTokens*>(toks)->getEGammaToken(), egs);
17 std::vector<uint32_t> load1, load2;
20 for (
int i = egs->getFirstBX();
i <= egs->getLastBX(); ++
i) {
22 for (
auto j = egs->begin(
i); j != egs->end(
i); ++j) {
24 uint32_t packed_eta =
abs(j->hwEta()) & 0x7F;
26 packed_eta = (128 - packed_eta) | 1<<7;
32 (j->hwPhi() & 0xFF) << 17 |
33 (j->hwIso() & 0x3) << 25 |
34 (j->hwQual() & 0x7) << 27;
38 else load2.push_back(word);
std::vector< Block > Blocks
Abs< T >::type abs(const T &t)
unsigned int nOutputFramePerBX
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
#define DEFINE_L1T_PACKER(type)