46 probesToken_(consumes<edm::
View<
reco::
Candidate> >(iConfig.getParameter<edm::InputTag>(
"probes"))),
47 objectsToken_(consumes<edm::
View<
reco::
Candidate> >(iConfig.getParameter<edm::InputTag>(
"objects"))),
48 deltaR2_(std::
pow(iConfig.getParameter<double>(
"deltaR"), 2)),
49 objCut_(iConfig.existsAs<std::
string>(
"objectSelection") ? iConfig.getParameter<std::
string>(
"objectSelection") :
"",
true),
50 pairCut_(iConfig.existsAs<std::
string>(
"pairSelection") ? iConfig.getParameter<std::
string>(
"pairSelection") :
"",
true)
52 produces<edm::ValueMap<float> >();
75 for (probe = probes->begin(); probe != endprobes; ++probe) {
77 for (
object = beginobjects;
object != endobjects; ++
object) {
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
objCut_(iConfig.existsAs< std::string >("srcObjectSelection")?iConfig.getParameter< std::string >("srcObjectSelection"):"", true)
StringCutObjectSelector< pat::DiObjectProxy, true > pairCut_
edm::EDGetTokenT< edm::View< reco::Candidate > > objectsToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double deltaR2(const T1 &t1, const T2 &t2)
StringCutObjectSelector< reco::Candidate, true > objCut_
edm::EDGetTokenT< edm::View< reco::Candidate > > probesToken_
Count candidates near to another candidate, write result in ValueMap.
virtual ~NearbyCandCountComputer()
NearbyCandCountComputer(const edm::ParameterSet &iConfig)
Power< A, B >::type pow(const A &a, const B &b)