7 std::vector<std::vector<PCaloHit>::const_iterator>
findHit(std::vector<PCaloHit>&
hits,
DetId thisDet,
bool) {
8 std::vector<std::vector<PCaloHit>::const_iterator>
hit;
9 std::vector<PCaloHit>::const_iterator ihit;
10 for (ihit =
hits.begin(); ihit !=
hits.end(); ihit++) {
11 DetId detId(ihit->id());
12 if (detId == thisDet) {
21 std::vector<EcalRecHitCollection::const_iterator>&
hit,
23 if (
hits->find(thisDet) !=
hits->end())
24 hit.push_back(
hits->find(thisDet));
29 std::vector<HBHERecHitCollection::const_iterator>&
hit,
31 if (
hits->find(thisDet) !=
hits->end())
32 hit.push_back(
hits->find(thisDet));
37 std::vector<edm::PCaloHitContainer::const_iterator>&
hit,
39 edm::PCaloHitContainer::const_iterator ihit;
40 for (ihit =
hits->begin(); ihit !=
hits->end(); ihit++) {
41 DetId detId(ihit->id());
42 if (detId == thisDet) {