21 userDataHelper_( iConfig.getParameter<edm::
ParameterSet>(
"userData"), consumesCollector() )
27 if ( iConfig.
exists(
"userData") ) {
45 produces<vector<pat::CompositeCandidate> >();
60 auto_ptr<vector<pat::CompositeCandidate> > myCompositeCandidates (
new vector<pat::CompositeCandidate>() );
65 iend = cands->end(),
i = ibegin;
66 for ( ;
i != iend; ++
i ) {
77 myCompositeCandidates->push_back( cand );
82 iEvent.
put(myCompositeCandidates);
bool enabled() const
'true' if this there is at least one efficiency configured
Analysis-level particle class.
T getParameter(std::string const &) const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
~PATCompositeCandidateProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
pat::PATUserDataHelper< pat::CompositeCandidate > userDataHelper_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void setResolutions(pat::PATObject< T > &obj) const
Sets the efficiencies for this object, using the reference to the original objects.
bool enabled() const
'true' if this there is at least one efficiency configured
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
pat::helper::KinResolutionsLoader resolutionLoader_
void setEfficiencies(pat::PATObject< T > &obj, const R &originalRef) const
Sets the efficiencies for this object, using the reference to the original objects.
Produces the pat::CompositeCandidate.
PATCompositeCandidateProducer(const edm::ParameterSet &iConfig)
void newEvent(const edm::Event &event, const edm::EventSetup &setup) const
To be called for each new event, reads in the EventSetup object.
void newEvent(const edm::Event &event) const
To be called for each new event, reads in the ValueMaps for efficiencies.
edm::EDGetTokenT< edm::View< reco::CompositeCandidate > > srcToken_
pat::helper::EfficiencyLoader efficiencyLoader_