41 auto sumes = consumesCollector();
67 auto barrelRechits = std::make_unique<FTLRecHitCollection>();
68 auto endcapRechits = std::make_unique<FTLRecHitCollection>();
72 barrelRechits->reserve(hBarrel->size()/2);
73 for(
const auto& uhit : *hBarrel) {
75 auto rechit =
barrel_->makeRecHit(uhit, flags);
81 endcapRechits->reserve(hEndcap->
size()/2);
82 for(
const auto& uhit : *hEndcap) {
84 auto rechit =
endcap_->makeRecHit(uhit, flags);
T getParameter(std::string const &) const
std::unique_ptr< FTLRecHitAlgoBase > endcap_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~FTLRecHitProducer() override
def create(alignables, pedeDump, additionalData, outputFile, config)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Variable::Flags > flags
FTLRecHitProducer(const edm::ParameterSet &ps)
const std::string ftleInstance_
std::unique_ptr< FTLRecHitAlgoBase > barrel_
const edm::EDGetTokenT< FTLUncalibratedRecHitCollection > ftlbURecHits_
ParameterSet const & getParameterSet(std::string const &) const
const std::string ftlbInstance_
void produce(edm::Event &evt, const edm::EventSetup &es) override
const edm::EDGetTokenT< FTLUncalibratedRecHitCollection > ftleURecHits_
T get(const Candidate &c)