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);
constexpr double deltaPhi(double phi1, double phi2)
Abstract base class for a PFBlock element (track, cluster...)
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
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
const PFMultilinksType & getMultilinks(Type type) const
bool isValid() const
is this point valid ?
std::vector< PFMultilink > PFMultilinksType
collection of PFSuperCluster objects
static LayerType layerTypeByName(const std::string &name)
bool isMultilinksValide(Type type) const
const PFClusterRef & clusterRef() const override
const math::XYZPoint & position() const
cartesian position (x, y, z)
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 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)