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 
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 L1MuDTPtaLut {
43 
44  public:
45 
47  L1MuDTPtaLut();
48 
50  virtual ~L1MuDTPtaLut();
51 
53  void reset();
54 
56  int load();
57 
59  void print() const;
60 
62  int getPt(int pta_ind, int address) const;
63 
65  int getPtLutThreshold(int pta_ind) const;
66 
67  private:
68 
70  void setPrecision();
71 
72  private:
73 
74  typedef std::map<short, short, std::less<short> > LUT;
75 
76  std::vector<LUT> pta_lut;
77  std::vector<int> pta_threshold;
78 
79  unsigned short int nbit_phi;
80 
81 
83 };
84 
85 #endif
std::vector< LUT > pta_lut
Definition: L1MuDTPtaLut.h:76
std::vector< int > pta_threshold
Definition: L1MuDTPtaLut.h:77
int getPt(int pta_ind, int address) const
get pt-value for a given address
int load()
load pt-assignment look-up tables
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:74
#define COND_SERIALIZABLE
Definition: Serializable.h:37
unsigned short int nbit_phi
Definition: L1MuDTPtaLut.h:79
int getPtLutThreshold(int pta_ind) const
get pt-assignment LUT threshold