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();
65 reco::PFMultilinksType::const_iterator mlit = multilinks.begin();
66 for (; mlit != multilinks.end(); ++mlit)
67 if (mlit->trackRef == trackref)
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;
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)
std::vector< PFMultilink > PFMultilinksType
collection of PFSuperCluster objects
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