CMS 3D CMS Logo

L1MuDTPtaLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1MUDT_PTA_LUT_H
16 #define L1MUDT_PTA_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 L1MuDTPtaLut {
40 public:
42  L1MuDTPtaLut();
43 
45  virtual ~L1MuDTPtaLut();
46 
48  void reset();
49 
51  int load();
52 
54  void print() const;
55 
57  int getPt(int pta_ind, int address) const;
58 
60  int getPtLutThreshold(int pta_ind) const;
61 
62 private:
64  void setPrecision();
65 
66 private:
67  typedef std::map<short, short, std::less<short> > LUT;
68 
69  std::vector<LUT> pta_lut;
70  std::vector<int> pta_threshold;
71 
72  unsigned short int nbit_phi;
73 
75 };
76 
77 #endif
std::vector< LUT > pta_lut
Definition: L1MuDTPtaLut.h:69
std::vector< int > pta_threshold
Definition: L1MuDTPtaLut.h:70
int getPt(int pta_ind, int address) const
get pt-value for a given address
int load()
load pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:93
void reset()
reset pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:85
void print() const
print pt-assignment look-up tables
virtual ~L1MuDTPtaLut()
destructor
Definition: L1MuDTPtaLut.cc:68
void setPrecision()
set precision for look-up tables
L1MuDTPtaLut()
constructor
Definition: L1MuDTPtaLut.cc:52
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPtaLut.h:67
#define COND_SERIALIZABLE
Definition: Serializable.h:38
unsigned short int nbit_phi
Definition: L1MuDTPtaLut.h:72
int getPtLutThreshold(int pta_ind) const
get pt-assignment LUT threshold