HGCal Test Beam
03a93d6239a951948e06fb3ef8dae4cbdebfad30
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
CondObjects
interface
HGCalElectronicsMap.h
Go to the documentation of this file.
1
#ifndef HGCAL_CONDOBJECTS_HGCALELECTRONICSMAP_H
2
#define HGCAL_CONDOBJECTS_HGCALELECTRONICSMAP_H 1
3
4
#include "DataFormats/DetId/interface/DetId.h"
5
#include <vector>
6
7
/** \class HGCalElectronicsMap
8
*
9
* $Date: $
10
* $Revision: $
11
* \author J. Mans - Minnesota
12
*
13
* \brief provides the conversion between electronics Id to DetId
14
*
15
*
16
*/
17
class
HGCalElectronicsMap
18
{
19
public
:
20
bool
existsDetId
(DetId did)
const
;
21
bool
existsEId
(uint32_t eid)
const
;
22
23
DetId
eid2detId
(uint32_t eid)
const
;
24
uint32_t
detId2eid
(DetId did)
const
;
25
26
void
insert
(uint32_t, DetId did);
27
28
size_t
size
()
const
29
{
30
return
m_map.size();
31
}
32
uint32_t
eidAt
(
size_t
i)
const
;
33
DetId
didAt
(
size_t
i)
const
;
34
35
struct
MapEntry
{
36
uint32_t
eid
;
37
uint32_t
detid
;
38
bool
operator<
(
const
MapEntry
&)
const
;
39
};
40
private
:
41
std::vector<MapEntry> m_map;
// ordered for eid2detid
42
};
43
44
45
#endif
HGCalElectronicsMap::MapEntry::eid
uint32_t eid
Definition:
HGCalElectronicsMap.h:36
HGCalElectronicsMap::insert
void insert(uint32_t, DetId did)
Definition:
HGCalElectronicsMap.cc:53
HGCalElectronicsMap::size
size_t size() const
Definition:
HGCalElectronicsMap.h:28
HGCalElectronicsMap::eidAt
uint32_t eidAt(size_t i) const
Definition:
HGCalElectronicsMap.cc:65
HGCalElectronicsMap::MapEntry
Definition:
HGCalElectronicsMap.h:35
HGCalElectronicsMap::didAt
DetId didAt(size_t i) const
Definition:
HGCalElectronicsMap.cc:69
HGCalElectronicsMap::eid2detId
DetId eid2detId(uint32_t eid) const
Definition:
HGCalElectronicsMap.cc:36
HGCalElectronicsMap::existsEId
bool existsEId(uint32_t eid) const
Definition:
HGCalElectronicsMap.cc:27
HGCalElectronicsMap
provides the conversion between electronics Id to DetId
Definition:
HGCalElectronicsMap.h:17
HGCalElectronicsMap::detId2eid
uint32_t detId2eid(DetId did) const
Definition:
HGCalElectronicsMap.cc:45
HGCalElectronicsMap::MapEntry::operator<
bool operator<(const MapEntry &) const
Definition:
HGCalElectronicsMap.cc:16
HGCalElectronicsMap::MapEntry::detid
uint32_t detid
Definition:
HGCalElectronicsMap.h:37
HGCalElectronicsMap::existsDetId
bool existsDetId(DetId did) const
Definition:
HGCalElectronicsMap.cc:21
Generated on Mon Aug 29 2016 11:29:32 for HGCal Test Beam by
1.8.5