CMS 3D CMS Logo

HGCalTowerMap3DImpl.cc
Go to the documentation of this file.
1 
8 
10 
11 
13 
14 
15 
16 
17 
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 }
const std::unordered_map< unsigned short, l1t::HGCalTower > & towers() const
Definition: HGCalTowerMap.h:30
void buildTowerMap3D(const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
int layer() const
Definition: HGCalTowerMap.h:23
void push_back(int bx, T object)