63 useUserData_(iConfig.exists(
"userData")),
64 userDataHelper_(iConfig.getParameter<edm::
ParameterSet>(
"userData"), consumesCollector()),
65 addEfficiencies_(iConfig.getParameter<bool>(
"addEfficiencies")),
66 addResolutions_(iConfig.getParameter<bool>(
"addResolutions")) {
80 produces<vector<pat::CompositeCandidate> >();
95 auto myCompositeCandidates = std::make_unique<vector<pat::CompositeCandidate> >();
99 for (;
i != iend; ++
i) {
111 myCompositeCandidates->push_back(
std::move(cand));
bool enabled() const
'true' if this there is at least one efficiency configured
Analysis-level particle class.
Assists in assimilating all pat::UserData into pat objects.
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
#define DEFINE_FWK_MODULE(type)
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
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_
T getParameter(std::string const &) 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.
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_