Go to the documentation of this file.
23 std::vector<std::pair<float, size_t> >
matches;
46 for (std::vector<std::pair<float, size_t> >::const_iterator it =
matches.begin(); it !=
matches.end(); ++it) {
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()) {
static const std::string input
bool isNull() const
Checks for null.
bool checkRecoComponents_
Check the overlapping by RECO components.
void readInput(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Read input, apply preselection cut.
double deltaR_
Delta R for the match.
bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const override
Check for overlaps.
edm::Handle< reco::CandidateView > others_
void push_back(Ptr< T > const &iPtr)
const std::string & name() const
bool fillOverlapsForItem(const reco::Candidate &item, reco::CandidatePtrVector &overlapsToFill) const override
Check for overlaps.
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.
edm::EDGetTokenT< reco::CandidateView > srcToken_
PATStringCutObjectSelector presel_
A generic preselection cut that can work on any Candidate, but has access also to methods of PAT spec...
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
StringCutObjectSelector< pat::DiObjectProxy > pairCut_
Cut on the pair of objects together.