27 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
28 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
30 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
31 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
37 throw cms::Exception(
"BadClusterRefs") <<
"PFBlockElementCluster's refs are null!";
41 ecalreppos.Eta(), ecalreppos.Phi(), hcalref->positionREP().Eta(), hcalref->positionREP().Phi())
43 return (dist < 0.2 ? dist : -1.0);