7 std::vector<int> chambersDone;
9 std::map<int, edm::PSimHitContainer> signalHits = hitMap;
10 for (std::map<int, edm::PSimHitContainer>::const_iterator signalHitItr = signalHits.begin();
11 signalHitItr != signalHits.end();
13 int chamberIndex =
chamberId(signalHitItr->first);
16 if (
find(chambersDone.begin(), chambersDone.end(), chamberIndex) == chambersDone.end()) {
21 for (edm::PSimHitContainer::const_iterator neutronHitItr = neutronHits.begin();
22 neutronHitItr != neutronHits.end();
24 uint32_t layerId = neutronHitItr->detUnitId();
25 hitMap[layerId].push_back(*neutronHitItr);
28 chambersDone.push_back(chamberIndex);