Go to the documentation of this file.
21 useUserData_(iConfig.exists(
"userData")),
22 userDataHelper_(iConfig.getParameter<
edm::
ParameterSet>(
"userData"), consumesCollector()),
23 addEfficiencies_(iConfig.getParameter<
bool>(
"addEfficiencies")),
24 addResolutions_(iConfig.getParameter<
bool>(
"addResolutions")) {
37 produces<vector<pat::CompositeCandidate> >();
52 auto myCompositeCandidates = std::make_unique<vector<pat::CompositeCandidate> >();
54 if (
cands.isValid()) {
56 for (;
i != iend; ++
i) {
const bool addResolutions_
Analysis-level particle class.
bool enabled() const
'true' if this there is at least one efficiency configured
pat::helper::EfficiencyLoader efficiencyLoader_
bool enabled() const
'true' if this there is at least one efficiency configured
~PATCompositeCandidateProducer() override
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
#define DEFINE_FWK_MODULE(type)
void add(ObjectType &patObject, edm::Event const &iEvent, edm::EventSetup const &iSetup)
void newEvent(const edm::Event &event)
To be called for each new event, reads in the ValueMaps for efficiencies.
const bool addEfficiencies_
void setResolutions(pat::PATObject< T > &obj) const
Sets the efficiencies for this object, using the reference to the original objects.
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_
PATCompositeCandidateProducer(const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
Produces the pat::CompositeCandidate.
void setEfficiencies(pat::PATObject< T > &obj, const R &originalRef) const
Sets the efficiencies for this object, using the reference to the original objects.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const edm::EDGetTokenT< edm::View< reco::CompositeCandidate > > srcToken_
pat::PATUserDataHelper< pat::CompositeCandidate > userDataHelper_