14 event.getByToken(static_cast<const CommonTokens*>(toks)->getMuonToken(), muons);
18 for (
int i = muons->getFirstBX();
i <= muons->getLastBX(); ++
i) {
20 for (
unsigned int blkId =
b1_; blkId <
b1_+7; blkId += 2) {
21 payloadMap[blkId].push_back(0);
22 payloadMap[blkId].push_back(0);
25 unsigned int blkId =
b1_;
27 for (
auto mu = muons->begin(
i);
mu != muons->end(
i) && muCtr <= 8; ++
mu, ++muCtr) {
33 payloadMap[blkId].push_back(lsw);
34 payloadMap[blkId].push_back(msw);
43 for (
auto &kv : payloadMap) {
44 while (kv.second.size()%6 != 0) {
45 kv.second.push_back(0);
52 for (
auto &kv : payloadMap) {
54 blocks.push_back(
Block(kv.first, kv.second));
std::map< unsigned int, std::vector< uint32_t > > PayloadMap
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)
static void generatePackedDataWords(const Muon &, uint32_t &, uint32_t &)