Main Page
Namespaces
Classes
Package Documentation
DQM
HcalCommon
interface
ElectronicsMap.h
Go to the documentation of this file.
1
#ifndef ElectronicsMap_h
2
#define ElectronicsMap_h
3
15
#include "
DQM/HcalCommon/interface/HcalCommonHeaders.h
"
16
#include "
DQM/HcalCommon/interface/HashMapper.h
"
17
#include "
DQM/HcalCommon/interface/HashFilter.h
"
18
19
#include "boost/unordered_map.hpp"
20
#include "string"
21
22
namespace
hcaldqm
23
{
24
namespace
electronicsmap
25
{
26
enum
ElectronicsMapType
27
{
28
fHcalElectronicsMap
= 0,
29
fD2EHashMap
= 1,
30
fT2EHashMap
= 2,
31
fE2DHashMap
= 3,
32
fE2THashMap
= 4,
33
nElectronicsMapType
= 5
34
};
35
36
class
ElectronicsMap
37
{
38
public
:
39
ElectronicsMap
() :
40
_emap
(
nullptr
)
41
{}
42
// define how to use upon construction
43
ElectronicsMap
(
ElectronicsMapType
etype) :
44
_etype
(etype),
_emap
(
nullptr
)
45
{}
46
~ElectronicsMap
() {}
47
48
void
initialize
(
HcalElectronicsMap
const
*,
ElectronicsMapType
49
etype=
fHcalElectronicsMap
);
50
51
// filter is to filter things you do not need out
52
void
initialize
(
HcalElectronicsMap
const
*,
ElectronicsMapType
,
53
filter::HashFilter
const
&);
54
uint32_t
lookup
(
DetId
const
&);
55
uint32_t
lookup
(
HcalDetId
const
&);
56
uint32_t
lookup
(
HcalElectronicsId
const
&);
57
58
void
print
();
59
60
61
private
:
62
// configures how to use emap
63
ElectronicsMapType
_etype
;
64
65
// 2 choices either use as HcalElectronicsMap or as ur hash
66
typedef
boost::unordered_map<uint32_t, uint32_t>
EMapType
;
67
EMapType
_ids
;
68
69
//
70
HcalElectronicsMap
const
*
_emap
;
71
};
72
}
73
}
74
75
#endif
HashFilter.h
hcaldqm::electronicsmap::nElectronicsMapType
Definition:
ElectronicsMap.h:33
hcaldqm::filter::HashFilter
Definition:
HashFilter.h:28
hcaldqm::electronicsmap::ElectronicsMap::initialize
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
Definition:
ElectronicsMap.cc:8
HashMapper.h
nullptr
#define nullptr
hcaldqm::electronicsmap::fD2EHashMap
Definition:
ElectronicsMap.h:29
hcaldqm::electronicsmap::ElectronicsMap
Definition:
ElectronicsMap.h:36
hcaldqm::electronicsmap::ElectronicsMap::lookup
uint32_t lookup(DetId const &)
Definition:
ElectronicsMap.cc:172
hcaldqm::electronicsmap::ElectronicsMap::~ElectronicsMap
~ElectronicsMap()
Definition:
ElectronicsMap.h:46
HcalDetId
Definition:
HcalDetId.h:13
hcaldqm::electronicsmap::ElectronicsMap::_ids
EMapType _ids
Definition:
ElectronicsMap.h:67
hcaldqm::electronicsmap::fHcalElectronicsMap
Definition:
ElectronicsMap.h:28
hcaldqm::electronicsmap::ElectronicsMap::_emap
HcalElectronicsMap const * _emap
Definition:
ElectronicsMap.h:70
hcaldqm::electronicsmap::fT2EHashMap
Definition:
ElectronicsMap.h:30
DetId
Definition:
DetId.h:18
hcaldqm
Definition:
Constants.h:8
hcaldqm::electronicsmap::ElectronicsMap::_etype
ElectronicsMapType _etype
Definition:
ElectronicsMap.h:63
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap()
Definition:
ElectronicsMap.h:39
hcaldqm::electronicsmap::ElectronicsMap::EMapType
boost::unordered_map< uint32_t, uint32_t > EMapType
Definition:
ElectronicsMap.h:66
HcalCommonHeaders.h
hcaldqm::electronicsmap::ElectronicsMapType
ElectronicsMapType
Definition:
ElectronicsMap.h:26
HcalElectronicsMap
Definition:
HcalElectronicsMap.h:31
hcaldqm::electronicsmap::ElectronicsMap::print
void print()
Definition:
ElectronicsMap.cc:213
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap(ElectronicsMapType etype)
Definition:
ElectronicsMap.h:43
hcaldqm::electronicsmap::fE2THashMap
Definition:
ElectronicsMap.h:32
HcalElectronicsId
Readout chain identification for Hcal.
Definition:
HcalElectronicsId.h:32
hcaldqm::electronicsmap::fE2DHashMap
Definition:
ElectronicsMap.h:31
Generated for CMSSW Reference Manual by
1.8.11