CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CaloOnlineTools/HcalOnlineDb/interface/ZdcLut.h

Go to the documentation of this file.
00001 #ifndef ZdcLut_h
00002 #define ZdcLut_h
00003 
00015 #include <iostream>
00016 #include <vector>
00017 #include <string>
00018 
00019 struct ZDC_channels {std::vector <int> LUT;};
00020 
00021 struct ZDC_fibers {std::vector <ZDC_channels> channel;};
00022 
00023 struct ZDC_sides {std::vector<ZDC_fibers> fiber;};
00024 
00025 class ZdcLut
00026 {
00027  public:
00028   ZdcLut();
00029   ~ZdcLut();
00030 
00031   //get_lut returns a specific lut based on side, fiber, and fiber_channel
00032   //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; }
00033   std::vector <int> get_lut(int emap_side,
00034                        int emap_htr_fiber,
00035                        int emap_fi_ch);
00036 
00037   std::vector <int> get_lut(std::string zdc_section,
00038                        int zdc_side,
00039                        int zdc_channel);
00040   
00041   int simple_loop(void);
00042   
00043  private:
00044   //variable
00045   std::vector <ZDC_sides> side;
00046 };
00047 
00048 #endif
00049 
00050