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 
9 
10 namespace l1t {
12  public:
14  explicit MicroGMTRankPtQualLUT(const std::string&, const unsigned, const unsigned);
16  ~MicroGMTRankPtQualLUT() override{};
17 
18  int lookup(int pt, int qual) const;
19  int lookupPacked(int in) const override;
20 
21  int hashInput(int pt, int qual) const;
22  void unHashInput(int input, int& pt, int& qual) const;
23 
24  private:
25  int m_ptMask;
29 
30  // factor defining the weight of the two inputs when building the LUT
31  unsigned m_ptFactor;
32  unsigned m_qualFactor;
33  };
34 } // namespace l1t
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:48
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