40 pairCut_(iConfig.existsAs<std::
string>(
"pairSelection") ? iConfig.getParameter<std::
string>(
"pairSelection") :
"",
43 iConfig.existsAs<std::
string>(
"probeSelection") ? iConfig.getParameter<std::
string>(
"probeSelection") :
"",
45 produces<edm::ValueMap<float>>();
59 std::vector<unsigned int> tagKeys;
62 for (pair = pairs->begin(); pair != endpairs; ++pair, ++
i) {
65 unsigned int copies = 1;
67 for (
unsigned int j = 0;
j <
i; ++
j)
68 if (tagKeys[
j] == tagKey)
70 for (
unsigned int j = 0;
j <
i; ++
j)
71 if (tagKeys[
j] == tagKey)
77 tagKeys.push_back(tagKey);
82 auto valMap = std::make_unique<ValueMap<float>>();
edm::EDGetTokenT< reco::CandidateView > pairs_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
StringCutObjectSelector< reco::Candidate, true > probeCut_
StringCutObjectSelector< reco::Candidate, true > pairCut_
~ProbeMulteplicityProducer() override
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Matcher of number of reconstructed objects in the event to probe.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
ProbeMulteplicityProducer(const edm::ParameterSet &iConfig)
edm::View< Candidate > CandidateView
view of a collection containing candidates
virtual const CandidateBaseRef & masterClone() const =0