36 return make_pair(_towers.begin(), _towers.end());
42 return make_pair(_towers.begin(), _towers.end());
49 _towers[key] = rawtower;
52 return _towers.find(key);
60 cout <<
"RawTowerZDCContainer::AddTower - Error - adding tower to wrong container! Container CaloID = "
68 return _towers.find(key);
75 if (it != _towers.end())
86 if (it != _towers.end())
104 return getTower(key);
110 return (!_towers.empty());
115 while (_towers.begin() != _towers.end())
117 delete _towers.begin()->second;
118 _towers.erase(_towers.begin());
124 os <<
"RawTowerZDCContainer, number of towers: " << size() << std::endl;
130 double totalenergy = 0;
132 for (iter = _towers.begin(); iter != _towers.end(); ++iter)
134 totalenergy += iter->second->get_energy();