CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuDTPhiLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1MUDT_PHI_LUT_H
16 #define L1MUDT_PHI_LUT_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
23 
24 #include <vector>
25 #include <map>
26 #include <utility>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
40 class L1MuDTPhiLut {
41 public:
43  L1MuDTPhiLut();
44 
46  virtual ~L1MuDTPhiLut();
47 
49  void reset();
50 
52  int load();
53 
55  void print() const;
56 
58  int getDeltaPhi(int idx, int address) const;
59 
61  std::pair<unsigned short, unsigned short> getPrecision() const;
62 
63 private:
65  void setPrecision();
66 
67 private:
68  typedef std::map<short, short, std::less<short> > LUT;
69 
70  std::vector<LUT> phi_lut;
71 
72  unsigned short int nbit_phi;
73  unsigned short int nbit_phib;
74 
76 };
77 
78 #endif
L1MuDTPhiLut()
constructor
Definition: L1MuDTPhiLut.cc:51
unsigned short int nbit_phi
Definition: L1MuDTPhiLut.h:72
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPhiLut.h:68
virtual ~L1MuDTPhiLut()
destructor
Definition: L1MuDTPhiLut.cc:65
int getDeltaPhi(int idx, int address) const
get delta-phi for a given address (bend-angle)
std::vector< LUT > phi_lut
Definition: L1MuDTPhiLut.h:70
unsigned short int nbit_phib
Definition: L1MuDTPhiLut.h:73
void print() const
print phi-assignment look-up tables
int load()
load phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:86
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setPrecision()
set precision for look-up tables
std::pair< unsigned short, unsigned short > getPrecision() const
get precision for look-up tables
void reset()
reset phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:81