26 std::vector<std::unique_ptr<PFRecHitCreatorBase> >
creators_;
42 produces<reco::PFRecHitCollection>();
43 produces<reco::PFRecHitCollection>(
"Cleaned");
47 std::vector<edm::ParameterSet> creators = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"producers");
48 for (
auto& creator : creators) {
65 creator->init(iSetup);
73 auto out = std::make_unique<reco::PFRecHitCollection>();
74 auto cleaned = std::make_unique<reco::PFRecHitCollection>();
76 out->reserve(localRA1.upper());
77 cleaned->reserve(localRA2.upper());
80 creator->importRecHits(
out, cleaned,
iEvent, iSetup);
83 if (
out->capacity() > 2 *
out->size())
85 if (cleaned->capacity() > 2 * cleaned->size())
86 cleaned->shrink_to_fit();
87 localRA1.update(
out->size());
88 localRA2.update(cleaned->size());
94 for (
auto& pfrechit : *
out) {
std::vector< std::unique_ptr< PFRecHitCreatorBase > > creators_
T getParameter(std::string const &) const
~PFRecHitProducer() override
def create(alignables, pedeDump, additionalData, outputFile, config)
uint32_t cc[maxCellsPerHit]
std::vector< PFRecHit > PFRecHitCollection
collection of PFRecHit objects
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...
#define DEFINE_FWK_MODULE(type)
PFRecHitProducer(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< PFRecHitNavigatorBase > navigator_
void beginRun(edm::Run const &, const edm::EventSetup &) override