CMS 3D CMS Logo

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 
23 
24 #include <vector>
25 #include <map>
26 
27 //----------------------
28 // Base Class Headers --
29 //----------------------
30 
31 //------------------------------------
32 // Collaborating Class Declarations --
33 //------------------------------------
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 class L1MuDTExtLut {
40 public:
42  class LUT {
43  public:
44  typedef std::map<short, short, std::less<short> > LUTmap;
45 
48 
50  };
51 
53  L1MuDTExtLut();
54 
56  virtual ~L1MuDTExtLut();
57 
59  void reset();
60 
62  int load();
63 
65  void print() const;
66 
68  int getLow(int ext_ind, int address) const;
69 
71  int getHigh(int ext_ind, int address) const;
72 
73 private:
75  void setPrecision();
76 
77 private:
78  std::vector<LUT> ext_lut;
79 
80  unsigned short int nbit_phi;
81  unsigned short int nbit_phib;
82 
84 };
85 
86 #endif
unsigned short int nbit_phi
Definition: L1MuDTExtLut.h:80
unsigned short int nbit_phib
Definition: L1MuDTExtLut.h:81
std::vector< LUT > ext_lut
Definition: L1MuDTExtLut.h:78
int getLow(int ext_ind, int address) const
get low_value for a given address
helper class for look-up tables
Definition: L1MuDTExtLut.h:42
L1MuDTExtLut()
constructor
Definition: L1MuDTExtLut.cc:52
int load()
load extrapolation look-up tables
Definition: L1MuDTExtLut.cc:88
void print() const
print extrapolation look-up tables
void reset()
reset extrapolation look-up tables
Definition: L1MuDTExtLut.cc:83
int getHigh(int ext_ind, int address) const
get high_value for a given address
void setPrecision()
set precision for look-up tables
#define COND_SERIALIZABLE
Definition: Serializable.h:39
virtual ~L1MuDTExtLut()
destructor
Definition: L1MuDTExtLut.cc:66
std::map< short, short, std::less< short > > LUTmap
Definition: L1MuDTExtLut.h:44