File indexing completed on 2023-03-17 11:12:40
0001 #ifndef L1TMuonEndCap_PtLUTReader_h
0002 #define L1TMuonEndCap_PtLUTReader_h
0003
0004 #include <cstdint>
0005 #include <string>
0006 #include <vector>
0007
0008 class PtLUTReader {
0009 public:
0010 explicit PtLUTReader();
0011 ~PtLUTReader();
0012
0013 typedef uint16_t content_t;
0014 typedef uint64_t address_t;
0015 typedef std::vector<content_t> table_t;
0016
0017 void read(const std::string& lut_full_path);
0018
0019 content_t lookup(const address_t& address) const;
0020
0021 content_t get_version() const { return version_; }
0022
0023 private:
0024 mutable table_t ptlut_;
0025 content_t version_;
0026 bool ok_;
0027 };
0028
0029 #endif