16 layerWeights_(conf.getParameter<
std::vector<double> >(
"layerWeights")),
17 towerGeometryHelper_(conf.getParameter<
edm::
ParameterSet>(
"L1TTriggerTowerConfig")) {
23 std::unordered_map<int, l1t::HGCalTowerMap> towerMaps;
39 std::unordered_map<int, l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
41 for(
auto tc: triggerCellsPtrs) {
44 double calibPt = tc->pt();
55 towerMaps.
resize(0, towerMapsTmp.size());
57 for(
auto towerMap : towerMapsTmp){
58 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)