test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <string.h>
28 #include <fstream>
29 #include <boost/shared_ptr.hpp>
30 
32 
33 
34 class HcalEmap
35 {
36  public:
40 
42  {
43  public:
46 
48  rawId=0;
49  crate=0;
50  slot=0;
51  dcc=0;
52  spigot=0;
53  fiber=0;
54  fiberchan=0;
55  ieta=0;
56  iphi=0;
57  idepth=0;
58  topbottom="";
59  subdet="";
60  }
62 
63  bool operator<( const HcalEmapRow & other) const;
64 
65  }; // end of class HcalEmapRow
66 
68 
69  std::vector<HcalEmap::HcalEmapRow> & get_map( void );
70 
71  protected:
72  std::vector<HcalEmapRow> map;
73 }; // end of class HcalEmap
74 
75 
76 
78 public:
81 
83 }; // end of class HcalEmap_test
84 
85 #endif
int test_read_map(std::string filename)
Definition: HcalEmap.cc:87
~HcalEmap_test()
Definition: HcalEmap.h:80
~HcalEmap()
Definition: HcalEmap.h:39
std::string subdet
Definition: HcalEmap.h:45
std::string topbottom
Definition: HcalEmap.h:45
std::vector< HcalEmapRow > map
Definition: HcalEmap.h:72
HcalEmap(std::string filename)
Definition: HcalEmap.h:38
std::vector< HcalEmap::HcalEmapRow > & get_map(void)
Definition: HcalEmap.cc:72
bool operator<(const HcalEmapRow &other) const
Definition: HcalEmap.cc:78
tuple filename
Definition: lut2db_cfg.py:20
int read_map(std::string filename)
Definition: HcalEmap.cc:28
HcalEmap()
Definition: HcalEmap.h:37