test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "boost/foreach.hpp"
21
#include "string"
22
23
namespace
hcaldqm
24
{
25
namespace
electronicsmap
26
{
27
enum
ElectronicsMapType
28
{
29
fHcalElectronicsMap
= 0,
30
fD2EHashMap
= 1,
31
fT2EHashMap
= 2,
32
fE2DHashMap
= 3,
33
fE2THashMap
= 4,
34
nElectronicsMapType
= 5
35
};
36
37
class
ElectronicsMap
38
{
39
public
:
40
ElectronicsMap
() :
41
_emap
(
NULL
)
42
{}
43
// define how to use upon construction
44
ElectronicsMap
(
ElectronicsMapType
etype) :
45
_etype
(etype),
_emap
(
NULL
)
46
{}
47
~ElectronicsMap
() {}
48
49
void
initialize
(
HcalElectronicsMap
const
*,
ElectronicsMapType
50
etype=
fHcalElectronicsMap
);
51
52
// filter is to filter things you do not need out
53
void
initialize
(
HcalElectronicsMap
const
*,
ElectronicsMapType
,
54
filter::HashFilter
const
&);
55
uint32_t
lookup
(
DetId
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:34
hcaldqm::filter::HashFilter
Definition:
HashFilter.h:30
hcaldqm::electronicsmap::ElectronicsMap::initialize
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
Definition:
ElectronicsMap.cc:8
HashMapper.h
NULL
#define NULL
Definition:
scimark2.h:8
hcaldqm::electronicsmap::fD2EHashMap
Definition:
ElectronicsMap.h:30
hcaldqm::electronicsmap::ElectronicsMap
Definition:
ElectronicsMap.h:37
hcaldqm::electronicsmap::ElectronicsMap::lookup
uint32_t lookup(DetId const &)
Definition:
ElectronicsMap.cc:172
hcaldqm::electronicsmap::ElectronicsMap::~ElectronicsMap
~ElectronicsMap()
Definition:
ElectronicsMap.h:47
hcaldqm::electronicsmap::ElectronicsMap::_ids
EMapType _ids
Definition:
ElectronicsMap.h:67
hcaldqm::electronicsmap::fHcalElectronicsMap
Definition:
ElectronicsMap.h:29
hcaldqm::electronicsmap::ElectronicsMap::_emap
HcalElectronicsMap const * _emap
Definition:
ElectronicsMap.h:70
hcaldqm::electronicsmap::fT2EHashMap
Definition:
ElectronicsMap.h:31
DetId
Definition:
DetId.h:18
hcaldqm::electronicsmap::ElectronicsMap::_etype
ElectronicsMapType _etype
Definition:
ElectronicsMap.h:63
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap()
Definition:
ElectronicsMap.h:40
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:27
HcalElectronicsMap
Definition:
HcalElectronicsMap.h:29
hcaldqm::electronicsmap::ElectronicsMap::print
void print()
Definition:
ElectronicsMap.cc:198
hcaldqm::electronicsmap::ElectronicsMap::ElectronicsMap
ElectronicsMap(ElectronicsMapType etype)
Definition:
ElectronicsMap.h:44
hcaldqm::electronicsmap::fE2THashMap
Definition:
ElectronicsMap.h:33
HcalElectronicsId
Readout chain identification for Hcal.
Definition:
HcalElectronicsId.h:32
hcaldqm::electronicsmap::fE2DHashMap
Definition:
ElectronicsMap.h:32
Generated for CMSSW Reference Manual by
1.8.5