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 
22 #include <vector>
23 #include <map>
24 #include <utility>
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 
40 class L1MuDTPhiLut {
41 
42  public:
43 
45  L1MuDTPhiLut();
46 
48  virtual ~L1MuDTPhiLut();
49 
51  void reset();
52 
54  int load();
55 
57  void print() const;
58 
60  int getDeltaPhi(int idx, int address) const;
61 
63  std::pair<unsigned short, unsigned short> getPrecision() 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> phi_lut;
75 
76  unsigned short int nbit_phi;
77  unsigned short int nbit_phib;
78 
79 };
80 
81 #endif
L1MuDTPhiLut()
constructor
Definition: L1MuDTPhiLut.cc:51
unsigned short int nbit_phi
Definition: L1MuDTPhiLut.h:76
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPhiLut.h:72
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:74
unsigned short int nbit_phib
Definition: L1MuDTPhiLut.h:77
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
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