test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZdcLut.h
Go to the documentation of this file.
1 #ifndef ZdcLut_h
2 #define ZdcLut_h
3 
15 #include <iostream>
16 #include <vector>
17 #include <string>
18 
19 struct ZDC_channels {std::vector <int> LUT;};
20 
21 struct ZDC_fibers {std::vector <ZDC_channels> channel;};
22 
23 struct ZDC_sides {std::vector<ZDC_fibers> fiber;};
24 
25 class ZdcLut
26 {
27  public:
28  ZdcLut();
29  ~ZdcLut();
30 
31  //get_lut returns a specific lut based on side, fiber, and fiber_channel
32  //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; }
33  std::vector <int> get_lut(int emap_side,
34  int emap_htr_fiber,
35  int emap_fi_ch);
36 
37  std::vector <int> get_lut(std::string zdc_section,
38  int zdc_side,
39  int zdc_channel);
40 
41  int simple_loop(void);
42 
43  private:
44  //variable
45  std::vector <ZDC_sides> side;
46 };
47 
48 #endif
49 
50 
std::vector< int > get_lut(int emap_side, int emap_htr_fiber, int emap_fi_ch)
Definition: ZdcLut.cc:212
int simple_loop(void)
Definition: ZdcLut.cc:192
ZdcLut()
Definition: ZdcLut.cc:13
Generation of ZDC Lookup tables and associate helper methods.
Definition: ZdcLut.h:25
std::vector< ZDC_fibers > fiber
Definition: ZdcLut.h:23
std::vector< int > LUT
Definition: ZdcLut.h:19
~ZdcLut()
Definition: ZdcLut.cc:188
std::vector< ZDC_channels > channel
Definition: ZdcLut.h:21
std::vector< ZDC_sides > side
Definition: ZdcLut.h:45