CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTExtLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1MUDT_EXT_LUT_H
16 #define L1MUDT_EXT_LUT_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
22 #include <vector>
23 #include <map>
24 
25 //----------------------
26 // Base Class Headers --
27 //----------------------
28 
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 
40 class L1MuDTExtLut {
41 
42  public:
43 
45  class LUT {
46  public:
47  typedef std::map<short, short, std::less<short> > LUTmap;
48 
51  };
52 
54  L1MuDTExtLut();
55 
57  virtual ~L1MuDTExtLut();
58 
60  void reset();
61 
63  int load();
64 
66  void print() const;
67 
69  int getLow(int ext_ind, int address) const;
70 
72  int getHigh(int ext_ind, int address) const;
73 
74  private:
75 
77  void setPrecision();
78 
79  private:
80 
81  std::vector<LUT> ext_lut;
82 
83  unsigned short int nbit_phi;
84  unsigned short int nbit_phib;
85 
86 };
87 
88 #endif
unsigned short int nbit_phi
Definition: L1MuDTExtLut.h:83
unsigned short int nbit_phib
Definition: L1MuDTExtLut.h:84
char * address
Definition: mlp_lapack.h:14
std::vector< LUT > ext_lut
Definition: L1MuDTExtLut.h:81
helper class for look-up tables
Definition: L1MuDTExtLut.h:45
L1MuDTExtLut()
constructor
Definition: L1MuDTExtLut.cc:52
int load()
load extrapolation look-up tables
Definition: L1MuDTExtLut.cc:99
int getLow(int ext_ind, int address) const
get low_value for a given address
int getHigh(int ext_ind, int address) const
get high_value for a given address
void print() const
print extrapolation look-up tables
void reset()
reset extrapolation look-up tables
Definition: L1MuDTExtLut.cc:89
void setPrecision()
set precision for look-up tables
virtual ~L1MuDTExtLut()
destructor
Definition: L1MuDTExtLut.cc:69
std::map< short, short, std::less< short > > LUTmap
Definition: L1MuDTExtLut.h:47