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]},
66 hRecHitsGPUEB->
chi2[
i],
68 (*recHitsCPUEB)[
i].setJitterError(hRecHitsGPUEB->
jitterError[
i]);
74 for (uint32_t
i = 0;
i < hRecHitsGPUEE->
amplitude.size(); ++
i) {
75 recHitsCPUEE->emplace_back(
DetId{hRecHitsGPUEE->
did[
i]},
79 hRecHitsGPUEE->
chi2[
i],
81 (*recHitsCPUEE)[
i].setJitterError(hRecHitsGPUEE->
jitterError[
i]);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type jitterError
StoragePolicy::template StorageSelector< uint32_t >::type flags
StoragePolicy::template StorageSelector< uint32_t >::type did
StoragePolicy::template StorageSelector< reco::ComputationScalarType >::type amplitudesAll
void add(std::string const &label, ParameterSetDescription const &psetDescription)
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type amplitude
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type jitter
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type chi2
static constexpr int MAXSAMPLES
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type pedestal