CMS 3D CMS Logo

ZdcLut.h
Go to the documentation of this file.
1 #ifndef ZdcLut_h
2 #define ZdcLut_h
3 
14 #include <iostream>
15 #include <vector>
16 #include <string>
17 
18 struct ZDC_channels {
19  std::vector<int> LUT;
20 };
21 
22 struct ZDC_fibers {
23  std::vector<ZDC_channels> channel;
24 };
25 
26 struct ZDC_sides {
27  std::vector<ZDC_fibers> fiber;
28 };
29 
30 class ZdcLut {
31 public:
32  ZdcLut();
33  ~ZdcLut();
34 
35  //get_lut returns a specific lut based on side, fiber, and fiber_channel
36  //std::vector <int> get_lut(int side_num, int fiber_num, int channel_num){ return side[side_num].fiber[fiber_num].channel[channel_num].LUT; }
37  std::vector<int> get_lut(int emap_side, int emap_htr_fiber, int emap_fi_ch);
38 
39  std::vector<int> get_lut(std::string zdc_section, int zdc_side, int zdc_channel);
40 
41  int simple_loop(void);
42 
43 private:
44  //variable
45  std::vector<ZDC_sides> side;
46 };
47 
48 #endif
std::vector< int > get_lut(int emap_side, int emap_htr_fiber, int emap_fi_ch)
Definition: ZdcLut.cc:206
int simple_loop(void)
Definition: ZdcLut.cc:190
ZdcLut()
Definition: ZdcLut.cc:13
Generation of ZDC Lookup tables and associate helper methods.
Definition: ZdcLut.h:30
std::vector< ZDC_fibers > fiber
Definition: ZdcLut.h:27
std::vector< int > LUT
Definition: ZdcLut.h:19
~ZdcLut()
Definition: ZdcLut.cc:188
std::vector< ZDC_channels > channel
Definition: ZdcLut.h:23
std::vector< ZDC_sides > side
Definition: ZdcLut.h:45