DataFormats
L1THGCal
interface
HGCalTowerMap.h
Go to the documentation of this file.
1
#ifndef DataFormats_L1TCalorimeter_HGCalTowerMap_h
2
#define DataFormats_L1TCalorimeter_HGCalTowerMap_h
3
4
#include "
DataFormats/L1THGCal/interface/HGCalTower.h
"
5
#include "
DataFormats/L1Trigger/interface/BXVector.h
"
6
7
#include <unordered_map>
8
9
namespace
l1t
{
10
11
class
HGCalTowerMap;
12
struct
HGCalTowerCoord
;
13
typedef
BXVector<HGCalTowerMap>
HGCalTowerMapBxCollection
;
14
15
class
HGCalTowerMap
{
16
public
:
17
HGCalTowerMap
() :
layer_
(0) {}
18
19
HGCalTowerMap
(
const
std::vector<l1t::HGCalTowerCoord>& tower_ids,
const
int
layer
);
20
21
int
layer
()
const
{
return
layer_
; }
22
23
const
HGCalTowerMap
&
operator+=
(
const
HGCalTowerMap
&
map
);
24
25
bool
addEt
(
short
bin_id,
float
etEm,
float
etHad);
26
27
unsigned
nTowers
()
const
{
return
towerMap_
.size(); }
28
const
std::unordered_map<unsigned short, l1t::HGCalTower>&
towers
()
const
{
return
towerMap_
; }
29
30
private
:
31
std::unordered_map<unsigned short, l1t::HGCalTower>
towerMap_
;
32
unsigned
layer_
;
33
};
34
35
}
// namespace l1t
36
37
#endif
l1t::HGCalTowerMap::layer
int layer() const
Definition:
HGCalTowerMap.h:21
BXVector.h
l1t::HGCalTowerMap::nTowers
unsigned nTowers() const
Definition:
HGCalTowerMap.h:27
l1t::HGCalTowerCoord
Definition:
HGCalTowerID.h:42
BXVector
Definition:
BXVector.h:15
l1t::HGCalTowerMap::towers
const std::unordered_map< unsigned short, l1t::HGCalTower > & towers() const
Definition:
HGCalTowerMap.h:28
l1t::HGCalTowerMap::towerMap_
std::unordered_map< unsigned short, l1t::HGCalTower > towerMap_
Definition:
HGCalTowerMap.h:31
l1t::HGCalTowerMap
Definition:
HGCalTowerMap.h:15
l1t::HGCalTowerMap::addEt
bool addEt(short bin_id, float etEm, float etHad)
Definition:
HGCalTowerMap.cc:33
l1t::HGCalTowerMap::HGCalTowerMap
HGCalTowerMap()
Definition:
HGCalTowerMap.h:17
l1t
delete x;
Definition:
CaloConfig.h:22
HGCalTower.h
l1t::HGCalTowerMapBxCollection
BXVector< HGCalTowerMap > HGCalTowerMapBxCollection
Definition:
HGCalTowerMap.h:12
l1t::HGCalTowerMap::layer_
unsigned layer_
Definition:
HGCalTowerMap.h:32
l1t::HGCalTowerMap::operator+=
const HGCalTowerMap & operator+=(const HGCalTowerMap &map)
Definition:
HGCalTowerMap.cc:14
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
Generated for CMSSW Reference Manual by
1.8.16