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 10 of file HGCalTowerMap3DImpl.h.

Constructor & Destructor Documentation

◆ HGCalTowerMap3DImpl()

HGCalTowerMap3DImpl::HGCalTowerMap3DImpl ( )

Definition at line 10 of file HGCalTowerMap3DImpl.cc.

10 {}

Member Function Documentation

◆ buildTowerMap3D()

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

Definition at line 12 of file HGCalTowerMap3DImpl.cc.

References l1t::HGCalTowerMap::layer(), genParticles_cff::map, l1tHGCalTowerProducer_cfi::tower, l1t::HGCalTowerMap::towers(), and HLT_2023v12_cff::towers.

13  {
14  l1t::HGCalTowerMap towerMap;
15 
16  for (const auto& map : towerMapsPtrs) {
17  if (towerMap.layer() == 0)
18  towerMap = (*map);
19  else
20  towerMap += (*map);
21  }
22 
23  for (const 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 }
int layer() const
Definition: HGCalTowerMap.h:21
const std::unordered_map< unsigned short, l1t::HGCalTower > & towers() const
Definition: HGCalTowerMap.h:28