42 probes_(iConfig.getParameter<edm::InputTag>(
"probes")),
43 objects_(iConfig.getParameter<edm::InputTag>(
"objects")),
44 objCut_(iConfig.existsAs<std::string>(
"objectSelection") ? iConfig.getParameter<std::string>(
"objectSelection") :
"",
true)
46 produces<edm::ValueMap<float> >();
70 for (
object = objects->begin();
object != endobjects; ++
object) {
71 if ( !(objCut_(*
object)) )
continue;
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
#define DEFINE_FWK_MODULE(type)
ObjectMultiplicityCounter< reco::Vertex > VertexMultiplicityCounter
virtual ~ObjectMultiplicityCounter()
StringCutObjectSelector< T, true > objCut_
Matcher of number of reconstructed objects in the event to probe.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ObjectMultiplicityCounter< reco::Candidate > CandMultiplicityCounter
ObjectMultiplicityCounter< reco::Track > TrackMultiplicityCounter
ObjectMultiplicityCounter(const edm::ParameterSet &iConfig)