CMS 3D CMS Logo

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