CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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 L1MuDTPtaLut {
41 
42  public:
43 
45  L1MuDTPtaLut();
46 
48  virtual ~L1MuDTPtaLut();
49 
51  void reset();
52 
54  int load();
55 
57  void print() const;
58 
60  int getPt(int pta_ind, int address) const;
61 
63  int getPtLutThreshold(int pta_ind) const;
64 
65  private:
66 
68  void setPrecision();
69 
70  private:
71 
72  typedef std::map<short, short, std::less<short> > LUT;
73 
74  std::vector<LUT> pta_lut;
75  std::vector<int> pta_threshold;
76 
77  unsigned short int nbit_phi;
78 
79 };
80 
81 #endif
std::vector< LUT > pta_lut
Definition: L1MuDTPtaLut.h:74
std::vector< int > pta_threshold
Definition: L1MuDTPtaLut.h:75
int getPt(int pta_ind, int address) const
get pt-value for a given address
int load()
load pt-assignment look-up tables
char * address
Definition: mlp_lapack.h:14
void reset()
reset pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:93
void print() const
print pt-assignment look-up tables
virtual ~L1MuDTPtaLut()
destructor
Definition: L1MuDTPtaLut.cc:73
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:72
unsigned short int nbit_phi
Definition: L1MuDTPtaLut.h:77
int getPtLutThreshold(int pta_ind) const
get pt-assignment LUT threshold