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