34 desc.
add<
std::string>(
"recHitsLabelCPUEB",
"EcalUncalibRecHitsEB");
35 desc.
add<
std::string>(
"recHitsLabelCPUEE",
"EcalUncalibRecHitsEE");
37 confDesc.
add(
"ecalUncalibRecHitConvertGPU2CPUFormat", desc);
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<EBUncalibratedRecHitCollection>(recHitsLabelCPUEB_);
46 produces<EEUncalibratedRecHitCollection>(recHitsLabelCPUEE_);
56 auto recHitsCPUEB = std::make_unique<EBUncalibratedRecHitCollection>();
57 auto recHitsCPUEE = std::make_unique<EEUncalibratedRecHitCollection>();
58 recHitsCPUEB->reserve(hRecHitsGPUEB->amplitude.size());
59 recHitsCPUEE->reserve(hRecHitsGPUEE->amplitude.size());
61 for (uint32_t
i = 0;
i < hRecHitsGPUEB->amplitude.size(); ++
i) {
62 recHitsCPUEB->emplace_back(
DetId{hRecHitsGPUEB->did[
i]},
63 hRecHitsGPUEB->amplitude[
i],
64 hRecHitsGPUEB->pedestal[
i],
65 hRecHitsGPUEB->jitter[
i],
66 hRecHitsGPUEB->chi2[
i],
67 hRecHitsGPUEB->flags[
i]);
68 (*recHitsCPUEB)[
i].setJitterError(hRecHitsGPUEB->jitterError[
i]);
71 (*recHitsCPUEB)[
i].setOutOfTimeAmplitude(
sample, hRecHitsGPUEB->amplitudesAll[
offset +
sample]);
74 for (uint32_t
i = 0;
i < hRecHitsGPUEE->amplitude.size(); ++
i) {
75 recHitsCPUEE->emplace_back(
DetId{hRecHitsGPUEE->did[
i]},
76 hRecHitsGPUEE->amplitude[
i],
77 hRecHitsGPUEE->pedestal[
i],
78 hRecHitsGPUEE->jitter[
i],
79 hRecHitsGPUEE->chi2[
i],
80 hRecHitsGPUEE->flags[
i]);
81 (*recHitsCPUEE)[
i].setJitterError(hRecHitsGPUEE->jitterError[
i]);
84 (*recHitsCPUEE)[
i].setOutOfTimeAmplitude(
sample, hRecHitsGPUEE->amplitudesAll[
offset +
sample]);
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static constexpr int MAXSAMPLES