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
L1MuDTExtLut::reset
void reset()
reset extrapolation look-up tables
Definition: L1MuDTExtLut.cc:83
L1MuDTExtLut::setPrecision
void setPrecision()
set precision for look-up tables
Definition: L1MuDTExtLut.cc:290
L1MuDTExtLut::LUT::low
LUTmap low
Definition: L1MuDTExtLut.h:46
L1MuDTExtLut::L1MuDTExtLut
L1MuDTExtLut()
constructor
Definition: L1MuDTExtLut.cc:52
L1MuDTExtLut
Definition: L1MuDTExtLut.h:39
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuDTExtLut::print
void print() const
print extrapolation look-up tables
Definition: L1MuDTExtLut.cc:196
L1MuDTExtLut::LUT::high
LUTmap high
Definition: L1MuDTExtLut.h:47
L1MuDTExtLut::~L1MuDTExtLut
virtual ~L1MuDTExtLut()
destructor
Definition: L1MuDTExtLut.cc:66
L1MuDTExtLut::nbit_phi
unsigned short int nbit_phi
Definition: L1MuDTExtLut.h:80
L1MuDTExtLut::load
int load()
load extrapolation look-up tables
Definition: L1MuDTExtLut.cc:88
Serializable.h
L1MuDTExtLut::getLow
int getLow(int ext_ind, int address) const
get low_value for a given address
Definition: L1MuDTExtLut.cc:264
L1MuDTExtLut::LUT::LUTmap
std::map< short, short, std::less< short > > LUTmap
Definition: L1MuDTExtLut.h:44
L1MuDTExtLut::ext_lut
std::vector< LUT > ext_lut
Definition: L1MuDTExtLut.h:78
L1MuDTExtLut::getHigh
int getHigh(int ext_ind, int address) const
get high_value for a given address
Definition: L1MuDTExtLut.cc:277
L1MuDTExtLut::nbit_phib
unsigned short int nbit_phib
Definition: L1MuDTExtLut.h:81
L1MuDTExtLut::LUT
helper class for look-up tables
Definition: L1MuDTExtLut.h:42