14 useKDTree_(conf.getParameter<bool>(
"useKDTree")),
17 debug_(conf.getUntrackedParameter<bool>(
"debug",
false)) {
51 switch (elem1->
type()) {
89 dRHCALEx = tkAtHCALEx.
position().R();
98 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
99 for (; mlit != multilinks.end(); ++mlit)
100 if (mlit->clusterRef == clusterref)
105 if (mlit != multilinks.end()) {
115 if (dRHCALEx < tkAtHCALEnt.
position().R()) {
118 <<
"Special case of linking with track hitting HCAL and looping back in the tracker ";
121 hcalreppos.Eta(), hcalreppos.Phi(), tkreppos.Eta() + 0.1 * dHEta, tkreppos.Phi() + 0.1 * dHPhi);
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
constexpr double deltaPhi(double phi1, double phi2)
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
const math::XYZPoint & position() const
cartesian position (x, y, z)
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
bool isMultilinksValide(Type type) const
std::vector< PFMultilink > PFMultilinksType
collection of PFSuperCluster objects
static LayerType layerTypeByName(const std::string &name)
const PFClusterRef & clusterRef() const override
bool isValid() const
is this point valid ?
TrackAndHCALLinker(const edm::ParameterSet &conf)
std::string trajectoryLayerEntranceString_
bool linkPrefilter(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
#define DEFINE_EDM_PLUGIN(factory, type, name)
reco::PFTrajectoryPoint::LayerType trajectoryLayerExit_
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
const PFMultilinksType & getMultilinks(Type type) const
const PFRecTrackRef & trackRefPF() const override
reco::PFTrajectoryPoint::LayerType trajectoryLayerEntrance_
Log< level::Warning, false > LogWarning
std::string trajectoryLayerExitString_
LayerType
Define the different layers where the track can be propagated.
static double testTrackAndClusterByRecHit(const reco::PFRecTrack &track, const reco::PFCluster &cluster, bool isBrem=false, bool debug=false)