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 <<
"RawTowerContainer::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);
111 return getTower(key);
118 return getTower(key);
123 return (!_towers.empty());
128 while (_towers.begin() != _towers.end())
130 delete _towers.begin()->second;
131 _towers.erase(_towers.begin());
137 os <<
"RawTowerContainer, number of towers: " <<
size() << std::endl;
143 double totalenergy = 0;
145 for (iter = _towers.begin(); iter != _towers.end(); ++iter)
147 totalenergy += iter->second->get_energy();