16 auto muonToken =
static_cast<const BMTFTokens*
>(toks)->getOutputMuonToken();
20 const int bmtfBlockID = 123;
23 event.getByToken(muonToken, muons);
25 for (
auto imu = muons->begin(); imu != muons->end(); imu++)
28 if (imu->processor()+1 == board_id){
29 uint32_t firstWord(0), lastWord(0);
40 unsigned int initialSize =
payloadMap_[bmtfBlockID].size();
42 for(
unsigned int j = 0; j < 3-initialSize/2; j++){
44 uint32_t nullMuon_word2 = 0 | ( (65532 & 0xFFFF) << 3 ) | ( (2 & 0x3) << 0 );
50 unsigned int initialSize =
payloadMap_[bmtfBlockID].size();
52 for(
unsigned int j = 0; j < 15-initialSize/2; j++){
54 uint32_t nullMuon_word2 = 0 | ( (65532 & 0xFFFF) << 3 ) | ( (2 & 0x3) << 0 );
63 blocks.push_back(block);
static void generatePackedDataWords(const RegionalMuonCand &, uint32_t &, uint32_t &)
Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)
std::map< unsigned int, std::vector< uint32_t > > payloadMap_