CMS 3D CMS Logo

SectorProcessorLUT.h
Go to the documentation of this file.
1 #ifndef L1TMuonEndCap_SectorProcessorLUT_h
2 #define L1TMuonEndCap_SectorProcessorLUT_h
3 
4 #include <cstdint>
5 #include <string>
6 #include <vector>
7 
8 
10 public:
11  explicit SectorProcessorLUT();
13 
14  void read(unsigned pc_lut_version);
15 
16  uint32_t get_ph_init(int fw_endcap, int fw_sector, int pc_lut_id) const;
17 
18  uint32_t get_ph_disp(int fw_endcap, int fw_sector, int pc_lut_id) const;
19 
20  uint32_t get_th_init(int fw_endcap, int fw_sector, int pc_lut_id) const;
21 
22  uint32_t get_th_disp(int fw_endcap, int fw_sector, int pc_lut_id) const;
23 
24  uint32_t get_th_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_id) const;
25 
26  uint32_t get_th_corr_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_strip_id) const;
27 
28  uint32_t get_ph_patt_corr(int pattern) const;
29 
30  uint32_t get_ph_patt_corr_sign(int pattern) const;
31 
32  uint32_t get_ph_zone_offset(int pc_station, int pc_chamber) const;
33 
34  uint32_t get_ph_init_hard(int fw_station, int fw_cscid) const;
35 
36 private:
37  void read_file(const std::string& filename, std::vector<uint32_t>& vec);
38 
39  std::vector<uint32_t> ph_init_neighbor_;
40  std::vector<uint32_t> ph_disp_neighbor_;
41  std::vector<uint32_t> th_init_neighbor_;
42  std::vector<uint32_t> th_disp_neighbor_;
43  std::vector<uint32_t> th_lut_neighbor_;
44  std::vector<uint32_t> th_corr_lut_neighbor_;
45 
46  std::vector<uint32_t> ph_patt_corr_;
47  std::vector<uint32_t> ph_patt_corr_sign_;
48  std::vector<uint32_t> ph_zone_offset_;
49  std::vector<uint32_t> ph_init_hard_;
50 
51  unsigned version_; // init: 0xFFFFFFFF
52 };
53 
54 #endif
std::vector< uint32_t > ph_zone_offset_
std::vector< uint32_t > th_corr_lut_neighbor_
uint32_t get_ph_patt_corr_sign(int pattern) const
void read(unsigned pc_lut_version)
std::vector< uint32_t > th_disp_neighbor_
uint32_t get_th_init(int fw_endcap, int fw_sector, int pc_lut_id) const
std::vector< uint32_t > ph_patt_corr_
std::vector< uint32_t > ph_init_hard_
uint32_t get_th_disp(int fw_endcap, int fw_sector, int pc_lut_id) const
uint32_t get_ph_disp(int fw_endcap, int fw_sector, int pc_lut_id) const
std::vector< uint32_t > ph_patt_corr_sign_
std::vector< uint32_t > th_init_neighbor_
uint32_t get_ph_zone_offset(int pc_station, int pc_chamber) const
std::vector< uint32_t > ph_disp_neighbor_
uint32_t get_ph_patt_corr(int pattern) const
uint32_t get_th_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_id) const
std::vector< uint32_t > ph_init_neighbor_
uint32_t get_ph_init_hard(int fw_station, int fw_cscid) const
void read_file(const std::string &filename, std::vector< uint32_t > &vec)
uint32_t get_ph_init(int fw_endcap, int fw_sector, int pc_lut_id) const
uint32_t get_th_corr_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_strip_id) const
std::vector< uint32_t > th_lut_neighbor_