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 // $Id: HcalEmap.h,v 1.2 2010/08/06 20:24:02 wmtan Exp $
24 //
25 
26 // system include files
27 #include<vector>
28 #include <string.h>
29 #include <fstream>
30 #include <boost/shared_ptr.hpp>
31 
33 
34 
35 class HcalEmap
36 {
37  public:
39  HcalEmap( std::string filename ){ read_map(filename); }
41 
43  {
44  public:
46  std::string topbottom,subdet;
47 
49  rawId=0;
50  crate=0;
51  slot=0;
52  dcc=0;
53  spigot=0;
54  fiber=0;
55  fiberchan=0;
56  ieta=0;
57  iphi=0;
58  idepth=0;
59  topbottom="";
60  subdet="";
61  }
63 
64  bool operator<( const HcalEmapRow & other) const;
65 
66  }; // end of class HcalEmapRow
67 
68  int read_map( std::string filename );
69 
70  std::vector<HcalEmap::HcalEmapRow> & get_map( void );
71 
72  protected:
73  std::vector<HcalEmapRow> map;
74 }; // end of class HcalEmap
75 
76 
77 
79 public:
82 
83  int test_read_map( std::string filename );
84 }; // end of class HcalEmap_test
85 
86 #endif
int test_read_map(std::string filename)
Definition: HcalEmap.cc:88
~HcalEmap_test()
Definition: HcalEmap.h:81
~HcalEmap()
Definition: HcalEmap.h:40
std::string subdet
Definition: HcalEmap.h:46
std::string topbottom
Definition: HcalEmap.h:46
std::vector< HcalEmapRow > map
Definition: HcalEmap.h:73
HcalEmap(std::string filename)
Definition: HcalEmap.h:39
std::vector< HcalEmap::HcalEmapRow > & get_map(void)
Definition: HcalEmap.cc:73
bool operator<(const HcalEmapRow &other) const
Definition: HcalEmap.cc:79
tuple filename
Definition: lut2db_cfg.py:20
int read_map(std::string filename)
Definition: HcalEmap.cc:29
HcalEmap()
Definition: HcalEmap.h:38