CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BMTFPackerInputs.h
Go to the documentation of this file.
2 
5 
8 
9 #include "BMTFTokens.h"
10 
11 namespace l1t {
12  namespace stage2 {
13  class BMTFPackerInputs : public Packer {
14  public:
15  Blocks pack(const edm::Event&, const PackerTokens*) override;
16 
17  private:
18  std::map<unsigned int, std::vector<uint32_t> > payloadMap_;
19 
20  uint32_t wordPhMaker(const L1MuDTChambPhDigi& phInput);
21  uint32_t wordThMaker(const L1MuDTChambThDigi& thInput, const bool& qualFlag);
22 
23  static const unsigned int phiMask = 0xFFF;
24  static const unsigned int phiShift = 0;
25  static const unsigned int phiBMask = 0x3FF;
26  static const unsigned int phiBShift = 12;
27  static const unsigned int qualMask = 0x7;
28  static const unsigned int qualShift = 22;
29  static const unsigned int rpcMask = 0x1;
30  static const unsigned int rpcShift = 26;
31  static const unsigned int bxCntMask = 0x3;
32  static const unsigned int bxCntShift = 30;
33 
34  static const int ownLinks_[];
35  };
36  } // namespace stage2
37 } // namespace l1t
uint32_t wordPhMaker(const L1MuDTChambPhDigi &phInput)
static const unsigned int rpcShift
static const unsigned int bxCntShift
static const unsigned int phiShift
static const unsigned int phiMask
uint32_t wordThMaker(const L1MuDTChambThDigi &thInput, const bool &qualFlag)
static const unsigned int phiBMask
std::map< unsigned int, std::vector< uint32_t > > payloadMap_
std::vector< Block > Blocks
Definition: Block.h:99
static const unsigned int qualMask
static const unsigned int qualShift
static const unsigned int bxCntMask
static const unsigned int rpcMask
static const unsigned int phiBShift
Blocks pack(const edm::Event &, const PackerTokens *) override