test
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 
25 
26 #include <vector>
27 #include <map>
28 
29 //----------------------
30 // Base Class Headers --
31 //----------------------
32 
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
37 
38 
39 // ---------------------
40 // -- Class Interface --
41 // ---------------------
42 
44 
45  public:
46 
47  typedef std::pair< short, short > LUTID;
48  typedef std::pair< short, std::vector<short> > LUTCONT;
49  typedef std::map< LUTID, LUTCONT > LUT;
50  typedef LUT::iterator EMULut_iter;
51 
54 
56  virtual ~L1MuDTQualPatternLut();
57 
59  void reset();
60 
62  int load();
63 
65  void print() const;
66 
68  int getCoarseEta(int sp, int adr) const;
69 
71  const std::vector<short>& getQualifiedPatterns(int sp, int adr) const;
72 
74  inline int size() const { return m_lut.size(); }
75 
77  inline EMULut_iter begin() { return m_lut.begin(); }
78 
80  inline EMULut_iter end() { return m_lut.end(); }
81 
82  public:
83 
84  LUT m_lut; // coarse eta values and list of qualified patterns
85 
86 
88 };
89 
90 #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
#define COND_SERIALIZABLE
Definition: Serializable.h:38
void print() const
print look-up tables
Definition: sp.h:21
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] ...