1 #ifndef __L1Trigger_L1THGCal_HGCalTowerMap2DImpl_h__
2 #define __L1Trigger_L1THGCal_HGCalTowerMap2DImpl_h__
21 std::unordered_map<int, l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
23 for (
const auto& ptr : ptrs) {
27 if (towerMapsTmp.find(layer) == towerMapsTmp.end()) {
29 <<
"HGCalTowerMap2dImpl: Found trigger sum in layer " << layer <<
" for which there is no tower map\n";
32 double calibPt = ptr->pt();
43 towerMaps.
resize(0, towerMapsTmp.size());
45 for (
const auto& towerMap : towerMapsTmp) {
46 towerMaps.
set(0, i, towerMap.second);
60 std::unordered_map<int, l1t::HGCalTowerMap>
newTowerMaps();
void setGeometry(const HGCalTriggerGeometryBase *const geom)
std::vector< double > layerWeights_
unsigned short getTriggerTower(const l1t::HGCalTriggerCell &) const
HGCalTriggerTools triggerTools_
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
constexpr std::array< uint8_t, layerIndexSize > layer
void set(int bx, unsigned i, const T &object)
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
void setGeometry(const HGCalTriggerGeometryBase *const geom)
void resize(int bx, unsigned size)
void buildTowerMap2D(const std::vector< edm::Ptr< T >> &ptrs, l1t::HGCalTowerMapBxCollection &towerMaps)
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)