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(bool pc_lut_data, int 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  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;
37 
38  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;
39 
40  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;
41 
42 private:
43  void read_file(const std::string& filename, std::vector<uint32_t>& vec);
44 
45  void read_cppf_file(const std::string& filename, std::vector<uint32_t>& vec1, std::vector<uint32_t>& vec2, bool local);
46 
47  std::vector<uint32_t> ph_init_neighbor_;
48  std::vector<uint32_t> ph_disp_neighbor_;
49  std::vector<uint32_t> th_init_neighbor_;
50  std::vector<uint32_t> th_disp_neighbor_;
51  std::vector<uint32_t> th_lut_neighbor_;
52  std::vector<uint32_t> th_corr_lut_neighbor_;
53 
54  std::vector<uint32_t> ph_patt_corr_;
55  std::vector<uint32_t> ph_patt_corr_sign_;
56  std::vector<uint32_t> ph_zone_offset_;
57  std::vector<uint32_t> ph_init_hard_;
58 
59  std::vector<uint32_t> cppf_ph_lut_;
60  std::vector<uint32_t> cppf_th_lut_;
61 
62  int version_; // init: 0xFFFFFFFF
63 };
64 
65 #endif
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_
uint32_t get_ph_patt_corr_sign(int pattern) const
std::vector< uint32_t > cppf_th_lut_
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< double > vec1
Definition: HCALResponse.h:15
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_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_
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_ph_zone_offset(int pc_station, int pc_chamber) const
std::vector< uint32_t > ph_disp_neighbor_
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
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)
std::vector< vec1 > vec2
Definition: HCALResponse.h:16
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
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
std::vector< uint32_t > th_lut_neighbor_