CMS 3D CMS Logo

HGCalTowerMap3DImpl.cc
Go to the documentation of this file.
1 
9 
11 
14  l1t::HGCalTowerMap towerMap;
15 
16  for (auto map : towerMapsPtrs) {
17  if (towerMap.layer() == 0)
18  towerMap = (*map);
19  else
20  towerMap += (*map);
21  }
22 
23  for (auto tower : towerMap.towers()) {
24  // FIXME: make this threshold configurable
25  if (tower.second.pt() > 0)
26  towers.push_back(0, tower.second);
27  }
28 }
l1t::HGCalTowerMap::layer
int layer() const
Definition: HGCalTowerMap.h:21
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
BXVector
Definition: BXVector.h:15
l1t::HGCalTowerMap::towers
const std::unordered_map< unsigned short, l1t::HGCalTower > & towers() const
Definition: HGCalTowerMap.h:28
l1t::HGCalTowerMap
Definition: HGCalTowerMap.h:15
HGCalTowerMap3DImpl.h
HGCalTowerMap3DImpl::buildTowerMap3D
void buildTowerMap3D(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
Definition: HGCalTowerMap3DImpl.cc:12
edm::Ptr
Definition: AssociationVector.h:31
HLT_2018_cff.towers
towers
Definition: HLT_2018_cff.py:35030
HGCalTowerMap3DImpl::HGCalTowerMap3DImpl
HGCalTowerMap3DImpl()
Definition: HGCalTowerMap3DImpl.cc:10
genParticles_cff.map
map
Definition: genParticles_cff.py:11