52 produces<edm::ValueMap<float> >();
75 for (probe = probes->begin(); probe != endprobes; ++probe) {
77 for (
object = beginobjects;
object != endobjects; ++
object) {
84 values.push_back(count);
88 auto valMap = std::make_unique<ValueMap<float>>();
90 filler.insert(probes, values.begin(), values.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
StringCutObjectSelector< pat::DiObjectProxy, true > pairCut_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< edm::View< reco::Candidate > > objectsToken_
StringCutObjectSelector< reco::Candidate, true > objCut_
edm::EDGetTokenT< edm::View< reco::Candidate > > probesToken_
Count candidates near to another candidate, write result in ValueMap.
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual ~NearbyCandCountComputer()
NearbyCandCountComputer(const edm::ParameterSet &iConfig)
Power< A, B >::type pow(const A &a, const B &b)