42 recHitsGPUEE_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"recHitsLabelGPUEE"))},
43 recHitsLabelCPUEB_{ps.getParameter<
std::string>(
"recHitsLabelCPUEB")},
44 recHitsLabelCPUEE_{ps.getParameter<
std::string>(
"recHitsLabelCPUEE")} {
45 produces<EBRecHitCollection>(recHitsLabelCPUEB_);
46 produces<EERecHitCollection>(recHitsLabelCPUEE_);
55 auto recHitsCPUEB = std::make_unique<EBRecHitCollection>();
56 auto recHitsCPUEE = std::make_unique<EERecHitCollection>();
57 recHitsCPUEB->reserve(hRecHitsGPUEB.energy.size());
58 recHitsCPUEE->reserve(hRecHitsGPUEE.energy.size());
60 for (uint32_t
i = 0;
i < hRecHitsGPUEB.energy.size(); ++
i) {
67 if (hRecHitsGPUEB.energy[
i] >= 0) {
68 recHitsCPUEB->emplace_back(
DetId{hRecHitsGPUEB.did[
i]},
69 hRecHitsGPUEB.energy[
i],
70 hRecHitsGPUEB.time[
i],
71 hRecHitsGPUEB.extra[
i],
72 hRecHitsGPUEB.flagBits[
i]);
76 for (uint32_t
i = 0;
i < hRecHitsGPUEE.energy.size(); ++
i) {
83 if (hRecHitsGPUEE.energy[
i] >= 0) {
84 recHitsCPUEE->emplace_back(
DetId{hRecHitsGPUEE.did[
i]},
85 hRecHitsGPUEE.energy[
i],
86 hRecHitsGPUEE.time[
i],
87 hRecHitsGPUEE.extra[
i],
88 hRecHitsGPUEE.flagBits[
i]);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)