22 useUserData_(iConfig.exists(
"userData")),
23 userDataHelper_( iConfig.getParameter<
edm::
ParameterSet>(
"userData"), consumesCollector() ),
24 addEfficiencies_(iConfig.getParameter<
bool>(
"addEfficiencies")),
25 addResolutions_(iConfig.getParameter<
bool>(
"addResolutions"))
39 produces<vector<pat::CompositeCandidate> >();
54 auto myCompositeCandidates = std::make_unique<vector<pat::CompositeCandidate> >();
59 iend = cands->end(),
i = ibegin;
60 for ( ;
i != iend; ++
i ) {
71 myCompositeCandidates->push_back(
std::move(cand) );
bool enabled() const
'true' if this there is at least one efficiency configured
Analysis-level particle class.
T getParameter(std::string const &) const
void newEvent(const edm::Event &event)
To be called for each new event, reads in the ValueMaps for efficiencies.
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~PATCompositeCandidateProducer() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
pat::PATUserDataHelper< pat::CompositeCandidate > userDataHelper_
const bool addResolutions_
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
#define DEFINE_FWK_MODULE(type)
void newEvent(const edm::Event &event, const edm::EventSetup &setup)
To be called for each new event, reads in the EventSetup object.
pat::helper::KinResolutionsLoader resolutionLoader_
const bool addEfficiencies_
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.
const edm::EDGetTokenT< edm::View< reco::CompositeCandidate > > srcToken_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
PATCompositeCandidateProducer(const edm::ParameterSet &iConfig)
pat::helper::EfficiencyLoader efficiencyLoader_