11 std::vector<EcalRecHitCollection::const_iterator>
hit;
14 j!=hits->end();
j++) {
28 if (keepHit) hit.push_back(
j);
36 std::vector<EcalRecHitCollection::const_iterator>
hit;
41 bool doBarrel=
false, doEndcap=
false;
47 j!=barrelhits->end();
j++) {
55 std::cout <<
"PROBLEM : Endcap RecHits in Barrel Collection!?"
58 if (keepHit) hit.push_back(
j);
65 j!=endcaphits->end();
j++) {
74 std::cout <<
"PROBLEM : Barrel RecHits in Endcap Collection!?"
77 if (keepHit) hit.push_back(
j);
88 std::vector<HBHERecHitCollection::const_iterator>
hit;
91 j!=hits->end();
j++) {
102 std::vector<edm::PCaloHitContainer::const_iterator>
hit;
103 edm::PCaloHitContainer::const_iterator ihit;
104 for (ihit=hits->begin(); ihit!=hits->end(); ihit++) {
105 DetId detId(ihit->id());
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint)
std::vector< T >::const_iterator const_iterator
const GlobalPoint & getPosition(const DetId &id) const
Get the position of a given detector id.
std::vector< EcalRecHitCollection::const_iterator > findCone(const CaloGeometry *geo, edm::Handle< EcalRecHitCollection > &hits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR)