12 _useKDTree(conf.getParameter<bool>(
"useKDTree")),
13 _debug(conf.getUntrackedParameter<bool>(
"debug",
false)),
34 if( elem1->
type() < elem2->
type() ) {
45 <<
"SuperClusterRef is invalid!";
48 if( _superClusterMatchByRef ) {
53 sclus->position().phi(),
54 clus->positionREP().Eta(),
55 clus->positionREP().Phi() );
const SuperClusterRef & superClusterRef() const
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
static bool overlap(const reco::CaloCluster &sc1, const reco::CaloCluster &sc, float minfrac=0.01, bool debug=false)
const PFClusterRef & clusterRef() const
const SuperClusterRef & superClusterRef() const
bool isNull() const
Checks for null.
SCAndECALLinker(const edm::ParameterSet &conf)
#define DEFINE_EDM_PLUGIN(factory, type, name)
volatile std::atomic< bool > shutdown_flag false
bool _superClusterMatchByRef
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override