CMS 3D CMS Logo

ElectronicsMap.h
Go to the documentation of this file.
1 #ifndef ElectronicsMap_h
2 #define ElectronicsMap_h
3 
17 
18 #include "string"
19 #include <unordered_map>
20 
21 namespace hcaldqm {
22  namespace electronicsmap {
30  };
31 
33  public:
34  ElectronicsMap() : _emap(nullptr) {}
35  // define how to use upon construction
36  ElectronicsMap(ElectronicsMapType etype) : _etype(etype), _emap(nullptr) {}
38 
40 
41  // filter is to filter things you do not need out
43  uint32_t lookup(DetId const &);
44  uint32_t lookup(HcalDetId const &);
45  uint32_t lookup(HcalElectronicsId const &);
46 
47  void print();
48 
49  private:
50  // configures how to use emap
52 
53  // 2 choices either use as HcalElectronicsMap or as ur hash
54  typedef std::unordered_map<uint32_t, uint32_t> EMapType;
56 
57  //
59  };
60  } // namespace electronicsmap
61 } // namespace hcaldqm
62 
63 #endif
hcaldqm::electronicsmap::ElectronicsMap::lookup
uint32_t lookup(DetId const &)
Definition: ElectronicsMap.cc:122
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap(ElectronicsMapType etype)
Definition: ElectronicsMap.h:36
hcaldqm
Definition: Constants.h:8
hcaldqm::electronicsmap::ElectronicsMap::initialize
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
Definition: ElectronicsMap.cc:6
hcaldqm::electronicsmap::fHcalElectronicsMap
Definition: ElectronicsMap.h:24
hcaldqm::electronicsmap::ElectronicsMap::~ElectronicsMap
~ElectronicsMap()
Definition: ElectronicsMap.h:37
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap()
Definition: ElectronicsMap.h:34
hcaldqm::electronicsmap::fT2EHashMap
Definition: ElectronicsMap.h:26
HcalCommonHeaders.h
hcaldqm::electronicsmap::fE2DHashMap
Definition: ElectronicsMap.h:27
DetId
Definition: DetId.h:17
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::filter::HashFilter
Definition: HashFilter.h:21
hcaldqm::electronicsmap::ElectronicsMap::EMapType
std::unordered_map< uint32_t, uint32_t > EMapType
Definition: ElectronicsMap.h:54
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::electronicsmap::nElectronicsMapType
Definition: ElectronicsMap.h:29
hcaldqm::electronicsmap::ElectronicsMap::_emap
const HcalElectronicsMap * _emap
Definition: ElectronicsMap.h:58
HashFilter.h
hcaldqm::electronicsmap::ElectronicsMap::print
void print()
Definition: ElectronicsMap.cc:157
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
hcaldqm::electronicsmap::ElectronicsMap
Definition: ElectronicsMap.h:32
HashMapper.h
hcaldqm::electronicsmap::fD2EHashMap
Definition: ElectronicsMap.h:25
hcaldqm::electronicsmap::ElectronicsMap::_etype
ElectronicsMapType _etype
Definition: ElectronicsMap.h:51
hcaldqm::electronicsmap::ElectronicsMapType
ElectronicsMapType
Definition: ElectronicsMap.h:23
hcaldqm::electronicsmap::fE2THashMap
Definition: ElectronicsMap.h:28
hcaldqm::electronicsmap::ElectronicsMap::_ids
EMapType _ids
Definition: ElectronicsMap.h:55