CMS 3D CMS Logo

L1MuBMTQualPatternLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUBMT_QUALPATTERN_LUT_H
18 #define L1MUBMT_QUALPATTERN_LUT_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
26 
27 #include <vector>
28 #include <map>
29 
30 //----------------------
31 // Base Class Headers --
32 //----------------------
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
37 
38 // ---------------------
39 // -- Class Interface --
40 // ---------------------
41 
43 public:
44  typedef std::pair<short, short> LUTID;
45  typedef std::pair<short, std::vector<short> > LUTCONT;
46  typedef std::map<LUTID, LUTCONT> LUT;
47  typedef LUT::iterator EMULut_iter;
48 
51 
53  virtual ~L1MuBMTQualPatternLut();
54 
56  void reset();
57 
59  int load();
60 
62  void print() const;
63 
65 
67  int getCoarseEta(int sp, int adr) const;
68 
70  const std::vector<short>& getQualifiedPatterns(int sp, int adr) const;
71 
73  inline int size() const { return m_lut.size(); }
74 
76  inline EMULut_iter begin() { return m_lut.begin(); }
77 
79  inline EMULut_iter end() { return m_lut.end(); }
80 
81 public:
82  LUT m_lut; // coarse eta values and list of qualified patterns
83 
85 };
86 
87 #endif
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
int load()
load look-up tables
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
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] ...
EMULut_iter begin()
return iterator which points to the first entry of the LUT
virtual ~L1MuBMTQualPatternLut()
destructor
std::pair< short, short > LUTID
void print() const
print look-up tables
int getIgnoredLines(L1TriggerLutFile file) const
int size() const
return number of entries in the LUT
void reset()
reset look-up tables
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::map< LUTID, LUTCONT > LUT
std::pair< short, std::vector< short > > LUTCONT