52 auto sumes = consumesCollector();
82 auto barrelRechits = std::make_unique<FTLRecHitCollection>();
83 auto endcapRechits = std::make_unique<FTLRecHitCollection>();
87 barrelRechits->reserve(hBarrel->size()/2);
88 for(
const auto& uhit : *hBarrel) {
90 auto rechit =
barrel_->makeRecHit(uhit, flags);
96 endcapRechits->reserve(hEndcap->
size()/2);
97 for(
const auto& uhit : *hEndcap) {
99 auto rechit =
endcap_->makeRecHit(uhit, flags);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~MTDRecHitProducer() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MTDRecHitProducer(const edm::ParameterSet &ps)
std::vector< Variable::Flags > flags
std::unique_ptr< MTDRecHitAlgoBase > endcap_
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< FTLUncalibratedRecHitCollection > ftleURecHits_
const MTDGeometry * geom_
const std::string ftleInstance_
const std::string ftlbInstance_
ParameterSet const & getParameterSet(std::string const &) const
void produce(edm::Event &evt, const edm::EventSetup &es) override
std::unique_ptr< MTDRecHitAlgoBase > barrel_
const edm::EDGetTokenT< FTLUncalibratedRecHitCollection > ftlbURecHits_
T const * product() const
T get(const Candidate &c)