41 pairCut_(iConfig.existsAs<std::
string>(
"pairSelection") ? iConfig.getParameter<std::
string>(
"pairSelection") :
"",
true),
42 probeCut_(iConfig.existsAs<std::
string>(
"probeSelection") ? iConfig.getParameter<std::
string>(
"probeSelection") :
"",
true)
44 produces<edm::ValueMap<float> >();
64 std::vector<unsigned int> tagKeys;
67 for (pair = pairs->begin(); pair != endpairs; ++pair, ++
i) {
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);
edm::EDGetTokenT< reco::CandidateView > pairs_
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_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~ProbeMulteplicityProducer()
Matcher of number of reconstructed objects in the event to probe.
StringCutObjectSelector< reco::Candidate, true > pairCut_
const_iterator end() const
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
ProbeMulteplicityProducer(const edm::ParameterSet &iConfig)
virtual const CandidateBaseRef & masterClone() const =0