47 probes_(iConfig.getParameter<edm::InputTag>(
"probes")),
48 objects_(iConfig.getParameter<edm::InputTag>(
"objects")),
49 deltaR2_(std::
pow(iConfig.getParameter<double>(
"deltaR"), 2)),
50 objCut_(iConfig.existsAs<std::
string>(
"objectSelection") ? iConfig.getParameter<std::
string>(
"objectSelection") :
"",
true),
51 pairCut_(iConfig.existsAs<std::
string>(
"pairSelection") ? iConfig.getParameter<std::
string>(
"pairSelection") :
"",
true)
53 produces<edm::ValueMap<float> >();
76 for (probe = probes->begin(); probe != endprobes; ++probe) {
78 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)
#define DEFINE_FWK_MODULE(type)
StringCutObjectSelector< pat::DiObjectProxy, true > pairCut_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
StringCutObjectSelector< reco::Candidate, true > objCut_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double deltaR2(const Vector1 &v1, const Vector2 &v2)
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)