CMS 3D CMS Logo

List of all members | Public Member Functions
HGCalTowerMap3DImpl Class Reference

#include <HGCalTowerMap3DImpl.h>

Public Member Functions

void buildTowerMap3D (const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &towerMaps2D, l1t::HGCalTowerBxCollection &towerMap)
 
 HGCalTowerMap3DImpl ()
 

Detailed Description

Definition at line 11 of file HGCalTowerMap3DImpl.h.

Constructor & Destructor Documentation

HGCalTowerMap3DImpl::HGCalTowerMap3DImpl ( )

Definition at line 12 of file HGCalTowerMap3DImpl.cc.

12 {}

Member Function Documentation

void HGCalTowerMap3DImpl::buildTowerMap3D ( const std::vector< edm::Ptr< l1t::HGCalTowerMap >> &  towerMaps2D,
l1t::HGCalTowerBxCollection towerMap 
)

Definition at line 18 of file HGCalTowerMap3DImpl.cc.

References l1t::HGCalTowerMap::layer(), genParticles_cff::map, BXVector< T >::push_back(), and l1t::HGCalTowerMap::towers().

Referenced by HGCalTowerProcessor::run().

19  {
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
int layer() const
Definition: HGCalTowerMap.h:23