8 LogTrace(
"PSimHitMap") <<
"getting CrossingFrame<PSimHit> collection ";
16 theMap[hitItr->detUnitId()].push_back(*hitItr);
21 std::map<int, edm::PSimHitContainer>::const_iterator mapItr =
theMap.find(detId);
22 if (mapItr !=
theMap.end()) {
23 return mapItr->second;
32 for (std::map<int, edm::PSimHitContainer>::const_iterator mapItr =
theMap.begin(), mapEnd =
theMap.end();
35 result.push_back(mapItr->first);
edm::PSimHitContainer theEmptyContainer
void fill(const edm::Event &e)
T const * product() const
edm::EDGetTokenT< CrossingFrame< PSimHit > > sh_token
const edm::PSimHitContainer & hits(int detId) const
std::map< int, edm::PSimHitContainer > theMap
std::vector< int > detsWithHits() const
std::vector< PSimHit > PSimHitContainer