7 std::vector<std::vector<PCaloHit>::const_iterator>
findHit(std::vector<PCaloHit>&
hits,
DetId thisDet,
bool ) {
9 std::vector<std::vector<PCaloHit>::const_iterator>
hit;
10 std::vector<PCaloHit>::const_iterator ihit;
11 for (ihit=hits.begin(); ihit!=hits.end(); ihit++) {
12 DetId detId(ihit->id());
13 if (detId == thisDet) {
22 if (hits->
find(thisDet) != hits->
end())
23 hit.push_back( hits->
find(thisDet) );
28 if (hits->
find(thisDet) != hits->
end())
29 hit.push_back( hits->
find(thisDet) );
34 edm::PCaloHitContainer::const_iterator ihit;
35 for (ihit=hits->begin(); ihit!=hits->end(); ihit++) {
36 DetId detId(ihit->id());
37 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)
const_iterator end() const
iterator find(key_type k)