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
L1MuBMTQualPatternLut::~L1MuBMTQualPatternLut
virtual ~L1MuBMTQualPatternLut()
destructor
Definition: L1MuBMTQualPatternLut.cc:63
L1TriggerLutFile
Definition: L1TriggerLutFile.h:37
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuBMTQualPatternLut::load
int load()
load look-up tables
Definition: L1MuBMTQualPatternLut.cc:77
L1MuBMTQualPatternLut::getIgnoredLines
int getIgnoredLines(L1TriggerLutFile file) const
Definition: L1MuBMTQualPatternLut.cc:196
L1MuBMTQualPatternLut::LUTID
std::pair< short, short > LUTID
Definition: L1MuBMTQualPatternLut.h:44
L1MuBMTQualPatternLut::LUT
std::map< LUTID, LUTCONT > LUT
Definition: L1MuBMTQualPatternLut.h:46
L1MuBMTQualPatternLut::print
void print() const
print look-up tables
Definition: L1MuBMTQualPatternLut.cc:139
L1MuBMTQualPatternLut::EMULut_iter
LUT::iterator EMULut_iter
Definition: L1MuBMTQualPatternLut.h:47
L1MuBMTQualPatternLut::reset
void reset()
reset look-up tables
Definition: L1MuBMTQualPatternLut.cc:72
L1MuBMTQualPatternLut::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: L1MuBMTQualPatternLut.cc:187
L1MuBMTQualPatternLut::begin
EMULut_iter begin()
return iterator which points to the first entry of the LUT
Definition: L1MuBMTQualPatternLut.h:76
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
Serializable.h
L1MuBMTQualPatternLut::m_lut
LUT m_lut
Definition: L1MuBMTQualPatternLut.h:82
L1MuBMTQualPatternLut::end
EMULut_iter end()
return iterator which points to the one-past-last entry of the LUT
Definition: L1MuBMTQualPatternLut.h:79
L1MuBMTQualPatternLut::getCoarseEta
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
Definition: L1MuBMTQualPatternLut.cc:174
L1MuBMTQualPatternLut
Definition: L1MuBMTQualPatternLut.h:42
L1MuBMTQualPatternLut::LUTCONT
std::pair< short, std::vector< short > > LUTCONT
Definition: L1MuBMTQualPatternLut.h:45
L1MuBMTQualPatternLut::size
int size() const
return number of entries in the LUT
Definition: L1MuBMTQualPatternLut.h:73
L1TriggerLutFile.h
L1MuBMTQualPatternLut::L1MuBMTQualPatternLut
L1MuBMTQualPatternLut()
constructor
Definition: L1MuBMTQualPatternLut.cc:51