Go to the documentation of this file. 1 #ifndef __L1Trigger_L1THGCal_HGCalTowerMap2DImpl_h__
2 #define __L1Trigger_L1THGCal_HGCalTowerMap2DImpl_h__
22 std::unordered_map<int, l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
24 for (
const auto& ptr : ptrs) {
28 if (towerMapsTmp.find(
layer) == towerMapsTmp.end()) {
30 <<
"HGCalTowerMap2dImpl: Found trigger sum in layer " <<
layer <<
" for which there is no tower map\n";
33 double calibPt = ptr->pt();
44 towerMaps.
resize(0, towerMapsTmp.size());
46 for (
const auto& towerMap : towerMapsTmp) {
47 towerMaps.
set(0,
i, towerMap.second);
61 std::unordered_map<int, l1t::HGCalTowerMap>
newTowerMaps();
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)
std::vector< double > layerWeights_
HGCalTriggerTools triggerTools_
unsigned short getTriggerTower(const l1t::HGCalTriggerCell &) const
void buildTowerMap2D(const std::vector< edm::Ptr< T >> &ptrs, l1t::HGCalTowerMapBxCollection &towerMaps)
constexpr std::array< uint8_t, layerIndexSize > layer
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
void resize(int bx, unsigned size)
void eventSetup(const edm::EventSetup &es)
void set(int bx, unsigned i, const T &object)
void eventSetup(const edm::EventSetup &es)
HGCalTriggerTowerGeometryHelper towerGeometryHelper_