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);
124 return (!_towers.empty());
129 while (_towers.begin() != _towers.end())
131 delete _towers.begin()->second;
132 _towers.erase(_towers.begin());
138 os <<
"RawTowerContainer, number of towers: " << size() << std::endl;
144 double totalenergy = 0;
146 for (iter = _towers.begin(); iter != _towers.end(); ++iter)
148 totalenergy += iter->second->get_energy();