9 for (
auto tower_id : tower_ids) {
17 <<
"HGCalTowerMap: Trying to add HGCalTowerMaps with different bins: " <<
nTowers() <<
" and " <<
map.nTowers()
21 for (
const auto&
tower :
map.towers()) {
25 <<
"HGCalTowerMap: Trying to add HGCalTowerMaps but could not find bin: " <<
tower.first << endl;
27 this_tower->second +=
tower.second;
33 bool HGCalTowerMap::addEt(
const std::unordered_map<unsigned short, float>& towerIDandShares,
float etEm,
float etHad) {
34 for (
const auto& towerIDandShare : towerIDandShares) {
35 auto this_tower =
towerMap_.find(towerIDandShare.first);
38 this_tower->second.addEtEm(etEm * towerIDandShare.second);
39 this_tower->second.addEtHad(etHad * towerIDandShare.second);
bool addEt(const std::unordered_map< unsigned short, float > &towerIDandShares, float etEm, float etHad)
static const char layer_[]
const HGCalTowerMap & operator+=(const HGCalTowerMap &map)
std::unordered_map< unsigned short, l1t::HGCalTower > towerMap_