CMS 3D CMS Logo

L1MuBMLUTHandler.h
Go to the documentation of this file.
1 #ifndef L1MUBM_LUT_H
2 #define L1MUBM_LUT_H
3 
4 //---------------
5 // C++ Headers --
6 //---------------
7 
9 
10 #include <vector>
11 #include <map>
12 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
20 
21 // ---------------------
22 // -- Class Interface --
23 // ---------------------
24 
26 public:
28  L1MuBMLUTHandler(const L1TMuonBarrelParams& l1params);
29 
31  virtual ~L1MuBMLUTHandler();
32 
34  void print_pta_lut() const;
35 
37  int getPt(int pta_ind, int address) const;
38 
40  int getPtLutThreshold(int pta_ind) const;
41 
43  void print_phi_lut() const;
44 
46  int getDeltaPhi(int idx, int address) const;
47 
49  std::pair<unsigned short, unsigned short> getPrecision() const;
50 
52  void print_ext_lut() const;
53 
55  int getLow(int ext_ind, int address) const;
56 
58  int getHigh(int ext_ind, int address) const;
59 
60 private:
61  // const L1TMuonBarrelParams* l1tbmparams;
63 
64 public:
65  //max. number of Extrapolations
66  const int MAX_EXT = 12;
67 
68  // extrapolation types
70 
71  // maximal number of pt assignment methods
72  const int MAX_PTASSMETH = 19;
73  const int MAX_PTASSMETHA = 12;
74 
75  // pt assignment methods
76  enum PtAssMethod {
97  };
98 };
99 
100 #endif
virtual ~L1MuBMLUTHandler()
destructor
void print_pta_lut() const
print pt-assignment look-up tables
const int MAX_PTASSMETH
L1MuBMLUTHandler(const L1TMuonBarrelParams &l1params)
constructor
const int MAX_PTASSMETHA
int getPt(int pta_ind, int address) const
get pt-value for a given address
void print_ext_lut() const
print extrapolation look-up tables
int getHigh(int ext_ind, int address) const
get high_value for a given address
int getLow(int ext_ind, int address) const
get low_value for a given address
int getPtLutThreshold(int pta_ind) const
get pt-assignment LUT threshold
int getDeltaPhi(int idx, int address) const
get delta-phi for a given address (bend-angle)
std::pair< unsigned short, unsigned short > getPrecision() const
get precision for look-up tables
const L1TMuonBarrelParams * l1tbmparams
void print_phi_lut() const
print phi-assignment look-up tables