CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonPacker.h
Go to the documentation of this file.
1 #ifndef L1T_PACKER_STAGE2_MUONPACKER_H
2 #define L1T_PACKER_STAGE2_MUONPACKER_H
3 
4 #include <map>
7 
9 
10 namespace l1t {
11  namespace stage2 {
12  class MuonPacker : public Packer {
13  public:
14  MuonPacker(unsigned b1) : b1_(b1) {}
15  Blocks pack(const edm::Event&, const PackerTokens*) override;
16  unsigned b1_;
17  inline void setFwVersion(unsigned fwId) { fwId_ = fwId; };
18  inline void setFed(unsigned fedId) { fedId_ = fedId; };
19 
20  private:
21  typedef std::map<unsigned int, std::vector<uint32_t>> PayloadMap;
22 
23  void packBx(PayloadMap& payloadMap, const edm::Handle<MuonBxCollection>& muons, int bx);
24 
25  unsigned fwId_{0};
26  unsigned fedId_{0};
27  };
28 
29  class GTMuonPacker : public MuonPacker {
30  public:
32  };
33  class GMTMuonPacker : public MuonPacker {
34  public:
36  };
37  } // namespace stage2
38 } // namespace l1t
39 
40 #endif
void setFed(unsigned fedId)
Definition: MuonPacker.h:18
void setFwVersion(unsigned fwId)
Definition: MuonPacker.h:17
std::map< unsigned int, std::vector< uint32_t > > PayloadMap
Definition: MuonPacker.h:18
void packBx(PayloadMap &payloadMap, const edm::Handle< MuonBxCollection > &muons, int bx)
Definition: MuonPacker.cc:26
MuonPacker(unsigned b1)
Definition: MuonPacker.h:14
Blocks pack(const edm::Event &, const PackerTokens *) override
Definition: MuonPacker.cc:8
std::vector< Block > Blocks
Definition: Block.h:99
tuple muons
Definition: patZpeak.py:39
static constexpr float b1