14 : useLayerWeights_(conf.getParameter<
bool>(
"useLayerWeights")),
15 layerWeights_(conf.getParameter<
std::vector<double>>(
"layerWeights")),
16 towerGeometryHelper_(conf.getParameter<
edm::
ParameterSet>(
"L1TTriggerTowerConfig")) {}
19 std::unordered_map<int, l1t::HGCalTowerMap> towerMaps;
32 std::unordered_map<int, l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
34 for (
auto tc : triggerCellsPtrs) {
38 if (towerMapsTmp.find(layer) == towerMapsTmp.end()) {
40 <<
"HGCalTowerMap2dImpl: Found trigger cell in layer " << layer <<
" for which there is no tower map\n";
43 double calibPt = tc->pt();
50 towerMapsTmp[layer].addEt(
55 towerMaps.
resize(0, towerMapsTmp.size());
57 for (
auto towerMap : towerMapsTmp) {
58 towerMaps.
set(0,
i, towerMap.second);