25 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
26 hoelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
28 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
29 hoelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
35 throw cms::Exception(
"BadClusterRefs") <<
"PFBlockElementCluster's refs are null!";
37 dist = (
std::abs(hcalreppos.Eta()) < 1.5
39 hcalreppos.Eta(), hcalreppos.Phi(), horef->positionREP().Eta(), horef->positionREP().Phi())
41 return (dist < 0.2 ? dist : -1.0);