Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1THGCal
src
be_algorithms
HGCalTowerMap3DImpl.cc
Go to the documentation of this file.
1
8
9
#include "
L1Trigger/L1THGCal/interface/be_algorithms/HGCalTowerMap3DImpl.h
"
10
11
12
HGCalTowerMap3DImpl::HGCalTowerMap3DImpl
( ) {}
13
14
15
16
17
18
void
HGCalTowerMap3DImpl::buildTowerMap3D
(
const
std::vector<
edm::Ptr<l1t::HGCalTowerMap>
> & towerMapsPtrs,
19
l1t::HGCalTowerBxCollection
& towers) {
20
21
l1t::HGCalTowerMap
towerMap;
22
23
for
(
auto
map
: towerMapsPtrs) {
24
if
(towerMap.
layer
()==0) towerMap = (*
map
);
25
else
towerMap += (*map);
26
}
27
28
for
(
auto
tower: towerMap.
towers
()) {
29
// FIXME: make this threshold configurable
30
if
(tower.second.pt()>0) towers.
push_back
(0, tower.second);
31
}
32
33
}
HGCalTowerMap3DImpl::HGCalTowerMap3DImpl
HGCalTowerMap3DImpl()
Definition:
HGCalTowerMap3DImpl.cc:12
l1t::HGCalTowerMap::towers
const std::unordered_map< unsigned short, l1t::HGCalTower > & towers() const
Definition:
HGCalTowerMap.h:30
edm::Ptr
Definition:
AssociationVector.h:30
HGCalTowerMap3DImpl::buildTowerMap3D
void buildTowerMap3D(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
Definition:
HGCalTowerMap3DImpl.cc:18
l1t::HGCalTowerMap
Definition:
HGCalTowerMap.h:15
l1t::HGCalTowerMap::layer
int layer() const
Definition:
HGCalTowerMap.h:23
genParticles_cff.map
map
Definition:
genParticles_cff.py:11
BXVector
Definition:
BXVector.h:15
HGCalTowerMap3DImpl.h
BXVector::push_back
void push_back(int bx, T object)
Generated for CMSSW Reference Manual by
1.8.11