CMS 3D CMS Logo

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
L1MuDTQualPatternLut::L1MuDTQualPatternLut
L1MuDTQualPatternLut()
constructor
Definition: L1MuDTQualPatternLut.cc:50
L1MuDTQualPatternLut::m_lut
LUT m_lut
Definition: L1MuDTQualPatternLut.h:79
L1MuDTQualPatternLut::EMULut_iter
LUT::iterator EMULut_iter
Definition: L1MuDTQualPatternLut.h:46
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuDTQualPatternLut::~L1MuDTQualPatternLut
virtual ~L1MuDTQualPatternLut()
destructor
Definition: L1MuDTQualPatternLut.cc:62
L1MuDTQualPatternLut::end
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
Definition: L1MuDTQualPatternLut.h:76
L1MuDTQualPatternLut::begin
EMULut_iter begin()
return iterator which points to the first entry of the LUT
Definition: L1MuDTQualPatternLut.h:73
L1MuDTQualPatternLut::reset
void reset()
reset look-up tables
Definition: L1MuDTQualPatternLut.cc:79
L1MuDTQualPatternLut::LUT
std::map< LUTID, LUTCONT > LUT
Definition: L1MuDTQualPatternLut.h:45
L1MuDTQualPatternLut::getQualifiedPatterns
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]
Definition: L1MuDTQualPatternLut.cc:215
L1MuDTQualPatternLut::load
int load()
load look-up tables
Definition: L1MuDTQualPatternLut.cc:84
Serializable.h
L1MuDTQualPatternLut::LUTID
std::pair< short, short > LUTID
Definition: L1MuDTQualPatternLut.h:43
L1MuDTQualPatternLut::size
int size() const
return number of entries in the LUT
Definition: L1MuDTQualPatternLut.h:70
L1MuDTQualPatternLut::print
void print() const
print look-up tables
Definition: L1MuDTQualPatternLut.cc:168
L1MuDTQualPatternLut::getCoarseEta
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
Definition: L1MuDTQualPatternLut.cc:203
L1MuDTQualPatternLut
Definition: L1MuDTQualPatternLut.h:41
L1MuDTQualPatternLut::LUTCONT
std::pair< short, std::vector< short > > LUTCONT
Definition: L1MuDTQualPatternLut.h:44