22 userDataHelper_( iConfig.getParameter<edm::
ParameterSet>(
"userData") )
28 if ( iConfig.
exists(
"userData") ) {
46 produces<vector<pat::CompositeCandidate> >();
61 auto_ptr<vector<pat::CompositeCandidate> > myCompositeCandidates (
new vector<pat::CompositeCandidate>() );
66 iend = cands->end(),
i = ibegin;
67 for ( ;
i != iend; ++
i ) {
78 myCompositeCandidates->push_back( cand );
83 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()
#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.
pat::helper::KinResolutionsLoader resolutionLoader_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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.
pat::helper::EfficiencyLoader efficiencyLoader_