44 produces<edm::ValueMap<float> >();
64 std::vector<unsigned int> tagKeys;
67 for (pair = pairs->begin(); pair != endpairs; ++pair, ++
i) {
69 unsigned int tagKey = pair->daughter(0)->masterClone().key();
70 unsigned int copies = 1;
72 for (
unsigned int j = 0; j <
i; ++j)
if (tagKeys[j] == tagKey) copies++;
73 for (
unsigned int j = 0; j <
i; ++j)
if (tagKeys[j] == tagKey) values[j] = copies;
78 tagKeys.push_back(tagKey);
79 values.push_back(copies);
83 auto valMap = std::make_unique<ValueMap<float>>();
85 filler.insert(pairs, values.begin(), values.end());
edm::EDGetTokenT< reco::CandidateView > pairs_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
StringCutObjectSelector< reco::Candidate, true > probeCut_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
~ProbeMulteplicityProducer() override
#define DEFINE_FWK_MODULE(type)
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
StringCutObjectSelector< reco::Candidate, true > pairCut_
ProbeMulteplicityProducer(const edm::ParameterSet &iConfig)
edm::View< Candidate > CandidateView
view of a collection containing candidates