CMS 3D CMS Logo

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);
17  ~MicroGMTRankPtQualLUT() override {};
18 
19  int lookup(int pt, int qual) const;
20  int lookupPacked(int in) const override;
21 
22  int hashInput(int pt, int qual) const;
23  void unHashInput(int input, int& pt, int& qual) const;
24  private:
25  int m_ptMask;
26  int m_qualMask;
29 
30  // factor defining the weight of the two inputs when building the LUT
31  unsigned m_ptFactor;
32  unsigned m_qualFactor;
33  };
34 }
35 
36 #endif /* defined(__l1microgmtrankptquallut_h) */
int lookupPacked(int in) const override
delete x;
Definition: CaloConfig.h:22
static std::string const input
Definition: EdmProvDump.cc:44
int hashInput(int pt, int qual) const
int lookup(int pt, int qual) const
Definition: LUT.h:29
void unHashInput(int input, int &pt, int &qual) const