#include <PFRecHitProducer.h>
Definition at line 21 of file PFRecHitProducer.h.
Definition at line 14 of file PFRecHitProducer.cc.
References beamerCreator::create(), creators_, reco::get(), edm::ParameterSet::getParameter(), dataset::name, navigator_, AlCaHLTBitMon_QueryRunRegistry::string, and ~PFRecHitProducer().
17 produces<reco::PFRecHitCollection>();
18 produces<reco::PFRecHitCollection>(
"Cleaned");
22 std::vector<edm::ParameterSet> creators = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"producers");
23 for (
auto & creator : creators) {
T getParameter(std::string const &) const
std::vector< std::unique_ptr< PFRecHitCreatorBase > > creators_
def create(alignables, pedeDump, additionalData, outputFile, config)
T get(const Candidate &c)
std::unique_ptr< PFRecHitNavigatorBase > navigator_
PFRecHitProducer::~PFRecHitProducer |
( |
| ) |
|
|
overridedefault |
Definition at line 44 of file PFRecHitProducer.cc.
References creators_.
46 creator->init(iSetup);
std::vector< std::unique_ptr< PFRecHitCreatorBase > > creators_
Definition at line 55 of file PFRecHitProducer.cc.
References creators_, edm::Event::getRefBeforePut(), eostools::move(), navigator_, MillePedeFileConverter_cfg::out, edm::Event::put(), and jetUpdater_cfi::sort.
58 auto out = std::make_unique<reco::PFRecHitCollection>();
59 auto cleaned = std::make_unique<reco::PFRecHitCollection>();
63 out->reserve(localRA1.upper());
64 cleaned->reserve(localRA2.upper());
67 creator->importRecHits(
out,cleaned,iEvent,iSetup);
70 if (
out->capacity()>2*
out->size())
out->shrink_to_fit();
71 if (cleaned->capacity()>2*cleaned->size()) cleaned->shrink_to_fit();
72 localRA1.update(
out->size());
73 localRA2.update(cleaned->size());
80 for(
auto& pfrechit : *
out ) {
81 navigator_->associateNeighbours(pfrechit,out,refProd);
std::vector< std::unique_ptr< PFRecHitCreatorBase > > creators_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< PFRecHit > PFRecHitCollection
collection of PFRecHit objects
RefProd< PROD > getRefBeforePut()
std::unique_ptr< PFRecHitNavigatorBase > navigator_
bool PFRecHitProducer::init_ |
|
private |