◆ InputProduct
◆ EcalRecHitConvertGPU2CPUFormat()
EcalRecHitConvertGPU2CPUFormat::EcalRecHitConvertGPU2CPUFormat |
( |
edm::ParameterSet const & |
ps | ) |
|
|
explicit |
◆ ~EcalRecHitConvertGPU2CPUFormat()
EcalRecHitConvertGPU2CPUFormat::~EcalRecHitConvertGPU2CPUFormat |
( |
| ) |
|
|
override |
◆ fillDescriptions()
◆ produce()
Definition at line 51 of file EcalRecHitConvertGPU2CPUFormat.cc.
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]);
References mps_fire::i, eostools::move(), recHitsGPUEB_, recHitsGPUEE_, recHitsLabelCPUEB_, and recHitsLabelCPUEE_.
◆ recHitsGPUEB_
◆ recHitsGPUEE_
◆ recHitsLabelCPUEB_
const std::string EcalRecHitConvertGPU2CPUFormat::recHitsLabelCPUEB_ |
|
private |
◆ recHitsLabelCPUEE_
const std::string EcalRecHitConvertGPU2CPUFormat::recHitsLabelCPUEE_ |
|
private |