CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 
42 class L1MuDTPhiLut {
43 
44  public:
45 
47  L1MuDTPhiLut();
48 
50  virtual ~L1MuDTPhiLut();
51 
53  void reset();
54 
56  int load();
57 
59  void print() const;
60 
62  int getDeltaPhi(int idx, int address) const;
63 
65  std::pair<unsigned short, unsigned short> getPrecision() 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> phi_lut;
77 
78  unsigned short int nbit_phi;
79  unsigned short int nbit_phib;
80 
81 
83 };
84 
85 #endif
L1MuDTPhiLut()
constructor
Definition: L1MuDTPhiLut.cc:51
unsigned short int nbit_phi
Definition: L1MuDTPhiLut.h:78
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPhiLut.h:74
virtual ~L1MuDTPhiLut()
destructor
Definition: L1MuDTPhiLut.cc:68
int getDeltaPhi(int idx, int address) const
get delta-phi for a given address (bend-angle)
std::vector< LUT > phi_lut
Definition: L1MuDTPhiLut.h:76
unsigned short int nbit_phib
Definition: L1MuDTPhiLut.h:79
void print() const
print phi-assignment look-up tables
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
int load()
load phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:97
#define COND_SERIALIZABLE
Definition: Serializable.h:37
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:87