Go to the documentation of this file.
51 switch (elem1->
type()) {
70 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem1);
71 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
73 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem2);
74 hcalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
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);
std::string trajectoryLayerEntranceString_
constexpr double deltaPhi(double phi1, double phi2)
static double testTrackAndClusterByRecHit(const reco::PFRecTrack &track, const reco::PFCluster &cluster, bool isBrem=false, bool debug=false)
bool isMultilinksValide(Type type) const
Log< level::Warning, false > LogWarning
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
const PFRecTrackRef & trackRefPF() const override
reco::PFTrajectoryPoint::LayerType trajectoryLayerExit_
#define DEFINE_EDM_PLUGIN(factory, type, name)
const math::XYZPoint & position() const
cartesian position (x, y, z)
std::vector< PFMultilink > PFMultilinksType
collection of PFSuperCluster objects
LayerType
Define the different layers where the track can be propagated.
static LayerType layerTypeByName(const std::string &name)
bool isValid() const
is this point valid ?
Abstract base class for a PFBlock element (track, cluster...)
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
bool linkPrefilter(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
reco::PFTrajectoryPoint::LayerType trajectoryLayerEntrance_
const PFClusterRef & clusterRef() const override
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
std::string trajectoryLayerExitString_
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
const PFMultilinksType & getMultilinks(Type type) const
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare
TrackAndHCALLinker(const edm::ParameterSet &conf)