Go to the documentation of this file.
27 switch (elem1->
type()) {
45 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem1);
46 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem2);
48 tkelem = static_cast<const reco::PFBlockElementTrack*>(elem2);
49 ecalelem = static_cast<const reco::PFBlockElementCluster*>(elem1);
61 const double ecalphi = ecalreppos.Phi();
62 const double ecaleta = ecalreppos.Eta();
65 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
66 for (; mlit != multilinks.end(); ++mlit)
67 if ((mlit->first == ecalphi) && (mlit->second == ecaleta))
71 if (mlit != multilinks.end()) {
82 std::cout <<
" Here a link has been established"
83 <<
" between a track an Ecal with dist " << dist << std::endl;
85 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)
const PFMultilinksType & getMultilinks() 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
static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi=true)
computes a chisquare
bool isMultilinksValide() const