CMS 3D CMS Logo

PtLUTReader.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_PtLUTReader_h
2 #define L1TMuonEndCap_PtLUTReader_h
3 
4 #include <cstdint>
5 #include <string>
6 #include <vector>
7 
8 class PtLUTReader {
9 public:
10  explicit PtLUTReader();
11  ~PtLUTReader();
12 
13  typedef uint16_t content_t;
15  typedef std::vector<content_t> table_t;
16 
17  void read(const std::string& lut_full_path);
18 
19  content_t lookup(const address_t& address) const;
20 
21  content_t get_version() const { return version_; }
22 
23 private:
24  mutable table_t ptlut_;
26  bool ok_;
27 };
28 
29 #endif
void read(const std::string &lut_full_path)
Definition: PtLUTReader.cc:13
uint16_t content_t
Definition: PtLUTReader.h:13
uint64_t address_t
Definition: PtLUTReader.h:14
content_t version_
Definition: PtLUTReader.h:25
table_t ptlut_
Definition: PtLUTReader.h:24
std::vector< content_t > table_t
Definition: PtLUTReader.h:15
content_t lookup(const address_t &address) const
Definition: PtLUTReader.cc:60
unsigned long long uint64_t
Definition: Time.h:13
content_t get_version() const
Definition: PtLUTReader.h:21