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 
9 public:
10  explicit SectorProcessorLUT();
12 
13  void read(bool pc_lut_data, int pc_lut_version);
14 
15  uint32_t get_ph_init(int fw_endcap, int fw_sector, int pc_lut_id) const;
16 
17  uint32_t get_ph_disp(int fw_endcap, int fw_sector, int pc_lut_id) const;
18 
19  uint32_t get_th_init(int fw_endcap, int fw_sector, int pc_lut_id) const;
20 
21  uint32_t get_th_disp(int fw_endcap, int fw_sector, int pc_lut_id) const;
22 
23  uint32_t get_th_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_id) const;
24 
25  uint32_t get_th_corr_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_strip_id) const;
26 
27  uint32_t get_ph_patt_corr(int pattern) const;
28 
29  uint32_t get_ph_patt_corr_sign(int pattern) const;
30 
31  uint32_t get_ph_zone_offset(int pc_station, int pc_chamber) const;
32 
33  uint32_t get_ph_init_hard(int fw_station, int fw_cscid) const;
34 
35  uint32_t get_cppf_lut_id(
36  int rpc_region, int rpc_sector, int rpc_station, int rpc_ring, int rpc_subsector, int rpc_roll) const;
37 
38  uint32_t get_cppf_ph_lut(int rpc_region,
39  int rpc_sector,
40  int rpc_station,
41  int rpc_ring,
42  int rpc_subsector,
43  int rpc_roll,
44  int halfstrip,
45  bool is_neighbor) const;
46 
47  uint32_t get_cppf_th_lut(
48  int rpc_region, int rpc_sector, int rpc_station, int rpc_ring, int rpc_subsector, int rpc_roll) const;
49 
50 private:
51  void read_file(const std::string& filename, std::vector<uint32_t>& vec);
52 
53  void read_cppf_file(const std::string& filename, std::vector<uint32_t>& vec1, std::vector<uint32_t>& vec2, bool local);
54 
55  std::vector<uint32_t> ph_init_neighbor_;
56  std::vector<uint32_t> ph_disp_neighbor_;
57  std::vector<uint32_t> th_init_neighbor_;
58  std::vector<uint32_t> th_disp_neighbor_;
59  std::vector<uint32_t> th_lut_neighbor_;
60  std::vector<uint32_t> th_corr_lut_neighbor_;
61 
62  std::vector<uint32_t> ph_patt_corr_;
63  std::vector<uint32_t> ph_patt_corr_sign_;
64  std::vector<uint32_t> ph_zone_offset_;
65  std::vector<uint32_t> ph_init_hard_;
66 
67  std::vector<uint32_t> cppf_ph_lut_;
68  std::vector<uint32_t> cppf_th_lut_;
69 
70  int version_; // init: 0xFFFFFFFF
71 };
72 
73 #endif
uint32_t get_ph_init_hard(int fw_station, int fw_cscid) const
uint32_t get_ph_patt_corr_sign(int pattern) const
uint32_t get_th_corr_lut(int fw_endcap, int fw_sector, int pc_lut_id, int pc_wire_strip_id) 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_zone_offset_
std::vector< uint32_t > cppf_ph_lut_
void read(bool pc_lut_data, int pc_lut_version)
std::vector< uint32_t > th_corr_lut_neighbor_
std::vector< uint32_t > cppf_th_lut_
std::vector< uint32_t > th_disp_neighbor_
uint32_t get_ph_patt_corr(int pattern) const
std::vector< uint32_t > ph_patt_corr_
std::vector< double > vec1
Definition: HCALResponse.h:15
std::vector< uint32_t > ph_init_hard_
uint32_t get_ph_zone_offset(int pc_station, int pc_chamber) const
uint32_t get_cppf_th_lut(int rpc_region, int rpc_sector, int rpc_station, int rpc_ring, int rpc_subsector, int rpc_roll) const
std::vector< uint32_t > ph_patt_corr_sign_
uint32_t get_cppf_lut_id(int rpc_region, int rpc_sector, int rpc_station, int rpc_ring, int rpc_subsector, int rpc_roll) const
void read_cppf_file(const std::string &filename, std::vector< uint32_t > &vec1, std::vector< uint32_t > &vec2, bool local)
std::vector< uint32_t > th_init_neighbor_
uint32_t get_cppf_ph_lut(int rpc_region, int rpc_sector, int rpc_station, int rpc_ring, int rpc_subsector, int rpc_roll, int halfstrip, bool is_neighbor) const
uint32_t get_ph_disp(int fw_endcap, int fw_sector, int pc_lut_id) const
uint32_t get_ph_init(int fw_endcap, int fw_sector, int pc_lut_id) const
std::vector< uint32_t > ph_disp_neighbor_
uint32_t get_th_init(int fw_endcap, int fw_sector, int pc_lut_id) const
std::vector< uint32_t > ph_init_neighbor_
void read_file(const std::string &filename, std::vector< uint32_t > &vec)
std::vector< vec1 > vec2
Definition: HCALResponse.h:16
uint32_t get_th_disp(int fw_endcap, int fw_sector, int pc_lut_id) const
std::vector< uint32_t > th_lut_neighbor_