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 
9 class PtLUTWriter {
10 public:
11  explicit PtLUTWriter();
12  ~PtLUTWriter();
13 
14  typedef uint16_t content_t;
16  typedef std::vector<content_t> table_t;
17 
18  void write(const std::string& lut_full_path, const uint16_t num_, const uint16_t denom_) const;
19 
20  void push_back(const content_t& pt);
21 
22  void set_version(content_t ver) { version_ = ver; }
23 
24  content_t get_version() const { return version_; }
25 
26 private:
27  mutable table_t ptlut_;
28  content_t version_;
29  bool ok_;
30 };
31 
32 #endif
void set_version(content_t ver)
Definition: PtLUTWriter.h:22
content_t get_version() const
Definition: PtLUTWriter.h:24
std::vector< content_t > table_t
Definition: PtLUTWriter.h:16
uint64_t address_t
Definition: PtLUTWriter.h:15
void write(const std::string &lut_full_path, const uint16_t num_, const uint16_t denom_) const
Definition: PtLUTWriter.cc:23
content_t version_
Definition: PtLUTWriter.h:28
uint16_t content_t
Definition: PtLUTWriter.h:14
unsigned long long uint64_t
Definition: Time.h:15
table_t ptlut_
Definition: PtLUTWriter.h:27
void push_back(const content_t &pt)
Definition: PtLUTWriter.cc:73