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) */
delete x;
Definition: CaloConfig.h:22
static std::string const input
Definition: EdmProvDump.cc:47
int lookup(int pt, int qual) const
int lookupPacked(int in) const override
Definition: LUT.h:29
int hashInput(int pt, int qual) const
void unHashInput(int input, int &pt, int &qual) const