CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
39 
40 // ---------------------
41 // -- Class Interface --
42 // ---------------------
43 
45 
46  public:
47 
48  typedef std::pair< short, short > LUTID;
49  typedef std::pair< short, std::vector<short> > LUTCONT;
50  typedef std::map< LUTID, LUTCONT > LUT;
51  typedef LUT::iterator EMULut_iter;
52 
55 
57  virtual ~L1MuBMTQualPatternLut();
58 
60  void reset();
61 
63  int load();
64 
66  void print() const;
67 
69 
71  int getCoarseEta(int sp, int adr) const;
72 
74  const std::vector<short>& getQualifiedPatterns(int sp, int adr) const;
75 
77  inline int size() const { return m_lut.size(); }
78 
80  inline EMULut_iter begin() { return m_lut.begin(); }
81 
83  inline EMULut_iter end() { return m_lut.end(); }
84 
85  public:
86 
87  LUT m_lut; // coarse eta values and list of qualified patterns
88 
89 
91 };
92 
93 #endif
int size() const
return number of entries in the LUT
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
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] ...
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
int load()
load look-up tables
std::pair< short, std::vector< short > > LUTCONT
EMULut_iter begin()
return iterator which points to the first entry of the LUT
virtual ~L1MuBMTQualPatternLut()
destructor
void print() const
print look-up tables
std::map< LUTID, LUTCONT > LUT
std::pair< short, short > LUTID
int getIgnoredLines(L1TriggerLutFile file) const
void reset()
reset look-up tables
#define COND_SERIALIZABLE
Definition: Serializable.h:38