CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MicroGMTRankPtQualLUT.h
Go to the documentation of this file.
1 #ifndef __l1microgmtrankptquallut_h
2 #define __l1microgmtrankptquallut_h
3 
4 #include "MicroGMTLUT.h"
6 
7 
10 
11 namespace l1t {
13  public:
15  explicit MicroGMTRankPtQualLUT(const std::string&, const unsigned, const unsigned);
16  virtual ~MicroGMTRankPtQualLUT() {};
17 
18  int lookup(int pt, int qual) const;
19  virtual int lookupPacked(int in) const;
20 
21  int hashInput(int pt, int qual) const;
22  void unHashInput(int input, int& pt, int& qual) const;
23  private:
24  int m_ptMask;
25  int m_qualMask;
28 
29  // factor defining the weight of the two inputs when building the LUT
30  unsigned m_ptFactor;
31  unsigned m_qualFactor;
32  };
33 }
34 
35 #endif /* defined(__l1microgmtrankptquallut_h) */
virtual int lookupPacked(int in) const
static std::string const input
Definition: EdmProvDump.cc:44
int hashInput(int pt, int qual) const
int lookup(int pt, int qual) const
void unHashInput(int input, int &pt, int &qual) const