29 std::unique_ptr<BTLUncalibratedRecHitAlgoBase>
barrel_;
30 std::unique_ptr<ETLUncalibratedRecHitAlgoBase>
endcap_;
42 auto sumes = consumesCollector();
67 auto barrelRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
68 auto endcapRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
72 barrelRechits->reserve(hBarrel->size()/2);
73 for(
const auto& digi : *hBarrel) {
74 barrelRechits->emplace_back(
barrel_->makeRecHit(digi) );
79 endcapRechits->reserve(hEndcap->
size()/2);
80 for(
const auto& digi : *hEndcap) {
81 endcapRechits->emplace_back(
endcap_->makeRecHit(digi) );
T getParameter(std::string const &) const
const edm::EDGetTokenT< ETLDigiCollection > ftleDigis_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const std::string ftlbInstance_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MTDUncalibratedRecHitProducer(const edm::ParameterSet &ps)
std::unique_ptr< ETLUncalibratedRecHitAlgoBase > endcap_
const std::string ftleInstance_
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< BTLDigiCollection > ftlbDigis_
~MTDUncalibratedRecHitProducer() override
void produce(edm::Event &evt, const edm::EventSetup &es) override
ParameterSet const & getParameterSet(std::string const &) const
std::unique_ptr< BTLUncalibratedRecHitAlgoBase > barrel_
T get(const Candidate &c)