42 probesToken_(consumes<edm::
View<
reco::
Candidate> >(iConfig.getParameter<edm::InputTag>(
"probes"))),
43 objectsToken_(consumes<edm::
View<
T> >(iConfig.getParameter<edm::InputTag>(
"objects"))),
44 objCut_(iConfig.existsAs<std::
string>(
"objectSelection") ? iConfig.getParameter<std::
string>(
"objectSelection") :
"",
true)
46 produces<edm::ValueMap<float> >();
69 for (
object = objects->begin();
object != endobjects; ++
object) {
70 if ( !(
objCut_(*
object)) )
continue;
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)
edm::EDGetTokenT< edm::View< reco::Candidate > > probesToken_
ObjectMultiplicityCounter< reco::Vertex > VertexMultiplicityCounter
virtual ~ObjectMultiplicityCounter()
StringCutObjectSelector< T, true > objCut_
Matcher of number of reconstructed objects in the event to probe.
edm::EDGetTokenT< edm::View< T > > objectsToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ObjectMultiplicityCounter< reco::Candidate > CandMultiplicityCounter
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
ObjectMultiplicityCounter< reco::Track > TrackMultiplicityCounter
ObjectMultiplicityCounter(const edm::ParameterSet &iConfig)