CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTQualPatternLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUDT_QUALPATTERN_LUT_H
18 #define L1MUDT_QUALPATTERN_LUT_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <vector>
25 #include <map>
26 
27 //----------------------
28 // Base Class Headers --
29 //----------------------
30 
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 
43  public:
44 
45  typedef std::pair< short, short > LUTID;
46  typedef std::pair< short, std::vector<short> > LUTCONT;
47  typedef std::map< LUTID, LUTCONT > LUT;
48  typedef LUT::iterator EMULut_iter;
49 
52 
54  virtual ~L1MuDTQualPatternLut();
55 
57  void reset();
58 
60  int load();
61 
63  void print() const;
64 
66  int getCoarseEta(int sp, int adr) const;
67 
69  const std::vector<short>& getQualifiedPatterns(int sp, int adr) const;
70 
72  inline int size() const { return m_lut.size(); }
73 
75  inline EMULut_iter begin() { return m_lut.begin(); }
76 
78  inline EMULut_iter end() { return m_lut.end(); }
79 
80  private:
81 
82  LUT m_lut; // coarse eta values and list of qualified patterns
83 
84 };
85 
86 #endif
EMULut_iter begin()
return iterator which points to the first entry of the LUT
void reset()
reset look-up tables
std::pair< short, std::vector< short > > LUTCONT
int size() const
return number of entries in the LUT
std::pair< short, short > LUTID
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
std::map< LUTID, LUTCONT > LUT
int load()
load look-up tables
virtual ~L1MuDTQualPatternLut()
destructor
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
void print() const
print look-up tables
L1MuDTQualPatternLut()
constructor
const std::vector< short > & getQualifiedPatterns(int sp, int adr) const
get list of qualified patterns for a given sector processor [1-6] and address [1-22] ...