Go to the documentation of this file.
27 switch (elem1->
type()) {
47 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem1);
48 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
50 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem2);
51 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
62 const double tracketa = tkAtECAL.
positionREP().Eta();
63 const double trackphi = tkAtECAL.
positionREP().Phi();
66 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
67 for (; mlit != multilinks.end(); ++mlit)
68 if ((mlit->first == trackphi) && (mlit->second == tracketa))
72 if (mlit != multilinks.end()) {
83 std::cout <<
" Here a link has been established"
84 <<
" between a track an Ecal with dist " << dist << std::endl;
86 std::cout <<
" No link found " << std::endl;
std::vector< std::pair< double, double > > PFMultilinksType
Abstract This class is used by the KDTree Track / Ecal Cluster linker to store all found links.
double testLink(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
static double testTrackAndClusterByRecHit(const reco::PFRecTrack &track, const reco::PFCluster &cluster, bool isBrem=false, bool debug=false)
bool isMultilinksValide(Type type) const
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
const PFRecTrackRef & trackRefPF() const override
#define DEFINE_EDM_PLUGIN(factory, type, name)
TrackAndECALLinker(const edm::ParameterSet &conf)
LayerType
Define the different layers where the track can be propagated.
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...
const PFClusterRef & clusterRef() const override
ROOT::Math::PositionVector3D< ROOT::Math::CylindricalEta3D< double > > REPPoint
bool linkPrefilter(const reco::PFBlockElement *, const reco::PFBlockElement *) const override
const PFMultilinksType & getMultilinks(Type type) const
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare