15 layerWeights_(conf.getParameter<
std::vector<double> >(
"layerWeights")),
16 towerGeometryHelper_(conf.getParameter<
edm::
ParameterSet>(
"L1TTriggerTowerConfig")) {
22 std::unordered_map<int, l1t::HGCalTowerMap> towerMaps;
38 std::unordered_map<int, l1t::HGCalTowerMap> towerMapsTmp =
newTowerMaps();
40 for(
auto tc: triggerCellsPtrs) {
43 double calibPt = tc->pt();
54 towerMaps.
resize(0, towerMapsTmp.size());
56 for(
auto towerMap : towerMapsTmp){
57 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)