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 
23 
24 #include <vector>
25 #include <map>
26 
27 //----------------------
28 // Base Class Headers --
29 //----------------------
30 
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 
42 class L1MuDTExtLut {
43 
44  public:
45 
47  class LUT {
48  public:
49  typedef std::map<short, short, std::less<short> > LUTmap;
50 
53 
55 };
56 
58  L1MuDTExtLut();
59 
61  virtual ~L1MuDTExtLut();
62 
64  void reset();
65 
67  int load();
68 
70  void print() const;
71 
73  int getLow(int ext_ind, int address) const;
74 
76  int getHigh(int ext_ind, int address) const;
77 
78  private:
79 
81  void setPrecision();
82 
83  private:
84 
85  std::vector<LUT> ext_lut;
86 
87  unsigned short int nbit_phi;
88  unsigned short int nbit_phib;
89 
90 
92 };
93 
94 #endif
unsigned short int nbit_phi
Definition: L1MuDTExtLut.h:87
unsigned short int nbit_phib
Definition: L1MuDTExtLut.h:88
std::vector< LUT > ext_lut
Definition: L1MuDTExtLut.h:85
helper class for look-up tables
Definition: L1MuDTExtLut.h:47
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
#define COND_SERIALIZABLE
Definition: Serializable.h:30
virtual ~L1MuDTExtLut()
destructor
Definition: L1MuDTExtLut.cc:69
std::map< short, short, std::less< short > > LUTmap
Definition: L1MuDTExtLut.h:49