13 produces<reco::PFRecHitCollection>();
14 produces<reco::PFRecHitCollection>(
"Cleaned");
18 std::vector<edm::ParameterSet> creators = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"producers");
19 for (
unsigned int i=0;
i<creators.size();++
i) {
52 creator->importRecHits(out,cleaned,iEvent,iSetup);
55 std::sort(out->begin(),out->end(),sortByDetId);
61 for(
auto& pfrechit : *out ) {
62 navigator_->associateNeighbours(pfrechit,out,refProd);
66 iEvent.
put(cleaned,
"Cleaned");
T getParameter(std::string const &) const
std::vector< std::unique_ptr< PFRecHitCreatorBase > > creators_
unsigned detId() const
rechit detId
std::vector< PFRecHit > PFRecHitCollection
collection of PFRecHit objects
virtual void produce(edm::Event &, const edm::EventSetup &) override
void addDefault(ParameterSetDescription const &psetDescription)
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
RefProd< PROD > getRefBeforePut()
PFRecHitProducer(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T get(const Candidate &c)
std::unique_ptr< PFRecHitNavigatorBase > navigator_