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
ZdcLut::ZdcLut
ZdcLut()
Definition: ZdcLut.cc:13
ZdcLut::~ZdcLut
~ZdcLut()
Definition: ZdcLut.cc:188
ZdcLut::side
std::vector< ZDC_sides > side
Definition: ZdcLut.h:45
ZdcLut
Generation of ZDC Lookup tables and associate helper methods.
Definition: ZdcLut.h:30
ZDC_sides
Definition: ZdcLut.h:26
ZDC_fibers
Definition: ZdcLut.h:22
ZDC_sides::fiber
std::vector< ZDC_fibers > fiber
Definition: ZdcLut.h:27
ZDC_channels
Definition: ZdcLut.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ZdcLut::get_lut
std::vector< int > get_lut(int emap_side, int emap_htr_fiber, int emap_fi_ch)
Definition: ZdcLut.cc:206
ZDC_fibers::channel
std::vector< ZDC_channels > channel
Definition: ZdcLut.h:23
ZDC_channels::LUT
std::vector< int > LUT
Definition: ZdcLut.h:19
ZdcLut::simple_loop
int simple_loop(void)
Definition: ZdcLut.cc:190