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!";
45 ecalreppos.Eta(), ecalreppos.Phi(), hcalref->positionREP().Eta(), hcalref->positionREP().Phi());
47 return (dist < 0.2 ? dist : -1.0);