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
L1MuDTPtaLut::print
void print() const
print pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:278
L1MuDTPtaLut::pta_threshold
std::vector< int > pta_threshold
Definition: L1MuDTPtaLut.h:70
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuDTPtaLut::~L1MuDTPtaLut
virtual ~L1MuDTPtaLut()
destructor
Definition: L1MuDTPtaLut.cc:68
L1MuDTPtaLut
Definition: L1MuDTPtaLut.h:39
L1MuDTPtaLut::getPtLutThreshold
int getPtLutThreshold(int pta_ind) const
get pt-assignment LUT threshold
Definition: L1MuDTPtaLut.cc:347
L1MuDTPtaLut::pta_lut
std::vector< LUT > pta_lut
Definition: L1MuDTPtaLut.h:69
L1MuDTPtaLut::load
int load()
load pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:93
L1MuDTPtaLut::getPt
int getPt(int pta_ind, int address) const
get pt-value for a given address
Definition: L1MuDTPtaLut.cc:334
Serializable.h
L1MuDTPtaLut::reset
void reset()
reset pt-assignment look-up tables
Definition: L1MuDTPtaLut.cc:85
L1MuDTPtaLut::L1MuDTPtaLut
L1MuDTPtaLut()
constructor
Definition: L1MuDTPtaLut.cc:52
L1MuDTPtaLut::LUT
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPtaLut.h:67
L1MuDTPtaLut::nbit_phi
unsigned short int nbit_phi
Definition: L1MuDTPtaLut.h:72
L1MuDTPtaLut::setPrecision
void setPrecision()
set precision for look-up tables
Definition: L1MuDTPtaLut.cc:359