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