41 auto sumes = consumesCollector();
66 auto barrelRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
67 auto endcapRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
71 barrelRechits->reserve(hBarrel->size()/2);
72 for(
const auto& digi : *hBarrel) {
73 barrelRechits->emplace_back(
barrel_->makeRecHit(digi) );
78 endcapRechits->reserve(hEndcap->
size()/2);
79 for(
const auto& digi : *hEndcap) {
80 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.
def create(alignables, pedeDump, additionalData, outputFile, config)
const std::string ftlbInstance_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MTDUncalibratedRecHitProducer(const edm::ParameterSet &ps)
const std::string ftleInstance_
const edm::EDGetTokenT< BTLDigiCollection > ftlbDigis_
~MTDUncalibratedRecHitProducer() override
std::unique_ptr< MTDUncalibratedRecHitAlgoBase > barrel_
void produce(edm::Event &evt, const edm::EventSetup &es) override
std::unique_ptr< MTDUncalibratedRecHitAlgoBase > endcap_
ParameterSet const & getParameterSet(std::string const &) const
T get(const Candidate &c)