40 "recHitsLabelGPUEE",
edm::InputTag(
"ecalUncalibRecHitProducerGPU",
"EcalUncalibRecHitsEE"),
true) and
43 confDesc.
add(
"ecalUncalibRecHitConvertGPU2CPUFormat",
desc);
48 recHitsGPUEB_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"recHitsLabelGPUEB"))},
50 : consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"recHitsLabelGPUEE"))},
51 recHitsLabelCPUEB_{ps.getParameter<
std::string>(
"recHitsLabelCPUEB")},
53 produces<EBUncalibratedRecHitCollection>(recHitsLabelCPUEB_);
55 produces<EEUncalibratedRecHitCollection>(recHitsLabelCPUEE_);
62 auto recHitsCPUEB = std::make_unique<EBUncalibratedRecHitCollection>();
63 recHitsCPUEB->reserve(recHitsGPUEB.amplitude.size());
65 for (uint32_t
i = 0;
i < recHitsGPUEB.amplitude.size(); ++
i) {
66 recHitsCPUEB->emplace_back(
DetId{recHitsGPUEB.did[
i]},
67 recHitsGPUEB.amplitude[
i],
68 recHitsGPUEB.pedestal[
i],
69 recHitsGPUEB.jitter[
i],
71 recHitsGPUEB.flags[
i]);
73 (*recHitsCPUEB)[
i].setAmplitudeError(recHitsGPUEB.amplitudeError[
i]);
74 (*recHitsCPUEB)[
i].setJitterError(recHitsGPUEB.jitterError[
i]);
77 (*recHitsCPUEB)[
i].setOutOfTimeAmplitude(
sample, recHitsGPUEB.amplitudesAll[
offset +
sample]);
81 auto recHitsCPUEE = std::make_unique<EEUncalibratedRecHitCollection>();
82 recHitsCPUEE->reserve(recHitsGPUEE.amplitude.size());
83 for (uint32_t
i = 0;
i < recHitsGPUEE.amplitude.size(); ++
i) {
84 recHitsCPUEE->emplace_back(
DetId{recHitsGPUEE.did[
i]},
85 recHitsGPUEE.amplitude[
i],
86 recHitsGPUEE.pedestal[
i],
87 recHitsGPUEE.jitter[
i],
89 recHitsGPUEE.flags[
i]);
90 (*recHitsCPUEE)[
i].setJitterError(recHitsGPUEE.jitterError[
i]);
93 (*recHitsCPUEE)[
i].setOutOfTimeAmplitude(
sample, recHitsGPUEE.amplitudesAll[
offset +
sample]);
T getParameter(std::string const &) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static constexpr int MAXSAMPLES