CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalEmap.h
Go to the documentation of this file.
1 #ifndef HCALConfigDBTools_XMLTools_LMap_h
2 #define HCALConfigDBTools_XMLTools_LMap_h
3 // -*- C++ -*-
4 //
5 // Package: CalibCalorimetry/HcalTPGAlgos
6 // Class : HcalEmap
7 //
8 // Implementation:
9 // structure and functionality for HCAL electronic map
10 // NOTE!
11 // Keep xdaq and Oracle dependencies out of here!
12 //
20 //
21 // Original Author: Gena Kukartsev, kukarzev@fnal.gov
22 // Created: Tue Oct 14 14:30:20 CDT 2009
23 //
24 
25 // system include files
26 #include <vector>
27 #include <cstring>
28 #include <fstream>
29 
31 
32 class HcalEmap {
33 public:
34  HcalEmap() {}
36  ~HcalEmap() {}
37 
38  class HcalEmapRow {
39  public:
42 
44  rawId = 0;
45  crate = 0;
46  slot = 0;
47  dcc = 0;
48  spigot = 0;
49  fiber = 0;
50  fiberchan = 0;
51  ieta = 0;
52  iphi = 0;
53  idepth = 0;
54  topbottom = "";
55  subdet = "";
56  }
58 
59  bool operator<(const HcalEmapRow& other) const;
60 
61  }; // end of class HcalEmapRow
62 
64 
65  std::vector<HcalEmap::HcalEmapRow>& get_map(void);
66 
67 protected:
68  std::vector<HcalEmapRow> map;
69 }; // end of class HcalEmap
70 
72 public:
75 
77 }; // end of class HcalEmap_test
78 
79 #endif
int test_read_map(std::string filename)
Definition: HcalEmap.cc:78
~HcalEmap_test()
Definition: HcalEmap.h:74
~HcalEmap()
Definition: HcalEmap.h:36
std::string subdet
Definition: HcalEmap.h:41
std::string topbottom
Definition: HcalEmap.h:41
std::vector< HcalEmapRow > map
Definition: HcalEmap.h:68
HcalEmap(std::string filename)
Definition: HcalEmap.h:35
std::vector< HcalEmap::HcalEmapRow > & get_map(void)
Definition: HcalEmap.cc:71
bool operator<(const HcalEmapRow &other) const
Definition: HcalEmap.cc:73
tuple filename
Definition: lut2db_cfg.py:20
int read_map(std::string filename)
Definition: HcalEmap.cc:25
HcalEmap()
Definition: HcalEmap.h:34