27 std::unique_ptr<BTLUncalibratedRecHitAlgoBase>
barrel_;
28 std::unique_ptr<ETLUncalibratedRecHitAlgoBase>
endcap_;
34 ftlbInstance_(ps.getParameter<std::
string>(
"BarrelHitsName")),
35 ftleInstance_(ps.getParameter<std::
string>(
"EndcapHitsName")) {
39 auto sumes = consumesCollector();
43 barrel_ = std::unique_ptr<BTLUncalibratedRecHitAlgoBase>{
48 endcap_ = std::unique_ptr<ETLUncalibratedRecHitAlgoBase>{
63 auto barrelRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
64 auto endcapRechits = std::make_unique<FTLUncalibratedRecHitCollection>();
68 barrelRechits->reserve(hBarrel->size() / 2);
69 for (
const auto& digi : *hBarrel) {
70 barrelRechits->emplace_back(
barrel_->makeRecHit(digi));
75 endcapRechits->reserve(hEndcap->size() / 2);
76 for (
const auto& digi : *hEndcap) {
77 endcapRechits->emplace_back(
endcap_->makeRecHit(digi));
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
#define DEFINE_FWK_MODULE(type)
MTDUncalibratedRecHitProducer(const edm::ParameterSet &ps)
std::unique_ptr< ETLUncalibratedRecHitAlgoBase > endcap_
const std::string ftleInstance_
const edm::EDGetTokenT< BTLDigiCollection > ftlbDigis_
~MTDUncalibratedRecHitProducer() override
void produce(edm::Event &evt, const edm::EventSetup &es) override
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
std::unique_ptr< BTLUncalibratedRecHitAlgoBase > barrel_