Definition at line 6 of file ECALAndHCALLinker.cc.
◆ ECALAndHCALLinker()
◆ testLink()
Implements BlockElementLinkerBase.
Definition at line 21 of file ECALAndHCALLinker.cc.
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);
References funct::abs(), reco::PFBlockElementCluster::clusterRef(), LinkByRecHit::computeDist(), Exception, edm::Ref< C, T, F >::isNull(), and reco::PFBlockElement::type().
◆ debug_
bool ECALAndHCALLinker::debug_ |
|
private |
◆ useKDTree_
bool ECALAndHCALLinker::useKDTree_ |
|
private |