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));