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) {
std::vector< typename T::const_iterator > findHit(edm::Handle< T > &hits, DetId thisDet, bool debug=false)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)