This checks a slew of possible overlaps for FwdPtr<Candidate> and derivatives.
More...
template<class Top, class Bottom>
class TopProjectorFwdPtrOverlap< Top, Bottom >
This checks a slew of possible overlaps for FwdPtr<Candidate> and derivatives.
Definition at line 41 of file TopProjector.h.
template<class Top , class Bottom >
Definition at line 53 of file TopProjector.h.
56 bool topFwdGood = top.ptr().isNonnull() && top.ptr().isAvailable();
57 bool topBckGood = top.backPtr().isNonnull() && top.backPtr().isAvailable();
65 (topBckGood && bottomFwdGood && top.backPtr().refCore() ==
bottom_->
ptr().
refCore() &&
70 for (
unsigned isource = 0; isource < top->numberOfSourceCandidatePtrs(); ++isource) {
83 for (
unsigned isource = 0; isource < (*bottom_)->numberOfSourceCandidatePtrs(); ++isource) {
86 if ((topFwdGood && bottomSrcGood && bottomSrcPtr.
refCore() == top.ptr().refCore() &&
87 bottomSrcPtr.
key() == top.ptr().key()) ||
88 (topBckGood && bottomSrcGood && bottomSrcPtr.
refCore() == top.backPtr().refCore() &&
89 bottomSrcPtr.
key() == top.backPtr().key())) {
References edm::FwdPtr< T >::backPtr(), TopProjectorFwdPtrOverlap< Top, Bottom >::bottom_, edm::Ptr< T >::isAvailable(), edm::Ptr< T >::isNonnull(), edm::Ptr< T >::key(), TopProjectorFwdPtrOverlap< Top, Bottom >::matchByPtrDirect_, muonTagProbeFilters_cff::matched, edm::FwdPtr< T >::ptr(), edm::Ptr< T >::refCore(), and relativeConstraints::value.