CMS 3D CMS Logo

L1MuDTEtaPatternLut.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1MUDT_ETAPATTERN_LUT_H
16 #define L1MUDT_ETAPATTERN_LUT_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
23 
24 #include <map>
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
41 public:
42  typedef std::map<short, L1MuDTEtaPattern, std::less<short> > LUT;
43  typedef LUT::const_iterator ETFLut_iter;
44  typedef LUT::iterator ETFLut_Iter;
45 
48 
50  virtual ~L1MuDTEtaPatternLut();
51 
53  void reset();
54 
56  int load();
57 
59  void print() const;
60 
62  L1MuDTEtaPattern getPattern(int id) const;
63 
65  inline int size() const { return m_lut.size(); }
66 
68  inline ETFLut_iter begin() const { return m_lut.begin(); }
69 
71  inline ETFLut_iter end() const { return m_lut.end(); }
72 
73 public:
75 
77 };
78 
79 #endif
L1MuDTEtaPattern
Definition: L1MuDTEtaPattern.h:46
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuDTEtaPatternLut::begin
ETFLut_iter begin() const
return iterator which points to the first entry of the LUT
Definition: L1MuDTEtaPatternLut.h:68
L1MuDTEtaPatternLut::m_lut
LUT m_lut
Definition: L1MuDTEtaPatternLut.h:74
L1MuDTEtaPatternLut::LUT
std::map< short, L1MuDTEtaPattern, std::less< short > > LUT
Definition: L1MuDTEtaPatternLut.h:42
L1MuDTEtaPatternLut::size
int size() const
return number of entries in the LUT
Definition: L1MuDTEtaPatternLut.h:65
L1MuDTEtaPatternLut::ETFLut_iter
LUT::const_iterator ETFLut_iter
Definition: L1MuDTEtaPatternLut.h:43
L1MuDTEtaPatternLut::reset
void reset()
reset pattern look-up table
Definition: L1MuDTEtaPatternLut.cc:69
L1MuDTEtaPatternLut::load
int load()
load pattern look-up table
Definition: L1MuDTEtaPatternLut.cc:74
L1MuDTEtaPatternLut::getPattern
L1MuDTEtaPattern getPattern(int id) const
get pattern with a given ID
Definition: L1MuDTEtaPatternLut.cc:147
L1MuDTEtaPatternLut::print
void print() const
print pattern look-up table
Definition: L1MuDTEtaPatternLut.cc:125
L1MuDTEtaPatternLut
Definition: L1MuDTEtaPatternLut.h:40
Serializable.h
L1MuDTEtaPatternLut::~L1MuDTEtaPatternLut
virtual ~L1MuDTEtaPatternLut()
destructor
Definition: L1MuDTEtaPatternLut.cc:60
L1MuDTEtaPatternLut::L1MuDTEtaPatternLut
L1MuDTEtaPatternLut()
constructor
Definition: L1MuDTEtaPatternLut.cc:48
L1MuDTEtaPatternLut::end
ETFLut_iter end() const
return iterator which points to the one-past-last entry of the LUT
Definition: L1MuDTEtaPatternLut.h:71
L1MuDTEtaPatternLut::ETFLut_Iter
LUT::iterator ETFLut_Iter
Definition: L1MuDTEtaPatternLut.h:44
L1MuDTEtaPattern.h