69 dRHCALEx = tkAtHCALEx.
position().R();
73 const double tracketa = tkAtHCALEnt.
positionREP().Eta();
74 const double trackphi = tkAtHCALEnt.
positionREP().Phi();
77 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
78 for (; mlit != multilinks.end(); ++mlit)
79 if ((mlit->first == trackphi) && (mlit->second == tracketa))
84 if (mlit != multilinks.end()) {
94 if (dRHCALEx < tkAtHCALEnt.
position().R()) {
97 <<
"Special case of linking with track hitting HCAL and looping back in the tracker ";
100 hcalreppos.Eta(), hcalreppos.Phi(), tracketa + 0.1 * dHEta, trackphi + 0.1 * dHPhi);
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
constexpr double deltaPhi(double phi1, double phi2)
std::vector< std::pair< double, double > > PFMultilinksType
Abstract This class is used by the KDTree Track / Ecal Cluster linker to store all found links...
Abstract base class for a PFBlock element (track, cluster...)
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare
const PFClusterRef & clusterRef() const override
const math::XYZPoint & position() const
cartesian position (x, y, z)
static LayerType layerTypeByName(const std::string &name)
bool isValid() const
is this point valid ?
TrackAndHCALLinker(const edm::ParameterSet &conf)
std::string trajectoryLayerEntranceString_
bool isMultilinksValide() const
const PFRecTrackRef & trackRefPF() 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...
reco::PFTrajectoryPoint::LayerType trajectoryLayerEntrance_
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)
const PFMultilinksType & getMultilinks() const