25 const std::vector<double, cms::cuda::HostAllocator<double>>
weights_;
43 weights_([
tmp = ps.getParameter<
std::
vector<double>>(
"weights")] {
44 return std::vector<double, cms::cuda::HostAllocator<double>>(
tmp.begin(),
tmp.end());
46 digisToken_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"digisLabelEB"))},
47 recHitsToken_{produces<OutputProduct>(ps.getParameter<
std::string>(
"recHitsLabelEB"))} {}
54 desc.add<std::vector<double>>(
"weights",
87 auto const &digis = ctx.get(digisProduct);
97 cudaCheck(cudaMemcpyAsync(weights_d.get(),
100 cudaMemcpyHostToDevice,
static void fillDescriptions(edm::ConfigurationDescriptions &)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const std::vector< double, cms::cuda::HostAllocator< double > > weights_
const edm::EDGetTokenT< InputProduct > digisToken_
UncalibratedRecHit<::calo::common::DevStoragePolicy > recHits
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
~EcalUncalibRecHitPhase2WeightsProducerGPU() override=default
void produce(edm::Event &, edm::EventSetup const &) override
void phase2Weights(ecal::DigisCollection< calo::common::DevStoragePolicy > const &, EventOutputDataGPU &, cms::cuda::device::unique_ptr< double[]> &, cudaStream_t)
cms::cuda::ContextState cudaState_
#define DEFINE_FWK_MODULE(type)
static constexpr int MAXSAMPLES
const edm::EDPutTokenT< OutputProduct > recHitsToken_
void allocate(uint32_t digi_size, cudaStream_t cudaStream)
ecal::weights::EventOutputDataGPU eventOutputDataGPU_
#define cudaCheck(ARG,...)
EcalUncalibRecHitPhase2WeightsProducerGPU(edm::ParameterSet const &ps)