50 auto sumes = consumesCollector();
76 auto barrelRechits = std::make_unique<FTLRecHitCollection>();
77 auto endcapRechits = std::make_unique<FTLRecHitCollection>();
81 barrelRechits->reserve(hBarrel->size() / 2);
82 for (
const auto& uhit : *hBarrel) {
84 auto rechit =
barrel_->makeRecHit(uhit, flags);
86 barrelRechits->push_back(
std::move(rechit));
91 endcapRechits->reserve(hEndcap->
size() / 2);
92 for (
const auto& uhit : *hEndcap) {
94 auto rechit =
endcap_->makeRecHit(uhit, flags);
96 endcapRechits->push_back(
std::move(rechit));
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::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