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 
9 class PtLUTReader {
10 public:
11  explicit PtLUTReader();
12  ~PtLUTReader();
13 
14  typedef uint16_t content_t;
16  typedef std::vector<content_t> table_t;
17 
18  void read(const std::string& lut_full_path);
19 
20  content_t lookup(const address_t& address) const;
21 
22  content_t get_version() const { return version_; }
23 
24 private:
25  mutable table_t ptlut_;
26  content_t version_;
27  bool ok_;
28 };
29 
30 #endif
void read(const std::string &lut_full_path)
Definition: PtLUTReader.cc:21
uint16_t content_t
Definition: PtLUTReader.h:14
uint64_t address_t
Definition: PtLUTReader.h:15
content_t version_
Definition: PtLUTReader.h:26
table_t ptlut_
Definition: PtLUTReader.h:25
std::vector< content_t > table_t
Definition: PtLUTReader.h:16
unsigned long long uint64_t
Definition: Time.h:15
content_t get_version() const
Definition: PtLUTReader.h:22
content_t lookup(const address_t &address) const
Definition: PtLUTReader.cc:67