CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
25 
26 #include <vector>
27 #include <map>
28 
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
33 //------------------------------------
34 // Collaborating Class Declarations --
35 //------------------------------------
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 public:
43  typedef std::pair<short, short> LUTID;
44  typedef std::pair<short, std::vector<short> > LUTCONT;
45  typedef std::map<LUTID, LUTCONT> LUT;
46  typedef LUT::iterator EMULut_iter;
47 
50 
52  virtual ~L1MuDTQualPatternLut();
53 
55  void reset();
56 
58  int load();
59 
61  void print() const;
62 
64  int getCoarseEta(int sp, int adr) const;
65 
67  const std::vector<short>& getQualifiedPatterns(int sp, int adr) const;
68 
70  inline int size() const { return m_lut.size(); }
71 
73  inline EMULut_iter begin() { return m_lut.begin(); }
74 
76  inline EMULut_iter end() { return m_lut.end(); }
77 
78 public:
79  LUT m_lut; // coarse eta values and list of qualified patterns
80 
82 };
83 
84 #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
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
std::pair< short, short > LUTID
int load()
load look-up tables
std::map< LUTID, LUTCONT > LUT
virtual ~L1MuDTQualPatternLut()
destructor
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
#define COND_SERIALIZABLE
Definition: Serializable.h:39
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] ...