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) {
37 double calibPt = tc->pt();
44 towerMapsTmp[layer].addEt(
49 towerMaps.
resize(0, towerMapsTmp.size());
51 for (
auto towerMap : towerMapsTmp) {
52 towerMaps.
set(0, i, towerMap.second);
std::vector< double > layerWeights_
HGCalTriggerTools triggerTools_
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
unsigned short getTriggerTowerFromTriggerCell(const unsigned tcId, const float &eta, const float &phi) const
void buildTowerMap2D(const std::vector< edm::Ptr< l1t::HGCalTriggerCell >> &triggerCellsPtrs, l1t::HGCalTowerMapBxCollection &towermaps)
void set(int bx, unsigned i, const T &object)
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
void resize(int bx, unsigned size)
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)