10 useKDTree_(conf.getParameter<bool>(
"useKDTree")),
11 debug_(conf.getUntrackedParameter<bool>(
"debug",
false)) {}
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);
Abstract base class for a PFBlock element (track, cluster...)
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
ECALAndHCALCaloJetLinker(const edm::ParameterSet &conf)
bool isNull() const
Checks for null.
const PFClusterRef & clusterRef() const override
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
#define DEFINE_EDM_PLUGIN(factory, type, name)