27 produces<reco::PFCandidateCollection>();
34 bool inputOk = iEvent.
getByLabel(inputColl_, inputColl);
40 auto outputColl = std::make_unique<reco::PFCandidateCollection>();
43 for (
unsigned int iCopy = 0; iCopy != inputColl->size(); ++iCopy) {
45 (*outputColl)[iCopy] =
pf;
47 (*outputColl)[iCopy].setVertex(pf.
vertex());
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
PFConcretePFCandidateProducer(const edm::ParameterSet &)
const Point & vertex() const override
vertex position (overwritten by PF...)
#define DEFINE_FWK_MODULE(type)
void produce(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~PFConcretePFCandidateProducer() override
Particle reconstructed by the particle flow algorithm.