Go to the documentation of this file.
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")) {
79 produces<vector<pat::CompositeCandidate> >();
94 auto myCompositeCandidates = std::make_unique<vector<pat::CompositeCandidate> >();
96 if (
cands.isValid()) {
98 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)
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.
T getParameter(std::string const &) const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const edm::EDGetTokenT< edm::View< reco::CompositeCandidate > > srcToken_
pat::PATUserDataHelper< pat::CompositeCandidate > userDataHelper_