23 std::vector<std::pair<float, size_t> >
matches;
56 throw cms::Exception(
"Type Error") <<
"Input to OverlapBySuperClusterSeed is not a RecoCandidate. " 57 <<
"It's a " <<
typeid(
item).
name() <<
"\n";
61 <<
"Input to OverlapBySuperClusterSeed has a null or dangling superCluster reference\n";
66 <<
"Input to OverlapBySuperClusterSeed has a null superCluster seed reference\n";
68 bool hasOverlaps =
false;
76 <<
"One item in the OverlapBySuperClusterSeed input list has a null or dangling superCluster reference\n";
78 if (
mySeed == otherSc->seed()) {
bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const override
Check for overlaps.
edm::EDGetTokenT< reco::CandidateView > srcToken_
void push_back(Ptr< T > const &iPtr)
bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const override
Check for overlaps.
static std::string const input
PATStringCutObjectSelector presel_
A generic preselection cut that can work on any Candidate, but has access also to methods of PAT spec...
edm::Handle< reco::CandidateView > candidates_
The collection to check overlaps against.
std::vector< bool > isPreselected_
Flag saying if each element has passed the preselection or not.
bool isNull() const
Checks for null.
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Read input, apply preselection cut.
double deltaR_
Delta R for the match.
bool checkRecoComponents_
Check the overlapping by RECO components.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::Handle< reco::CandidateView > others_
StringCutObjectSelector< pat::DiObjectProxy > pairCut_
Cut on the pair of objects together.
const std::string & name() const