7 LogTrace(
"PSimHitMap") <<
"getting CrossingFrame<PSimHit> collection ";
15 theMap[hitItr->detUnitId()].push_back(*hitItr);
20 std::map<int, edm::PSimHitContainer>::const_iterator mapItr =
theMap.find(detId);
21 if (mapItr !=
theMap.end()) {
22 return mapItr->second;
30 result.reserve(
theMap.size());
31 for (std::map<int, edm::PSimHitContainer>::const_iterator mapItr =
theMap.begin(), mapEnd =
theMap.end();
34 result.push_back(mapItr->first);
edm::PSimHitContainer theEmptyContainer
void fill(const edm::Event &e)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::PSimHitContainer & hits(int detId) const
edm::EDGetTokenT< CrossingFrame< PSimHit > > sh_token
std::vector< int > detsWithHits() const
std::map< int, edm::PSimHitContainer > theMap
T const * product() const
std::vector< PSimHit > PSimHitContainer