CMS 3D CMS Logo

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::print
void print() const
print phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:159
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
training_settings.idx
idx
Definition: training_settings.py:16
L1MuDTPhiLut::LUT
std::map< short, short, std::less< short > > LUT
Definition: L1MuDTPhiLut.h:68
L1MuDTPhiLut::setPrecision
void setPrecision()
set precision for look-up tables
Definition: L1MuDTPhiLut.cc:233
L1MuDTPhiLut::phi_lut
std::vector< LUT > phi_lut
Definition: L1MuDTPhiLut.h:70
L1MuDTPhiLut::nbit_phib
unsigned short int nbit_phib
Definition: L1MuDTPhiLut.h:73
L1MuDTPhiLut::load
int load()
load phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:86
Serializable.h
L1MuDTPhiLut::L1MuDTPhiLut
L1MuDTPhiLut()
constructor
Definition: L1MuDTPhiLut.cc:51
L1MuDTPhiLut::getDeltaPhi
int getDeltaPhi(int idx, int address) const
get delta-phi for a given address (bend-angle)
Definition: L1MuDTPhiLut.cc:220
L1MuDTPhiLut::reset
void reset()
reset phi-assignment look-up tables
Definition: L1MuDTPhiLut.cc:81
L1MuDTPhiLut::~L1MuDTPhiLut
virtual ~L1MuDTPhiLut()
destructor
Definition: L1MuDTPhiLut.cc:65
L1MuDTPhiLut
Definition: L1MuDTPhiLut.h:40
L1MuDTPhiLut::nbit_phi
unsigned short int nbit_phi
Definition: L1MuDTPhiLut.h:72
L1MuDTPhiLut::getPrecision
std::pair< unsigned short, unsigned short > getPrecision() const
get precision for look-up tables
Definition: L1MuDTPhiLut.cc:241