8 produces<reco::PFCandidateCollection>();
22 auto outputColl = std::make_unique<reco::PFCandidateCollection>();
25 for (
unsigned int iCopy=0;iCopy!=inputColl->size();++iCopy){
27 (*outputColl)[iCopy]=
pf;
29 (*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...)
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.